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
0936e70e73
Add sorting to badges owned widget
2026-02-17 21:29:12 +02:00
Kalle
77978c450f
New user page ( #2812 )
...
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
04c14e9cdf
Migrate synxXPBadges function to Kysely
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-01-29 22:13:50 +02: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 )
...
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
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
7f9c9f25fb
Homemade badges ( #1894 )
...
* Initial
* Author info
* Add docs
2024-09-29 13:49:27 +03:00
Kalle
9a82c5b782
Fix organization badge selector duplicates Closes #1842
2024-08-25 09:56:18 +03:00
Kalle
9312fad90f
Tournament organization page ( #1811 )
...
* Initial
* Calendar initial
* Extract EventCalendar
* Events list initial
* Winners
* SQL fixes
* List events by series
* Leaderboards
* Series leaderboard
* Own entry peek
* Edit page skeleton
* RHF initial test
* RHF stuff
* Form etc. progress
* Fix tournament series description
* Fix tabs layout
* Fix socials insert
* Check for not removing admin
* Adding series
* TODOs
* Allow updating org with no series
* FormFieldset
* Allow series without events
* TextAreaFormfield accepting array syntax
* Input form array field
* ToggleFormField
* SelectFormField
* UserSearchFormField
* Fetch badgeOptions
* Badge editing
* Progress
* Use native preventScrollReset
* Rename func
* Fix sticky scroll
* Fix translation
* i18n errors
* handle,meta in edit
* Add ref to user search
* TODOs
* Done
2024-07-25 23:06:29 +03:00
Kalle
fd48bced91
Migrate Prettier/Eslint/Stylelint setup to Biome ( #1772 )
...
* Initial
* CSS lint
* Test CI
* Add 1v1, 2v2, and 3v3 Tags (#1771 )
* Initial
* CSS lint
* Test CI
* Rename step
---------
Co-authored-by: xi <104683822+ximk@users.noreply.github.com>
2024-06-24 13:07:17 +03:00
Kalle
bfce8d9646
Custom name ( #1754 )
...
* Migration and edit
* Migrate from discordName
* discordDiscriminator
2024-06-03 22:20:21 +03:00
Kalle
5efecd1706
Badge show own at the top + search Closes #1631
2024-03-17 11:10:02 +02:00
Kalle
571687a9a9
Fix crash when trying to remove all badge managers
2023-11-07 21:19:37 +02:00
Kalle
9006d92819
Fix not being able to remove all owners of badges
2023-11-05 19:22:24 +02:00
Kalle
c8ea75ebb6
SQL solution migration to Kysely + getting rid of routes folder ( #1530 )
...
* Kysely initial
* Badges initial
* Badge routes migrated
* Badges migrated
* Calendar work
* Fix one type problem
* Calendar work
* findResultsByUserId work
* Calendar reworking finished
* PlusSuggestions work
* Migrated suggestions
* Builds progress
* Migrated builds
* Admin migrated
* Migrate articles
* User search
* Faster getUser
* Selectable/insertable as global
* Refresh prod db script + patronTier index
* identifierToUserId
* updateProfile
* findByIdentifier
* More indexes
* User upsert
* upsertLite
* findAllPlusMembers
* updateResultHighlights
* updateMany
* User finished migration
* Fix types
* Fix PlusVotingResult typing
* PlusVotingRepository WIP
* Migrated resultsByMonthYear
* Migrated plusVotes (done with db. related migrations)
* Plus code to features folder
* Fix TODOs
* Export
* Fix range
* Migrate some user pages
* Move rest user routes
* Move /play
* Map list generator
* Front page
* Move map list generation logic
* Move plus voting logic
* Info
* API
* Adjust TODOs
* theme
* Auth
* Remove TODO
2023-11-04 13:15:36 +02:00