This is a beast, and the way I approached it definitely wasn't the best, but it's definitely new UI code that I'm a lot happier working with (with a chunk of old UI code deleted, and most pages rewritten one at a time).
Major changes:
Use formik to create forms with internal state management
Break out Tailwind CSS from TSX files to make them waaaay easier to read
Inline a few of the more complex components from the previous iteration (like StyledSelector)
Added the unused "Report DMs as not working for this user" button
Dropped the /admin pages -> they needed a bigger overhaul anyway, and given that I think I'm the only user (excluding maybe @SlamBamActionman ?) it's just as easy to use the API
Things kept unchanged (for now):
Use of react-query for mutation queries -> I'd like to reduce a lot of the code for our queries, but I'd like to tackle that separately to this PR
Basic structure of the website
Entire API stack
Future work:
Review and argue about the random styling changes I made (most visible in Post view below)
Catch any missed snags
Update colour scheme and logos to 2024 colours
Copy-edit and restyle /about page, which I just free-handed
This is a beast, and the way I approached it definitely wasn't the best, but it's definitely new UI code that I'm a lot happier working with (with a chunk of old UI code deleted, and most pages rewritten one at a time).
Major changes:
formik
to create forms with internal state management/admin
pages -> they needed a bigger overhaul anyway, and given that I think I'm the only user (excluding maybe @SlamBamActionman ?) it's just as easy to use the APIThings kept unchanged (for now):
react-query
for mutation queries -> I'd like to reduce a lot of the code for our queries, but I'd like to tackle that separately to this PRFuture work:
/about
page, which I just free-handed