me: I need to make a simple web-app for a project
also me: I need to learn some react basics for a job interview

WHY NOT COMBINE THE TWO? good question, why not?

christ, the first example in the react docs has a minor error.

not giving me a good feeling about the quality of this software

okay so my first attempt at writing any react code resulted in a hydration error and also my UI elements are rendered black on black, making them invisible
What obvious layout am I missing?

I updated it a bit.

(I should add ĄŽERTY just in case I ever flirt with any Lithuanian tranfems)

I've accidentally put it next.js into an infinite loop
it's constantly trying to recompile the typescript

okay I think I'm gonna give up on getting autocomplete to work for now.

There's like half of a result on google for the error I'm getting

or maybe I just need to clientside render the whole thing
okay it's all there and working, it just looks like shit because I haven't properly laid it out
OK, I laid it out. This was 99% easy and straightforward, and 1% WHY IS THE ADD BUTTON PLACED STUPID
New layout, because I realized I needed another drop-down
Added some types for keyboard type
things I still need to do:
* make this webapp list the existing keysmashes in the database, not just add new ones
* make the add-dialog a dialog/drawer, not permanently taking up half the page
* figure out how we're gonna do redaction/anonymization. Some of the 26 users in the database (and future users) may not want to have their names in any future public release.
* hook it up to the heatmap
* render the keysmash as an animation, with handedness highlighting
* fix dark mode. I didn't have a migraine the last time I was coding on this ✅
WHY WON'T THEME SWITCHING WORK

okay my theme switching does kinda work if I hardcode it to dark mode, then I can switch the theme

but it only affects the theme, not the background.

But the background is set by the system theme, so if you have the theme set to lightmode and system them set to dark, you get a black background and black UI form

So it's just invisible

<CssBaseline /> was the issue. I wasn't including it
so I can switch themes but it's not getting my browser theme, hmmm
oh it was but my manual color theme setting was overriding it.

okay it's working.

react is a tiring framework.
everytime I need to make a tiny change, I end up getting mad for an hour and then I'm tired of programming for the day.

theme switching is a bit ugly but it works. I'm intentionally leaving it as crap for anti-perfectionism reasons
ewww. not a good sign when you look up a database and one of the first how-to guides they give is how to plug it into your AI
I flirted with a shark enough that I needed to add a new type of noise: roars.
@foone wruff