Commit Graph

71 Commits

Author SHA1 Message Date
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
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
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
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
fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +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
0936e70e73 Add sorting to badges owned widget 2026-02-17 21:29:12 +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
60add3bfc6
Tournament tiers (#2758) 2026-01-22 20:04:26 +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
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
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
ff4402d9aa
User generatable API tokens (#2621) 2025-11-09 11:07:20 +02:00
Kalle
47e9262d40 Fix user results page logo/div mixed up
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
2025-11-08 18:11:44 +02:00
Kalle
9296319d23
Refactor HACKY_resolvePicture away (#2606) 2025-11-08 13:54:02 +02:00
Kalle
9fc30a7624
Many starting brackets standings (#2611)
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
2025-11-03 21:30:22 +02:00
Kalle
8dc22fcce4 Add friend codes to user admin tab 2025-10-28 19:35:31 +02:00
Kalle
510491c039
Scrimprovements (#2603) 2025-10-25 17:46:17 +03:00
Kalle
0ac4d0a39f
User results page optimizations (#2575) 2025-10-16 19:10:21 +03:00
Kalle
0ddc73666d
Art feature improvements (#2564) 2025-10-11 11:46:22 +03:00
Kalle
3d9995622b
Refactor tournament realtime from SSE to Websocket (#2469) 2025-08-28 18:59:34 +03:00
Kalle
3d2ede6f3d
Tournament results participation, seasons page with tournaments & team results page (#2424) 2025-07-05 12:11:52 +03:00
Kalle
e0f4bfdb30 Fix TODO 2025-06-24 15:47:02 +03:00
Kalle
02e5d8fb46 Fix user createdAt being updatedAt instead 2025-06-24 15:26:20 +03:00
Kalle
dd1adad94b BIome v2 upgrade
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2025-06-22 16:49:27 +03:00
Kalle
df3772403e User admin tab Closes #2388 2025-06-14 08:41:52 +03:00
Kalle
c36b450382 Fix can't edit favorite badge if lost access 2025-06-10 21:41:21 +03:00
Kalle
7ed228fe7e Fix finalizing test tournament + track user created at Closes #2352 2025-06-05 22:04:56 +03:00
Kalle
05e2e95aeb
Refactor more logic to use global roles (#2231)
Some checks failed
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
* Initial

* wip
2025-04-27 21:03:47 +03:00
Kalle
cae950d951 Fix can't update profile if no badges
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2025-04-26 23:05:29 +03:00
Kalle
6a9d7755a9
Customize badges order (supporters) (#2220)
* Initial

* wip

* E2E tests

* imports order

* Lint
2025-04-26 12:13:09 +03:00
Kalle
d2551d2706
Global roles refactor (#2212)
Some checks failed
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
* Initial

* isMod etc.

* canPerformAdminActions

* isAdmin

* isSupporter

* admin override

* Lohi

* Badge manage with new permissions style

* Refactor badge loading logic

* Move funcs

* Delete permissions.ts

* DRY
2025-04-21 23:51:30 +03:00
Kalle
f6a5643544 Refactor deprecated Kysely orderBy calls 2025-04-21 09:41:43 +03:00
Kalle
b4cc185d1d
Scrims (#2211)
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
* Initial

* Progress

* Initial UI

* Can submit request

* Progress

* Show text if no scrims

* Can cancel request, tabs

* Delete post

* Popover if can't delete

* Request rows

* Progress

* Scrim page initial

* Fix migration order

* Progress

* Progress

* Works again

* Make it compile

* Make it compile again

* Work

* Progress

* Progress

* Progress

* Associations initial

* Association visibility work

* notFoundVisibility form fields initial

* Progress

* Association leave/join + reset invite code

* Progress

* Select test

* Merge branch 'rewrite' into scrims

* Remeda for groupBy

* Select with search

* Outline styling for select

* Select done?

* Fix prop names

* Paginated badges

* Less important

* Select no results

* Handle limiting select width

* UserSearch non-working

* Fix problem from merge

* Remove UserSearch for now

* Remove todo

* Flaggable

* Remove TODOs

* i18n start + styling

* Progress

* i18n done

* Add association e2e test

* E2E tests

* Done?

* Couple leftovers
2025-04-20 22:51:23 +03:00
Kalle
1e905e2941 Autoban on repeated FC + admin FC search Closes #2024
Some checks failed
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-03-23 19:14:57 +02:00
Kalle
c0ec15b7de Unify db type files
Some checks failed
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-03-21 21:47:08 +02:00
Kalle
a358606d4f More fixing of plus server tier resolution (pass always correct seasonNth + for ongoing season use full tiers list)
Some checks failed
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-03-10 22:35:03 +02:00
Kalle
82f4132d82 Optimize user page database call
Some checks failed
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-03-04 22:41:47 +02:00
Kalle
4ff0586ff8
Notifications (#2117)
* Initial

* Progress

* Fix

* Progress

* Notifications list page

* BADGE_MANAGER_ADDED

* Mark as seen initial

* Split tables

* Progress

* Fix styles

* Push notifs initial

* Progress

* Rename

* Routines

* Progress

* Add e2e tests

* Done?

* Try updating actions

* Consistency

* Dep fix

* A couple fixes
2025-03-01 13:59:34 +02:00
Kalle
e43e8eefb9 User preferences - ability sorting disabling 2025-02-08 11:22:54 +02:00
Kalle
6fc3445fc6 Fix user search endpoint allowing returning all users 2025-02-06 09:23:48 +02:00
Kalle
32c97a2467
Bluesky via Discord connection + upgrade remix-auth + remove Twitter references (#2058)
* Remove Twitter references

* Upgrade remix auth, bsky via Discord

* Test
2025-01-28 17:22:45 +02:00
Kalle
ca972ece84 Short link feature
Some checks failed
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
2024-12-26 11:37:14 +02:00
Kalle
efd1d75318 Give patrons access to tournaments beta 2024-12-22 12:50:49 +02:00
Kalle
59d77642e5
Bluesky for user & team pages (#1891)
* Migrations

* Bluesky for team page

* Unify interfaces

* For user page

* To org social links
2024-09-28 10:43:49 +03:00
Kalle
1c9dcacbf2
Join many teams & front page changelog (#1880)
* Initial

* Progress

* Changelog initial

* Progress

* E2E test
2024-09-14 12:31:05 +03:00