-
Notifications
You must be signed in to change notification settings - Fork 1
Staging Num Problems #172
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
Staging Num Problems #172
Conversation
Add numProblems slider
alankbi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, glad this is finally getting merged! Since I also worked on this branch a bit, I'll hold off on approving or requesting changes for now, in the meantime just left a few comments/questions
If I understand correctly, yeah this should be updated in #174 - basically numProblems will only be relevant if the user doesn't select a specific problem (if they do, then numProblems will automatically be incremented to match the count)
+1 on the UI changes (should be handled in the mentioned PR or if not, the one after that). The font issue I pushed a change to hopefully address it, but since I'm not using Windows maybe @jasonz6688 you can run that branch locally and verify? The one thing I didn't address is the scrollbar design on Windows, which to me looks a bit offputting and am wondering if we should customize that at all. However, idk if that's a standard thing to see on Windows, so maybe it isn't a huge deal - thoughts @jasonz6688 @zpChris? |
My thoughts could change on this in the future, but in terms of our current goals I don't think a scrollbar Windows design fix is an important enough issue to put on our current docket to address. |
|
I found a small bug relating to multiple problems output for which I've made a screencast; when the problem is ran or submitted, and then before completing the load the problem is switched, the output and/or results will pop up under the wrong problem. After going back and forth the problem results will correct themselves, but they are initially off and that's likely a bug we should address, imo. |
zpChris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ✅
I left a good number of comments, but since @alankbi is working on #174 which will update this PR's work, I'm ok if some of those fixes or updates fall through to the next PR.
So excited to merge this in soon (long time coming) - let's gooo @jasonz6688!!! 🎉 🥳
|
@jasonz6688 Is this PR ready to merge? |
List of Changes:
Notes:
Alan has patched all the bugs that we know of, but there may be more bugs, specifically I think that there might be weird edge cases with reloading the page and loading saved code. Also you can technically set the numProblems slider below the number of selected problems, but the site will set the error and not progress when you try to start the game; this works but differs from how we do errors for other setting requirements. Also, I think that we should reconsider the choose problem modal to show up before the user selects the number of problem, as the user will first select a problem, close the modal, select a number, and re-open the modal, and choose problems.
Additionally, a UI PR will probably be needed to make the buttons more in place (especially because the time limit modal appears over the next and previous buttons) and to fix the font issue (if Alan hasn't already fixed that). Additionally, additional PRs can deal with viewing the winning code. Another UI change that we may want to add later is some text that displays which problem is being worked on (i.e. 1/2, 2/4, ...).
Screencast and Images:
Selecting multiple problems:

Selecting to many problems:

Selecting problems then putting the slider down and pressing start game:

Selecting one problem:

Starting the game:

Submitting correctly the first of three problems:

Moving to the second problem:

Submitting a partially correct (some test cases are wrong) the second problem:

After submitting third problem correctly:
