Commit Graph

6540 Commits

Author SHA1 Message Date
Kalle
2d2bfa92c1 Adjust SQLite pragma settings for performance 2026-06-10 21:59:31 +03:00
Kalle
f8319a2f96 Fix image form field rejecting uploads on browsers without canvas webp encoding
The SendouForm image field compresses the picked file client-side with
Compressor.js requesting "image/webp" output, which uses canvas.toBlob
under the hood. Per the HTML spec, browsers that can't encode the
requested type silently fall back to PNG instead of erroring (Safari /
all iOS browsers, Brave with fingerprint protection, older Android
WebViews). The resulting "data:image/png;base64," data URL rendered a
working preview but failed the zod schema's webp prefix check, showing
the user a bare "Invalid input" error with no way to upload.

Accept the png fallback in the schema and detect the actual format from
magic bytes on the server, storing the file with the matching extension
instead of always ".webp".
2026-06-10 21:45:42 +03:00
Kalle
cc0f027c26 Fix mode starvation when generating map list with a positional pattern 2026-06-10 21:11:39 +03:00
Kalle
5465e3c22b Remove dead code 2026-06-10 19:59:34 +03:00
Kalle
0299c76caa Fix shows teams as placed before SE 3rd place match is played 2026-06-10 19:59:27 +03:00
Kalle
e06f7177dd Fix more various small bugs
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-06-09 21:52:26 +03:00
Kalle
734c6128d3 Exclude "orpan" images from user unvalidated images count 2026-06-09 20:00:14 +03:00
Kalle
be0940b5bc Fix supporter checked for unvalidated images count 2026-06-09 19:50:37 +03:00
Kalle
6a3ec6a654 Various small bug fixes
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-06-08 22:04:43 +03:00
Kalle
9c7d15fd88 Add staleWhileRevalidate to leaderboard caches 2026-06-08 17:31:52 +03:00
Kalle
f21f2f7d76 Rewrite orderedUserMMRBySeason as window function to avoid 12s plan
The max(id) self-join let the query planner pick a nested-loop plan when
it misjudged a season's row count (e.g. a freshly started season whose
stats are dwarfed by older seasons), making the query take ~12s on the
current season. The window-function form references Skill once and is
plan-stable regardless of stats. Output is identical.
2026-06-08 17:25:01 +03:00
Kalle
76654c87bd Fix removeMarkdown stripping inline link text
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-06-07 22:02:33 +03:00
Kalle
945544153a Fix lonely page number display at pagination edges
On the first page the mobile window was currentPage ± 1, i.e. {0, 1, 2}.
The 0 clamped away leaving only page 2 before a jump straight to the
last page, so page 1 of 8 rendered as "1 2 ... 8" with no bridging
number (and the last page had the same issue mirrored).

Nudge the window inward by one when the current page is the very first
or last page so these render "1 2 3 ... 8" / "1 ... 6 7 8" instead.
2026-06-07 21:34:21 +03:00
Kalle
8001f3111f Update AGENTS.md 2026-06-07 19:51:45 +03:00
Kalle
91baeb003b Fix tournament teams page sub badge contrast off
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
Closes #3119
2026-06-06 16:08:40 +03:00
Kalle
50b3290eea XSearch player page division/mode icons reserve space
Closes #3134
2026-06-06 16:01:11 +03:00
Kalle
dd900c89a6 Add aspect-ratio to team page avatar 2026-06-06 15:30:50 +03:00
Kalle
c4c0b6dd50 Migrate repository functions to use user id via ALS
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-06-06 14:56:43 +03:00
Kalle
68b2313660 Placements suffix refactor, fix English shown when JP language selected 2026-06-06 11:55:23 +03:00
Kalle
739e6f440b Add moderation note and autoValidate to image form field
Show a note under non-autoValidate image fields that uploads are
moderated before going public. Move autoValidate to a per-field schema
property (org logo only) driving both the action logic and the note.
Preview pending images on the team edit page while keeping them hidden
on the public page.
2026-06-06 10:56:52 +03:00
Kalle
9c5f61c0f2 Tweak team menu button styling 2026-06-06 10:52:55 +03:00
Kalle
3f458cda34 Migrate edit org page to the new image SendouForm field component 2026-06-06 10:01:16 +03:00
Kalle
29ffd0e07c Fix light mode illegible text for new tournament badge adder
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
Closes #3125
2026-06-04 21:25:51 +03:00
Kalle
57cc53d1d7 Fix Plus Server suggestion long text overflows
Closes #3133
2026-06-04 21:12:41 +03:00
Kalle
106e55d27e Tabbed design for map pool on match profile
Closes #3124
2026-06-04 21:07:02 +03:00
Kalle
5766bd5373 Fix seasons page dropdown missing S0, only wrap Autocomplete when needed 2026-06-04 20:42:02 +03:00
Kalle
8afcd8e137 Convert edit teams form to SendouForm (#3138) 2026-06-04 20:38:24 +03:00
Kalle
83d21879bf Migrate various tournament queries to Kysely (#3135)
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-06-03 21:05:42 +03:00
Kalle
8baa57edd6 Simplify tournament map list generation mode order to be cyclic
Closes #3127
2026-06-03 18:47:33 +03:00
Kalle
77c2563cab Update unranked icon to outlined version
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-06-02 17:29:42 +03:00
Kalle
1bae38522e Fix error on match profile submit when avoiding a mode that previously had pool 2026-06-02 08:17:47 +03:00
Kalle
d278a15504 10 star weapon pool (#3108)
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-06-01 18:20:47 +03:00
Kalle
0cf88e80e5 Allow using mode shorthands to filter map pool search results 2026-06-01 17:12:21 +03:00
Kalle
082e1a268f Show members as sub on tournament teams page when joined after reg closed 2026-06-01 17:11:52 +03:00
Kalle
941ca7c232 Add Gridlock badges
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-31 18:36:16 +03:00
Great-Hero-YELLOW
6d63b90dc7 Stronghold Article "NA League 2026 Event 8 Regular Week 6" (#3121) 2026-05-31 18:32:27 +03:00
Kalle
4099651aa1 Add retry to impersonation call in E2E tests 2026-05-31 18:31:57 +03:00
Kalle
ae5884f54d Add minutes to SQ upcoming season info time
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-30 21:12:33 +03:00
glitched123412
aed08a2e88 updating the badge for "splatting, the second" (#3112) 2026-05-30 16:30:27 +03:00
RoanElmos
4120d18bab badge: add badge for SuperNovaa does a tournament (#3109) 2026-05-30 16:30:12 +03:00
dependabot[bot]
92c5c7ec7d build(deps): bump the minor-and-patch group across 1 directory with 15 updates (#3116)
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
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-30 13:08:27 +03:00
Kalle
81cd1df46c Add Season 12 dates + img 2026-05-30 12:49:17 +03:00
Kalle
b30c3b9a65 When changing global search tab, focus input
Closes #3117
2026-05-30 10:42:49 +03:00
Kalle
874cd6eb7c Edit widgets fixes (prevent submitting errored)
Closes #2819
Closes #2814
2026-05-30 09:56:46 +03:00
Kalle
3b0bd509cd Fix can't start bracket if teams dropped in groups
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
Fixes bug introduced in commit 3df1b93e6a
2026-05-28 17:22:31 +03:00
Kalle
850c820537 Fix flaky test
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-27 20:45:49 +03:00
Kalle
2948f125af Fix page scrolls to top when changing seasons page tabs 2026-05-27 20:34:50 +03:00
Kalle
0f068615a7 Migrate PlayerResult/MapResult queries to Kysely 2026-05-27 20:29:50 +03:00
Kalle
80a4cf5ca3 Hide Leave team button if last member
Previously clicking button shows an error toast which is not the best UX
2026-05-27 17:47:39 +03:00
Kalle
cc4219de35 Fix Catcher crash on wrong kind of errors
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-27 08:11:36 +03:00