Commit graph

305 commits

Author SHA1 Message Date
e1b269d99b Merge branch 'main' into feat/living-the-dream-qr-code 2025-09-14 12:25:52 +01:00
e677a2129f style: add dark blue color to text instead of black
parity with sequel game
2025-09-13 23:34:34 +01:00
20f1c51f0c feat: groundwork for 'living the dream' mii submissions
Based on the screenshots from yesterday's Nintendo Direct, it is
presumed that the Mii editor in "Living the Dream" is similar to
Miitopia's one.

This commit lays the groundwork for Miis created in the sequel game.
However, due to the way TomodachiShare generates portraits of the Miis,
I can't do that unless there is a way to parse the QR code data and
render the Mii.

Note: I don't know if Nintendo will use access codes (as was the case
with Miitopia) therefore, as a precaution, another branch will be
created in anticipation for that.
2025-09-13 15:03:12 +01:00
59b0b939c7 fix: suppress hydration warning on json-ld script 2025-09-13 11:53:06 +01:00
aa97cd813e style: scrollbar color 2025-09-13 11:52:43 +01:00
2d5b09b2e2 fix: json-ld incorrect 2025-09-12 20:04:42 +01:00
df6ff9fd13 style: increase visibility of mii page gallery 2025-08-29 17:25:08 +01:00
be36378a56 style: standardize gender information on mii page with gender select 2025-08-29 17:24:12 +01:00
779e5550a3 refactor: move offscreen metadata images from index to mii page 2025-08-24 20:02:42 +01:00
5dde6001fa fix: guest profile picture fallback not working 2025-08-20 21:10:31 +01:00
19a7e83403 fix: disallow /_next/image in robots.txt
I only want to index 'metadata' type images
2025-08-19 21:49:07 +01:00
817baf7970 feat: hide metadata type images offscreen for seo 2025-08-19 21:48:37 +01:00
24b9091c05 fix: convert buffers to Uint8Array
types issue
2025-08-18 22:18:16 +01:00
78320fdd56 fix: grouped pathnames for rate limit 2025-07-26 22:45:07 +01:00
701f038971 fix: rate limit on images not working properly 2025-07-26 15:50:20 +01:00
e1a158d070 feat: improve mii list filtering, add gender filter
- added react transitions when redirecting, should improve UI looks and
smoothness when filtering/sorting
- small refactor - put @types/sjcl in devDependencies
2025-07-19 17:15:11 +01:00
a37759622a feat: add aria-label to buttons and links 2025-07-18 22:40:24 +01:00
029c7eb84a fix: wrong uploads directory path in delete mii route 2025-07-16 20:21:57 +01:00
748399460a feat: add images to sitemap 2025-07-16 12:08:26 +01:00
2a1cb89ecc fix: add google site name data 2025-07-14 14:06:49 +01:00
8b4842b584 chore: update packages
also migrate zod to v4
2025-07-14 13:03:31 +01:00
afb73ec3a6 fix: set lower priority for profiles in sitemap 2025-06-15 12:36:19 +01:00
cf3b25727c fix: disallow tags in profile pages 2025-06-15 12:35:49 +01:00
afd4e449a5 fix: add noindex to mii and qr-code image types 2025-06-12 22:04:53 +01:00
a2fd114f7d fix: disallow page search param properly in robots.txt 2025-06-11 21:49:24 +01:00
62ab328fa2 fix: use search param for redirect banner instead 2025-06-11 16:08:13 +01:00
cea8d721de feat: redirect banner and new domain 2025-06-10 21:54:23 +01:00
62f33440f3
fix: check if user is logged in before checking for punishments 2025-06-02 23:36:56 +01:00
aef188f7c8 feat: punishment page 2025-05-31 22:40:56 +01:00
e195d2e80b feat: user lookup and user punishments in admin panel
need to work on actually punishing the user
2025-05-25 22:16:41 +01:00
0c7be71b2c feat: redesign reports in admin panel 2025-05-25 11:31:52 +01:00
5339fdd95e style: wrap terms of service and privacy policy in box 2025-05-24 16:58:20 +01:00
33ec0f059b feat: make messages and buttons more island themed
silly :3
2025-05-24 16:28:36 +01:00
32bcd0ec36 fix: stop double redirect on 'random mii' button 2025-05-24 15:46:07 +01:00
044d915972 feat: regenerate metadata image on mii edit 2025-05-23 17:43:30 +01:00
36f0ff8398 feat: report notifications 2025-05-23 15:33:35 +01:00
8c0a7c47a3 feat: share mii button 2025-05-22 22:30:08 +01:00
1485267bdd fix: add content-type headers to mii image api route 2025-05-22 22:29:05 +01:00
de2c281257 feat: 'metadata' image generation for miis
for use on search engines
2025-05-21 22:02:35 +01:00
ada54d46c8 style: use brightness instead of scale on hover for qr-code image in mii page 2025-05-21 18:29:54 +01:00
d9a299bb7f fix: add quotations around tags in metadata descriptions 2025-05-19 17:05:07 +01:00
b7dffe8b52 fix: update <h1> tag in index page when tags are present 2025-05-16 19:51:31 +01:00
00096552ce feat: change metadata when tags are present in index page 2025-05-16 19:45:21 +01:00
37ee2bca63 chore: more SEO fixes 2025-05-15 19:19:47 +01:00
65e01603ec fix: remove tags and sort from robots.txt disallow 2025-05-15 19:19:26 +01:00
9b8c697f66 feat: my likes page and redesign profile page 2025-05-14 20:13:25 +01:00
8f5296ca62 chore: disable url search params in robots.txt
also add preview.png (I forgot yet again)
2025-05-14 18:31:04 +01:00
58032ed31b refactor: update metatags 2025-05-10 19:57:35 +01:00
5a01bfb234 refactor: remove /api/mii/list
what is the point of next.js if i'm not even using it properly (should
also hopefully improve SEO)
2025-05-10 19:38:40 +01:00
c4a8e82313 refactor: profile components
why did I do it like that???
2025-05-10 19:08:36 +01:00
09c2448116 refactor: make profile picture cooldown 7 days instead of 30 2025-05-10 14:35:40 +01:00
5514f2ec39 feat: change profile pictures
I keep forgetting to do things. The edit mii api route has been using
the public folder as an uploads directory... whoops...
2025-05-09 22:33:43 +01:00
c5437ed3e7 feat: allow admins to disable submissions 2025-05-09 22:05:50 +01:00
769dd0b863 style: admin page report table width responsiveness 2025-05-09 21:41:56 +01:00
8320d55939 fix: rename author to reporter in report system 2025-05-09 21:34:23 +01:00
0689f7af09 fix: find users using id instead of email
while email can't be null, I think ID is better
2025-05-09 21:18:53 +01:00
b2fcf64f58 fix: add secondary sort to mii list api 2025-05-08 21:14:26 +01:00
783c5161c0 fix: allow admins to edit miis in api route
also fix build errors from last commit (don't trust `pnpm lint`)
2025-05-08 17:48:28 +01:00
2d82be8453 feat: ability to edit mii descriptions
I forgot
2025-05-08 17:32:26 +01:00
548bbcebc2 fix: isLiked set incorrect in mii list api when user is not logged in 2025-05-08 17:06:59 +01:00
398580e72b feat: mii descriptions 2025-05-07 21:06:10 +01:00
8753358a48 style: redesign mii page
also adds a gender viewer!
2025-05-07 21:06:10 +01:00
ec1c19204d feat: raise submit rate limit to 2 per minute 2025-05-05 17:49:00 +01:00
412b0e775b feat: add mii gender property to database
will have to create a migration script
2025-05-05 17:46:43 +01:00
def387d811 fix: disable /random route cache 2025-05-05 15:06:31 +01:00
1006ae83f8
Merge pull request #4 from ariankordi/handle-hair-dye-hair-only
Handle hair dye for hair only (fixes #1)
2025-05-05 09:02:20 +01:00
Arian Kordi
a29726dea0 Handle hair dye that is applied to hair only - add HairDyeMode and associated tests. 2025-05-04 20:26:52 -04:00
60cc4d1de9 style: use flex-wrap for tags in mii page 2025-05-04 23:14:18 +01:00
70d033b26d fix: redirect to /create-username in /submit 2025-05-04 22:42:29 +01:00
cc4f56db7c fix: allow admins to edit miis 2025-05-04 22:15:20 +01:00
e3382183ef fix: update robots.txt to include /report and /admin 2025-05-02 22:17:47 +01:00
a3cdce257a fix: check ownership of mii in delete route
i don't know how this got past me
2025-05-02 22:17:35 +01:00
a8c83b9cb6 feat: banner and report viewer in admin panel 2025-05-02 22:05:17 +01:00
f633648fee feat: reporting 2025-05-02 18:33:20 +01:00
334b6ec9b6 fix: profile page responsiveness
also refactor: add profile information component
2025-05-02 17:26:53 +01:00
fe3b25966a fix: remove unused import in admin page 2025-05-01 22:17:43 +01:00
ddc7cd92d2 feat: empty admin page 2025-05-01 22:12:25 +01:00
950a461fb1 feat: admin user 2025-05-01 22:10:46 +01:00
7c13d106d7 feat: tooltips 2025-05-01 21:05:43 +01:00
eea3df283c fix: move mii images to new uploads directory and add route to access it 2025-04-30 19:26:08 +01:00
9a76254317 fix: remove unused import in /api/mii/list 2025-04-28 21:52:50 +01:00
26a586cde9 style: replace size-3.5 with size-4 in checkbox check icon 2025-04-28 21:48:28 +01:00
2c13f60a50 feat: rate limiting api routes 2025-04-28 21:47:56 +01:00
b6315ee76c feat: tutorial for adding mii 2025-04-26 19:27:21 +01:00
c020f1b95a feat: sitemap
- also compress missing.svg
- add missing environment variable to .env.example
2025-04-26 15:19:29 +01:00
afbffd4606 feat: robots.txt 2025-04-26 15:19:00 +01:00
a2ea5f6aec feat: like button animation 2025-04-26 14:36:06 +01:00
e17b3908ae feat: add title attribute to edit and delete mii buttons 2025-04-25 23:04:30 +01:00
953e46a042 feat: replace missing.webp with question mark and style fixes 2025-04-25 23:00:35 +01:00
3359a1fad1 fix: remove unused parent variable in generateMetadata() functions 2025-04-25 21:19:48 +01:00
dc38d2bc28 feat: page metadata 2025-04-25 21:10:08 +01:00
2e9e4db6cb fix: don't show edit and delete buttons in mii list on profiles 2025-04-25 21:09:16 +01:00
101edfbc16 feat: logo and favicon 2025-04-25 16:00:04 +01:00
25c9bb079c feat: profanity censoring and filtering 2025-04-23 22:04:05 +01:00
487a1a658d feat: mii editing 2025-04-21 13:01:28 +01:00
0d8a46d31a fix: error when uploading one image in submit api and improve security a bit 2025-04-20 18:38:09 +01:00
48c99e442f refactor: move slugSchema into schemas file and rename to idSchema 2025-04-20 17:37:38 +01:00
febb83a164 fix: add another check to limit submit form custom images to 3 2025-04-20 12:13:25 +01:00
efda1acdc1 fix: account for header height in dialogs 2025-04-18 23:03:25 +01:00
ce7a57baef refactor: move components directory into src 2025-04-18 23:02:59 +01:00
eef495e809 style: redesign 404 page 2025-04-18 18:10:03 +01:00
ff13f85dee style: redesign submit form 2025-04-18 18:04:34 +01:00
eefb1a0c37 style: redesign login page and create-username page 2025-04-18 17:14:19 +01:00
63f82c3c18 feat: carousel keyboard keys 2025-04-18 16:54:38 +01:00
10f1fc2fb3 feat: username 90-day change restriction 2025-04-18 16:47:31 +01:00
d95d8c2dd6 feat: give carousel buttons to image-viewer(s) in mii page 2025-04-18 16:46:17 +01:00
75b0c95b77 fix: build errors 2025-04-18 16:46:17 +01:00
6ae3fd2aef fix: disable analytics script when environment is not production 2025-04-18 16:46:16 +01:00
8b8c9aaa4b feat: ability to update display name and username in profile settings 2025-04-18 16:46:16 +01:00
86c76df873 feat: add dialog buttons to profile settings 2025-04-16 18:17:29 +01:00
78d99a0974 feat: add carousel to image-viewer component 2025-04-15 18:15:44 +01:00
22057d16fe feat: disable carousel buttons when at start/end 2025-04-14 18:53:50 +01:00
a00d375ca3 chore: remove testing value in like button component
whoops
2025-04-14 18:42:48 +01:00
75bd7281e4 feat: abbreviate likes in mii list component 2025-04-14 18:41:26 +01:00
6b1cfff9c6 feat: mii deletion 2025-04-14 18:33:17 +01:00
9e36944219 refactor: cleanup part 4 2025-04-14 18:11:36 +01:00
f00c998c30 refactor: add slug to mii like route 2025-04-14 18:10:51 +01:00
4fec5f65f5 refactor: replace data fetch in mii list with swr 2025-04-14 11:39:49 +01:00
48b001377a feat: skeleton loader 2025-04-13 23:31:06 +01:00
c1f8a9fdba style: make mii name one line in mii list 2025-04-13 23:30:38 +01:00
cada748f2d feat: pagination 2025-04-13 20:00:33 +01:00
3f4a757bb1 refactor: move like api route into mii folder 2025-04-13 17:50:38 +01:00
49d3cf7e8a fix: add flex-wrap to mii list tags 2025-04-13 17:49:45 +01:00
be6e622a5b feat: nprogress bar 2025-04-12 23:28:12 +01:00
53a23f35ef feat: port mii list to use api route
also make search bar redirect to index page with search param instead of
a new page
2025-04-12 23:13:34 +01:00
90eca1bf3f fix: set page to 1 by default in mii list route 2025-04-12 23:12:26 +01:00
cc0b628048 feat: page and limit params in mii list route 2025-04-12 22:37:52 +01:00
2e4611520d refactor: cleanup - schema edition
whole bunch of refactors (especially with schemas)
2025-04-12 22:37:36 +01:00
626016d689 feat: api mii list route 2025-04-12 17:00:42 +01:00
9f50c3e720 fix: suppress downshift props errors 2025-04-12 14:51:32 +01:00
4d1cda8348 fix: error when showing mii in submit form 2025-04-12 14:51:13 +01:00
38356cf2f9 fix: showing errors when converting qr code 2025-04-12 14:44:36 +01:00
5eab64ef96 fix: calculate user's liked miis after if user exists statement 2025-04-10 22:53:26 +01:00
50b402e5d9 fix: wrap username change in try/catch and remove GET function 2025-04-10 22:52:37 +01:00
d2522c8d93 feat: account deletion 2025-04-10 22:52:18 +01:00
96e12d0716 feat: add profile settings page 2025-04-10 22:33:25 +01:00
4a15b6d7e3 feat: filter select in mii list 2025-04-10 12:50:31 +01:00
7119313b7d fix: use hasEvery instead of hasSome in mii list tags filter 2025-04-10 12:43:18 +01:00
fc3632380a fix: don't show camera select in qr-scanner when only one device is present 2025-04-10 11:44:42 +01:00
cb3202eb7a refactor: move mii-list and submit-form components into folders 2025-04-10 11:42:11 +01:00
b5b431028a feat: sort select in mii list 2025-04-10 11:38:39 +01:00
984541d17a feat: add transition to qr-scanner dialog 2025-04-09 18:33:06 +01:00
5acdc50200 feat: image viewer 2025-04-09 18:33:06 +01:00
a050ef6702 feat: make background div in qr-scanner dialog close on click 2025-04-09 18:33:06 +01:00
516923905d fix: build errors 2025-04-09 13:49:09 +01:00
4a65994d35 refactor: cleanup 2025-04-08 22:51:43 +01:00
a0ea8c2646 feat: replace react-select in tag selector with downshift 2025-04-08 22:51:23 +01:00
9f8de81610 fix: qr scanner to use jsQR and add camera selector 2025-04-08 19:24:33 +01:00
1e0132990a feat: custom mii images and refactor submit route 2025-04-07 20:20:23 +01:00
45fb0c07a7 refactor: move mii classes into lib folder 2025-04-07 16:58:25 +01:00