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
Match WIP (QUI-11) #98
Conversation
|
Someone is attempting to deploy a commit to a Personal Account owned by @miapolis on Vercel. @miapolis first needs to authorize it. |
|
I think the leaderboard can be skipped for now and the extra settings as well, but the other stuff still needs to be done |
|
Oh also it performs fine I think but also I have no clue what I'm doing react is terrible so like |
|
Overall, looks like a great start just make sure you're running the formatter. Good idea to mark rounds as ineligible for leaderboards if it is customized somehow, I didn't think of that. Also, just looking at the video, if you haven't done this already make sure that the bottom border changes color as well when the term is completed or incorrect. |
Just did in a terrible way |
oh... |
|
@boehs I refactored a ton and the build is now passing with linter enabled. There's still the bug with random pairs not reacting every once in a while, look more into that. |
|
Should the timer wait 0.5 seconds before starting? (the animation where cards move in) |
|
Actually here's an interesting one: I was curious if you could match while cards are moving. Turns out, you can grab cards in motion, but if you successfully do so the bounding box calculations are broken for that card thereafter. I propose
Alternatively we could hunt down this bug and make it so nerds with either
can match cards while still in motion |
|
I ended up implementing the proposed solution in d018727. Another thing: currently the presented score is a little kind. A time of |
|
Unless there's more critique, this is ready, minus leaderboards which are mostly done but not linked up yet, but merge without leaderboards. Also
but those can both be fixed easily later. All this feels ready for me. Send your final reviews |
|
|
Screen.Recording.2023-06-23.at.2.16.54.AM.movUpdated video |
|
Much better! A few things however: the very first time Match is opened, there needs to be a modal with a start button so that the timer doesn't start immediately. There's also another bug where the New Match button restarts the round but new cards don't spawn in. Fix these two things and I think we're ready to merge into staging, and after leaderboard and backend work is done I'll push to prod. |
|
@boehs I ran prettier and moved |
|
I also just realized, I know what looks off: every card is the same width, even if it's only a few characters. It'll be a little more involved to handle varying widths for cards but I think you'll be fine, the current fixed width should instead be the max width. For staging here are the last three things:
|
Ugh when did this happen |
|
I can't check your boxes so here they are again!
|
|
Ok ready for review part 3! Eventually the match dialog should show a short video explaining match, like this Screen.Recording.2023-06-23.at.11.41.14.AM.movand <Enter> should start a new game, but it's good for now imo |
|
@boehs I fixed a bunch of things, window resizing handling now works as well. I've noticed a few bugs however relating to z indices once again, especially with sets with fewer than 6 terms... a lot of cards don't seem to have the highest order z-index when being dragged in these scenarios |
|
LGTM, resize handling is great. Debugging the z-index stuff is difficult and I'm struggling to reproduce. I'm tempted to chalk it up to HMR |


I haven't worked on this for a bit so I'm just pring what I have. I will get back around to it.ok so apparently this is how you end procrastinationAlso, there's a hack where
Card sizes are hardcodedWindow size is hardcodedHere's a little vid of what I have
https://github.com/miapolis/quizlet.cc/assets/51836263/6d931d7c-ca2b-4891-a99f-e746938c6a4bScreen.Recording.2023-06-21.at.7.22.53.PM.mov
Some implementation details: