Commit Graph

195 Commits

Author SHA1 Message Date
Kalle
8dc92140fc
Optimize builds loaders (#3076)
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
2026-05-17 16:21:13 +03:00
Kalle
6a72946b45
New hooks and components for localized date time (#3065) 2026-05-17 13:19:25 +03:00
Kalle
4bc8033841 Collapse repeated manual badge grants into a count column
TournamentBadgeOwner previously stored manual grants as N identical
rows to represent "this user has this badge N times" — one user had
12,345 duplicate rows for a single badge. This adds a `count` column,
collapses NULL-tournamentId duplicates in the backfill, and rewrites
the BadgeOwner view to expose count via SUM. The table shrinks from
75,596 to 24,204 rows. Also adds an index on TournamentBadgeOwner(userId)
as defense-in-depth for direct lookups, and updates replaceOwners to
dedupe ownerIds at insert time. Profile-page query for the worst-case
user drops from ~4 ms to ~1–2 ms warm.
2026-05-14 18:09:41 +03:00
Kalle
2b5b1b1948
New match page (#3032)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-05-04 18:15:10 +03:00
Kalle
10f3af3785 Fix user results page styling on mobile
Closes #3026
2026-05-02 12:47:27 +03:00
Kalle
bf0277479d User seasons page tournament result card style tweaks
Closes #3025
2026-05-02 12:41:48 +03:00
Kalle
d91d0568e1 Swap user page Date/Tournament column locations 2026-05-02 11:41:46 +03:00
Kalle
5131fb7673 Fix widget edit crash when saving zero widgets
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
upsertWidgets ran an unconditional insertInto("UserWidget").values([])
when the submitted widgets array was empty. Kysely emits
`insert into "UserWidget" () values ()` for an empty values array,
which SQLite rejects with `near ")": syntax error`, rolling back the
preceding delete in the same transaction. Saving an empty widget list
was therefore impossible. Skip the insert when the array is empty.
2026-05-01 17:32:55 +03:00
Kalle
539da816bf
Make date time format apply everywhere (#3023) 2026-05-01 10:11:29 +03:00
Kalle
1ef646a5c1 Add pagination to vods 2026-04-27 17:31:41 +03:00
Kalle
011b560c6b Tweak user page results table styles 2026-04-26 17:23:58 +03:00
Kalle
a4eda293e7 User results page search
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-04-18 18:14:07 +03:00
Kalle
bc1923f9a5
Builds cleanup/fixes (#2957)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-04-08 22:10:48 +03:00
Kalle
ff27d6739b
Member join number widget (#2939)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-04-04 18:17:28 +03:00
Kalle
2d0952a70c Show 3 friends per page (mobile, user page widget) 2026-03-30 20:20:11 +03:00
Kalle
a1788ba89b Add friends widget
Closes #2914
2026-03-29 17:59:57 +03:00
Kalle
dfa95bd92d Migrate to nested CSS 2026-03-28 16:30:28 +02:00
Kalle
3925b73d32 Replace useIsMounted with useHydrated
Strict improvement because we avoid the flash on clientside navigation.
One practical bug was scroll restoration between tournament teams list
and user page. When user pressed back they ended up at the bottom
of the page because the placeholder (smaller height than actual
content) rendered. With useHydrated this placeholder is no longer
rendered for client side navigations.
2026-03-28 07:44:52 +02:00
Kalle
5f04bc7a68 Fix timezone parsing error crashing the whole user page 2026-03-23 20:23:37 +02:00
Kalle
56a835611a Update Biome to 2.4.8 2026-03-21 15:19:32 +02:00
Kalle
fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00
Kalle
6834c86952 Fix IGN special characters not counting correctly for word limit
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-03-09 20:42:45 +02:00
Kalle
c1cc82c807
Migrate /u/:identifier/edit to SendouForm, fix bad IGN (#2849)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-03-03 07:12:04 +02:00
Kalle
4cc3a9807c
User page in-game badge widget (#2841)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-02-28 16:52:37 +02:00
Kalle
95a8fa3b8c Fix widget drag on touch devices and Safari
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 20:32:43 +02:00
Kalle
d2a9279c4f Show plus tier on user profile
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 20:32:43 +02:00
Kalle
9e0f36d90c Refactor requireRole/requirePermission to resolve user internally
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 20:02:37 +02:00
Kalle
e773c16ff5 Fix edit widgets/profile buttons placement 2026-02-21 14:17:54 +02:00
Kalle
0936e70e73 Add sorting to badges owned widget 2026-02-17 21:29:12 +02:00
Kalle
e8c5ab6c07 Badges managed widget 2026-02-17 21:10:45 +02:00
Kalle
7904e30daf Widget form submitting, use non-deprecated parsing function 2026-02-17 21:10:29 +02:00
Kalle
4a0786114b Fix a few hydration errors 2026-02-17 21:10:13 +02:00
Kalle
076b122164 Couple bug fixes to user page widgets and markdown rendering
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-02-16 22:45:39 +02:00
Kalle
77978c450f
New user page (#2812)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-02-16 19:26:57 +02:00
Kalle
f460d52a40
Remove dead code, migrate one Skill function to Kysely (#2785) 2026-02-15 21:23:13 +02:00
Kalle
60add3bfc6
Tournament tiers (#2758) 2026-01-22 20:04:26 +02:00
Kalle
1ffccd70de Fix can't submit build without description 2026-01-21 18:23:48 +02:00
Kalle
c20701d98c
Form system refactor from react-hook-form to one schema per form across the stack (#2735)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 18:21:19 +02:00
Kalle
a004cf33b7
Store Twitch live streams in SQLite3 (#2738)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 16:51:44 +02:00
Kalle
23eaa268c0
User middleware try 2 (#2692) 2026-01-03 13:47:32 +02:00
Kalle
f11a3e798a Revert "User middleware (#2687)"
This reverts commit 4fca18ac8d.
2026-01-03 08:41:13 +02:00
Kalle
4fca18ac8d
User middleware (#2687) 2026-01-02 18:34:45 +02:00
hfcRed
91e26948b2
Add pronouns for users (#2688)
Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2026-01-02 18:34:32 +02:00
Kalle
658421d899
Upgrade zod package to 4 (#2677) 2025-12-29 20:04:40 +02:00
Kalle
81483de0db
Upgrade to React Router 7 (#2681) 2025-12-29 19:21:11 +02:00
Kalle
49ecbc6bdc Public API endpoint to fetch user IDs 2025-12-28 13:30:35 +02:00
Kalle
94a93b0006
SQ serverside refactoring, add tests, add Knip (#2665) 2025-12-22 15:47:15 +02:00
Kalle
265585d4cd Fix new sub post weapon pool defaults not a valid form submission
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
2025-12-01 20:34:31 +02:00
Kalle
c3bf60e4d8 Tournament subs: remember previous selections, also delete post when creating a team & refactor to use Kysely & CSS modules 2025-11-26 19:41:22 +02:00
Kalle
819ac4dc26 Refactor away atOrError in favor of browser native Array.prototype.at 2025-11-25 19:03:32 +02:00