-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Bugfix for Character Select #40
UI Bugfix for Character Select #40
Conversation
selectedPlay.character wasn't being updated when the characterSelect updated its index; should be fixed now.
Thanks I'll take a look.
The committed contents of
Dev tools already aren't available for people not making a source build, so that's fine by me. |
Okay Cool! So, I added a .prettierignore file that will exclude dist. Then, I ran |
Thanks - works fine now. I messed around with two jagex accounts with two characters on each, and everything I did worked as expected. If you want to do a separate PR tidying up and making better use of svelte features, I'll gladly accept it, but for now I'm going to merge this and try to get version 0.9 out today. Thanks again for looking into this. |
Excited to see it in the release build! I will look into tidying up and see what I can come up with. Cheers |
Hey! Sorry for the delay with looking at this, haven't had a chance until now.
I think I've got the problem fixed, I tested it by adding a few dummy accounts and characters, it seemed to have the selectedPlay.character updating properly. Let me know if it isn't resolved and I will look at it again.
Regarding your comment on #30
You are absolutely right that this could be done better! Svelte was new to me with this project and I didn't take full advantage of its features. I think a separate PR could be done for this; cleaning up bits of how the Svelte code is interacting with the UI and other components. Maybe also changing Maps to be Vectors/Arrays? I made them Maps for ease of use in code, but it is overkill I imagine. Let me know if these are something you would like me look into.
Another thing I noticed while opening this PR - Anytime a change is done to the app, the dist files needs to be rebuilt and get renamed. This causes there be lots of changes with these files unless they are manually renamed. The current one looks like minify was run on it, then bun format, so the variable names aren't super helpful but the code is legible. The one I have in this PR did not have minify run. How should these be committed going forward? Maybe we could add something to the readme about it? If we commit minified code, then only one line change would ever be recorded in versioning, but debugging the UI would be more difficult for someone not building it themselves. Just wanted your thoughts, thanks!
Cheers