Commit Graph

342 Commits

Author SHA1 Message Date
Kalle
700a309e7f
Migrate Node -> Bun (#1827)
* Initial

* Faster user page

* Remove redundant function

* Favorite badge sorting

* Upgrade deps

* Simplify entry.server

* Bun tests initial

* Update package.json npm -> bun

* Update README

* Type safe translations again

* Don't load streams info for finalized tournaments

* Translations as an object

* More unit test work

* Convert match.server.test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* Test & all done

* Working cf

* Bun GA try

* No cache

* spacing

* spacing 2

* Add SQL logging

* Remove NR

* Hmm

* Hmm 2

* Interesting

* SKALOP_SYSTEM_MESSAGE_URL

* .

* .

* ?

* .

* ?

* Server.ts adjust

* Downgrade Tldraw

* E2E test fix

* Fix lint
2024-08-11 16:09:41 +03:00
David Rackerby
7f69533c79
Revise weapon pool sorting: alternate kits compare equal (#1807)
* Revise weapon pool sorting:  alternate kits compare equal

* Fix linting errors
2024-07-28 10:34:14 +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
xi
45c16bce73
Add French (NoA) Localization (#1766)
* Add French (NoA) Localization

* Update config.ts

* Appease linter

* Appease linter (again)
2024-06-22 14:39:18 +03:00
Kalle
47018e2a22 Upgrade deps (TS 5.5) 2024-06-21 10:29:10 +03:00
Kalle
e952093eaa Add tournament data caching 2024-06-13 23:07:53 +03:00
Kalle
5452a30c63 Remove redundant "inProgressStages" 2024-06-10 18:49:01 +03:00
Kalle
dcf738f6d3 Remove unused participant code + slim down tournament response 2024-06-09 23:53:31 +03:00
xi
1e17d12ec1
Add new weapon alt names (#1759)
* Add new weapon alt names

* Include Side Order kits in alt names
2024-06-08 10:18:53 +03:00
Kalle
2b53c348e6 Switch to own invariant that logs errors in prod 2024-06-02 14:34:01 +03:00
Kalle
c3b51be46a Patch 8.0 2024-06-01 13:06:33 +03:00
Kalle
bf4a4e7d70 Change Spanish language labels 2024-05-22 21:55:42 +03:00
Kalle
c6d1578d80 Tournament map lists: handle overlap in one mode but not others 2024-04-28 13:10:18 +03:00
Kalle
f19ec211d8
Swiss bracket format (#1723)
* Initial

* Swiss UI initial

* Start Swiss bracket

* Match up generation skeleton

* Bracket advancing

* Misc

* Progress

* Remove unneeded script

* Timed bans feature

* Add badge

* Add tournament logo

* Add Heavy Splatling MoveSpeed_Charge Closes #1461

* Require verified email for new account registration

* Weapon stats/builds use absolute URL

* Allow mod to ban users

* Prevent app from crashing on unhandled rejection

Context: https://github.com/remix-run/remix/issues/9178#issuecomment-2032102431

* Try changing authenticate call to match docs example

* Limit fresh account queue joining

* Fix tournament avatar not showing

* Limit when weapon shown on leaderboard

* Nuke reported weapons script

* FC scripts

* Increase tournament rules max length

* Add Discord URL to tournament page

* Hotfix reopen

* Fix matchAffectsAnotherBracket logic better

* Switch to Patreon API v2 Closes #1389

Also fixes problem with people who canceled not
getting access.

* Fix reset showing for first round

* Dropping out

* Progress

* Range inputs

* better way to create rounds

* Fix TODO

* E2E test

* Small round count info text

* Fix lint
2024-04-21 22:45:33 +03:00
Kalle
708bafeb03 Switch to Patreon API v2 Closes #1389
Also fixes problem with people who canceled not
getting access.
2024-04-16 22:07:52 +03:00
Kalle
f65ae2ba1a Add missing gear 2024-04-07 11:52:23 +03:00
Kalle
4bdd1b5cdb Pick/ban info in RoundHeader 2024-04-04 22:35:49 +03:00
Kalle
b98b4af1ea
Ban/pick etc. (#1716)
* To BracketMapListDialog

* Working map list dialog + UI work

* Rename components

* Working version

* Counterpick info text

* PickBan

* Rearrange loader

* Working BAN_2

* Show error msg if pick/ban style selected but no rounds have it enabled

* OrganizerMatchMapListDialog

* Prepicked BAN_2

* Starter finder structure

* Prepicked + counterpick

* PLAY_ALL & visible chat to TO's after finalize

* Tweaks and handling edge cases

* Play all e2e test

* Allow viewing tournament info when it has started

* Desc markdown support

* Rules

* calendar.new loader refactor

* baseEvent refactor

* w/ staff

* Add 1h30min reg closes time

* As team

* Fix E2E test

* E2E tests

* MiniCheckinInfoBanner
2024-03-31 10:36:22 +03:00
Kalle
29d99c258b
TO maplist/best of picking.& bracket start dialog (#1696)
* Initial

* Seed with to set map pool

* BracketStarter frontend

* First working

* Changing best of

* Fix roundMaps can be null

* Working for DE

* Start SE bracket

* Best of selection by round

* Move function

* updateRoundMaps to transaction

* Check in many in trx

* Show warning if no map pool set

* E2E tests

* After review

* Resolve TODO & adjust imports

* Tweak round sorting
2024-03-15 00:00:37 +02:00
Kalle
e0b6f90500 Fix not being able to undo score in round robin 2024-03-07 18:31:02 +02:00
Kalle
5c6ef0a4e4 Add missing alt weapons to the list Closes #1684 2024-03-03 11:16:17 +02:00
Kalle
d901577213 New banned maps 2024-02-28 22:33:56 +02:00
Kalle
980699e233 Add new alt weapon handling logic 2024-02-27 23:40:52 +02:00
Kalle
47d27a039f New season changes 2024-02-27 22:54:16 +02:00
Kalle
be8edc69ed Locales caching with finger printing Closes #920 2024-02-25 16:11:00 +02:00
Kalle
93ebb6e369 Migrate to Vite 2024-02-24 21:12:54 +02:00
Kalle
b35a64c1f8 Upgrade deps 2024-02-24 12:18:14 +02:00
Kalle
72fa1f68c8
Season 3 SendouQ changes (#1674)
* Mode Map Pool picker component initial

* Component in settings

* Lottery initial

* Fix tests

* useTrusters as perf optimization

* unionAll -> union

* Fancy picker for tournaments

* Map pools memento

* FC's initial

* Friend code when registering for tournament

* FC in flows

* SHow FC in places

* Add catch in case

* Fix disabling

* Show ELO changed

* Wiggle MapPool button if already selected

* CSS vars typing

* Rechallenging

* Team (all) leaderboard

* Preview groups

* Fix chat width changing

* Solid reported weapons

* Clearer cancel requested header

* Dynamic revalidates

* spDiff from memento

* (Partly) Revert "Remove screen banning"

This reverts commit 076cabfbfa.

* Screen indicators in looking view

* FC i18n

* noscreen = 0

* E2E test

* E2E 2
2024-02-24 12:07:17 +02:00
Kalle
eae3d529e2
Bracket component rewrite (#1653)
* Remove old code

* Add prefetching

* Elim bracket initial

* Hide rounds with only byes

* Round hiding logic

* Align stuff

* Add TODO

* Adjustments

* Deadline

* Compactify button

* Simulations

* Round robin bracket initial

* eventId -> tournamentId

* seedByTeamId removed

* Couple more TODOs

* RR placements table

* Locking matches

* Extract TournamentStream component

* Bracket streams

* Remove extras for tournament-manager, misc

* Fix E2E tests

* Fix SKALOP_SYSTEM_MESSAGE_URL in env.example

* TODOs

* TODO moved to GitHub

* Handle team changing in match cache invalidation

* Fix streamer seeing undo last score button

* Show "Sub" badge on team roster page

* Show who didn't play yet on match teams preview

* Ranked/unranked badge

* Bracket hover show roster

* Add lock/unlock match test

* Fix score reporting
2024-02-11 10:49:12 +02:00
Kalle
c43d48f930 Upgrade deps 2024-02-03 10:20:21 +02:00
Kalle
144da5d158
Tournament groups->SE, underground bracket etc. (#1628)
* Renders groups

* Bracket data refactoring

* Starting bracket working (first bracket only)

* TODOs + crash fix

* Source bracket logic initial

* Bracket progression (DE underground bracket)

* Preview working for second bracket

* Bracket nav initial

* Check-in to bracket feature

* Start Underground bracket

* Team/teams pages tweaks to support underground bracket

* Underground bracket finalization progress

* Tournament class

* id -> userId + more useOutletContext removed

* Bracket loader refactored out

* Migrate admin to useTournament

* Bracket.settings

* Slim tournament loader

* Fix useEffect infinite loop

* Adjust waiting for teams text

* Refactor old tournament DB call from to admin

* Admin action: check in/out from specific bracket

* Standings work

* Back button from match page -> correct bracket

* Standings logic for DE grand finals

* Standings + finalize bracket

* Dev log

* Unit tests utils etc.

* Adjust TODOs

* Fix round robin issues

* Add RR tests

* Round robin standings initial

* Wins against tied + points tiebreaker progress

* Fix losing state when switching between tabs

* Add check-in indications to seeding page

* Link to user page on seed tool

* Submit points

* Total points from bracket manager

* findById gonezino

* Ahead of time check-in

* Couple todos

* Reopen logic refactor

* Tournament format settings

* RR->SE placements, skipping underground bracket

* Fix tournament team page round names

* More teams to UG bracket if first round of DE only byes

* Fix graphics bug

* Fixes

* Fix some E2E tests

* Fix E2E tests
2024-01-30 00:32:13 +02:00
Kalle
c984c33f70
SendouQ streams (#1607)
* Fix group morphing weidly when members added/removed

* Initial

* Add stuff from leaderboard

* streams/count

* Stream count from looking loader

* i18n etc. progress

* Sorting logic

* Remove temp thing

* Finish?
2023-12-13 22:29:00 +02:00
Kalle
7efb80b9f6 Upgrade deps 2023-12-10 09:19:56 +02:00
Kalle
73fd2e4a6c Upgrade all deps to latest 2023-12-06 12:40:39 +02:00
Kalle
d214945147 Add new stages Closes #1571 2023-12-04 01:15:07 +02:00
Kalle
eeca85e988 Add alt name to the new stamper 2023-12-03 14:32:55 +02:00
Kalle
6df44f4a3b New season gear + weapons
Still missing:
- colored new special icons
- stages (+ planner pics)
- build analyzer + object dmg calc work
2023-12-01 00:14:07 +02:00
Kalle
7dec8c572e
SendouQ Season 2 changes (#1542)
* Initial

* Saves preferences

* Include TW

* mapModePreferencesToModeList

* mapPoolFromPreferences initial

* Preference to map pool

* Adjust seed

* q.looking tests

* adds about created map preferences to memento in the correct spot (two preferrers)

* Failing test about modes

* Mode preferences to memento

* Remove old Plus Voting code

* Fix seeding

* find match by id via kysely

* View map memento

* Fix up map list generation logic

* Mode memento info

* Future match modes

* Add TODO

* Migration number

* Migrate test DB

* Remove old map pool code

* createGroupFromPrevious new

* Settings styling

* VC to settings

* Weapon pool

* Add TODOs

* Progress

* Adjust mode exclusion policy

* Progress

* Progress

* Progress

* Notes in progress

* Note feedback after submit

* Textarea styling

* Unskip tests

* Note sorting failing test

* Private note in Q

* Ownerpicksmaps later

* New bottom section

* Mobile layout initial

* Add basic match meta

* Tabs initial

* Sticky tab

* Unseen messages in match page

* Front page i18n

* Settings i18n

* Looking 18n

* Chat i18n

* Progress

* Tranfer weapon pools script

* Sticky on match page

* Match page translations

* i18n - tiers page

* Preparing page i18n

* Icon

* Show add note right after report
2023-11-30 20:57:06 +02:00
guigas7
a2644afeb9
Add pt-BR translation (#1532)
* Adds pt-BR translation

Signed-off-by: Guilherme <jimhorton7@outlook.com>

* Add to config

* Add missing key

---------

Signed-off-by: Guilherme <jimhorton7@outlook.com>
Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2023-11-05 14:58:44 +02:00
Kalle
9bbc00212c Add Brinestone Boots 2023-11-05 00:20:44 +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
Kalle
083453917f Move Plus Voting to new date 2023-10-31 00:14:12 +02:00
Kalle
2af092b4a2 Add Splatoween gear 2023-10-21 15:32:15 +03:00
Kalle
eb28accd97
Build Analyzer visualizations (#1517)
* Initial

* Pass mainWeaponId

* Repeating args to "context"

* Fix todos

* Date header

* Fix comparison showing for sub weapon def dmg even if no abilities selected

* Sub damage table charts

* Chart dot focus style

* Color grid initial

* Can change shots in the grid

* Optimize perf

* Style - cells

* Grid hover effect

* Mobile friendly
2023-10-01 12:20:48 +03:00
Kalle
6bfdfecd27 Remove THROW_ON_AUTH_ERROR 2023-09-28 21:25:07 +03:00
Kalle
3412597fd9 Change session cookie name 2023-09-27 01:18:55 +03:00
Kalle
cf19bc7054 Add error log when finishing auth fails 2023-09-27 01:18:55 +03:00
Kalle
743c721e7b Token call behind GW 2023-09-26 19:44:23 +03:00
Kalle
7e7d656445 Add "bpn" alias Closes #1500 2023-09-25 00:20:00 +03:00
Kalle
587556b55b Restructure auth code + debug logs 2023-09-24 23:12:01 +03:00
Kalle
1394608e01 Try including domain in session cookie 2023-09-24 23:09:03 +03:00
Kalle
c12d8f3e65 Auth via gateway 2023-09-24 14:25:11 +03:00
Kalle
9de50b525e Fix Hero Shot link 404 Closes #1477 2023-09-16 11:33:22 +03:00
Kalle
43de8b53c1 Fix users without avatar not being able to use bot to log in 2023-09-15 00:28:09 +03:00
Kalle
9b2958c4d0 Add Portuguese language to SendouQ 2023-09-12 21:38:41 +03:00
Kalle
58b55ee916 Add "nzap" weapon alt name 2023-09-12 21:36:48 +03:00
Kalle
d37fb57a73 Fix login link for prod 2023-09-09 13:28:02 +03:00
Kalle
5bfc54a7a9 Add new purchaseable SR gear Closes #1482 2023-09-09 11:12:45 +03:00
Kalle
4eaeb48136
Alternative login flow (magic link via bot) (#1488)
* Log in link creation initial

* Add global name to update all command

* Remove left over log

* Login command

* Update command

* Add todos

* TODOs

* Migration file fix order
2023-09-09 10:27:59 +03:00
Kalle
7db5a395f9
SendouQ VC info (#1487)
* Initial

* Finished version

* Prettier
2023-09-09 10:20:40 +03:00
Kalle
c24b9195b9 5.0 2023-08-31 21:58:28 +03:00
Kalle
4a28aca753 Add support for weapon combobox abbreviations Closes #1217 2023-08-27 00:17:02 +03:00
Kalle
191de711c0 Upgrade deps 2023-08-26 23:22:51 +03:00
Kalle
dab6b00c2d Update Prettier 2023-08-26 22:38:11 +03:00
Kalle
768fc62b2c Throw an error in map list generation if duplicate maps 2023-08-26 13:19:18 +03:00
Kalle
6cee16492c Make it possible to disable login 2023-08-13 10:59:08 +03:00
Kalle
20f1ea4849 THROW_ON_AUTH_ERROR feature flag 2023-08-13 09:46:43 +03:00
Kalle
e7bbb565be
SendouQ (#1455)
* Tables

* Clocks

* Maplist preference selector

* Fix SSR

* Nav icon

* RankedOrScrim

* Map pool

* Create group

* Redirect logic

* Persist map pool

* Advance from preparing page

* Rename query

* Fix merge

* Fix migration order

* Seed groups

* Find looking groups SQL

* Renders something

* More UI work

* Back to 30min

* Likes/dislikes

* Always return own group

* Fix like order

* 3 tc/rm/cb -> 2

* Show only 3 weapons

* Pass group size

* Handle both liked and liked by same group

* Fix SQL

* Group preference frontend work

* Morphing

* Styling

* Don't show group controls if not manager

* Give/remove manager

* Leave group

* Leave with confirm

* Delete likes when morphing groups

* Clocks consistency

* Remove bad invariant

* Persist settings to local storage

* Fix initial value flashing

* Fix never resolving loading indicator

* REFRESH_GROUP

* Flip animations

* Tweaks

* Auto refresh logic

* Groups of 4 seed

* Reduce throwing

* Load full groups initial

* Create match

* Match UI initial

* Score reporter initial

* Push footer down on match page

* Score reporter knows when set ended

* Score reporting untested

* Show score after report

* Align better

* Look again with same group functionality

* More migrations

* Team on match page

* Show confirmer before reporting score

* Report weapons

* Report weapos again by admin + skill changing

* Handle no tiebreaker given to MapPool

* Remove unranked

* Remove support for "team id skill"

* no-wrap -> nowrap

* Preparing page work

* Use common GroupCard component

* Add some metas

* MemberAdder in looking page

* Fix GroupCard actions

* Fix SZ only map list including other modes

* Add season info

* Prompt login

* Joining team

* Manage group on preparing page

* Manage group on preparing page

* Seed past matches

* Add to seed

* No map list preference when full group + fix expiry

* Fix skill matchesCount calculation

* Tiers initial work

* Some progress on tiers

* Tiering logic

* MMR in group cards

* Name to challenge

* Team MMR

* Big team rank icons

* Adjust todos

* Match score report with confirm

* Allow regular members to report score

* Handle reporting weapons edge cases

* Add tier images

* Improve GroupCard spacing

* Refactor looking page

* Looking mobile UI

* Calculate skill only for current season

* Divide groups visually when reporting weapons

* Fix match page weapons sorting

* Add cache to user skills+tier calculation

* Admin report match score

* Initial leaderboard

* Cached leaderboard

* Weapon category lb's

* Populate SkillTeamUser in SendouQ

* Team leaderboard filtered down

* Add TODOs

* Seasons initlal

* Season weapons initial

* Weapons stylized

* Show rest weapons as +

* Hide peak if same as current

* Load matches SQL initial

* Season matches UI initial

* Take user id in account

* Add weapons

* Paginated matches

* Fix pages count logic

* Scroll top on data change

* Day headers for matches

* Link from user page to user seasons page

* Summarize maps + ui initial

* Map stats

* Player info tabs

* MMR chart

* Chart adjustments

* Handle basing team MMR on player MMR

* Set initial MMR

* Add info about discord to match page

* Season support to tournaments

* Get tournament skills as well for the graph

* WIP

* New team rating logic + misc other

* tiered -> tiered.server

* Update season starting time

* TODOs

* Add rules page

* Hide elements correctly when off-season

* Fix crash when only one player with skill

* How-to video

* Fix StartRank showing when not logged in

* Make user leaderboard the default

* Make Skill season non-nullable

* Add suggested pass to match

* Add rule

* identifierToUserIds helper

* Fix tiers not showing
2023-08-12 22:42:54 +03:00
Kalle
f0fe425b5f return redirect -> throw redirect
For consistency but also I think sometimes the data
loading gets screwed up if you don't throw
2023-07-28 21:41:51 +03:00
Kalle
3157efe375 Port "Play final and consolation final in parallel"
4b61707c2d (diff-62b417fe480c807f60ec4a160e2c3a621587b08c6d674fc0ee5bdd8d8cd73f84)
2023-07-03 10:53:39 +03:00
Kalle
54940b12df Add tests to brackets-manager 2023-07-02 22:38:54 +03:00
Kalle
b4323e104e Upgrade deps 2023-07-01 00:12:29 +03:00
Kalle
2d70091b48 Add July Salmon Run reward 2023-06-30 23:38:00 +03:00
Kalle
35424514d6
Finalize tournament + leaderboards initial (#1404)
* Set up tables

* Initial

* Frontend for finalize tournament

* Enter summaries to DB

* Handle changes on tournament page after tournament is finalized

* Fix streams tab text not centered

* Add translations

* Results on user page

* Highlight logic for tournament results

* Leaderboard page initial

* Team leaderboard

* CSS tweaks

* Add unit tests

* Add some i18n

* Add leaderboards page meta

* Support tournaments of size 2

* Add E2E test

* Add missing group by
2023-06-29 00:21:33 +03:00
Kalle
58e60e746d Special weapon damages for analyzers + Trizooka 2023-06-18 12:32:46 +03:00
Kalle
600c67f765 Use new Discord display name, make showing unique username optional Closes #1391 2023-06-17 16:02:09 +03:00
shachar700
b88da87e88
Hebrew translation initial (#1377)
* added hebrew translations pt.1

* Fixes

* Adjusted hebrew translations

* hebrew lang title

* small fix

---------

Co-authored-by: shachar700 <shachar70@gmail.com>
Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2023-06-04 11:41:21 +03:00
Kalle
e32d1feb19 Fix CI 2023-05-31 22:02:07 +03:00
Kalle
d76dff065a Patch 4.0 2023-05-31 21:47:44 +03:00
Kalle
84c50d62db Tournament: Fix bad losers bracket positions 2023-05-24 23:50:39 +03:00
Kalle
2844ce8e10 Adjust missing twitch env var text 2023-05-23 19:59:21 +03:00
Kalle
cda9c8b082 Tournament streams initial 2023-05-22 00:43:51 +03:00
Kalle
afbb0fd689 Final placements display 2023-05-20 22:31:24 +03:00
Kalle
0e28189336 Take ownership of brackets-model 2023-05-20 12:04:58 +03:00
Kalle
98ec7fe99f Fix teams meeting too early in bracket 2023-05-19 19:41:56 +03:00
Kalle
ef78d3a2c2
Tournament full (#1373)
* Got something going

* Style overwrites

* width != height

* More playing with lines

* Migrations

* Start bracket initial

* Unhardcode stage generation params

* Link to match page

* Matches page initial

* Support directly adding seed to map list generator

* Add docs

* Maps in matches page

* Add invariant about tie breaker map pool

* Fix PICNIC lacking tie breaker maps

* Only link in bracket when tournament has started

* Styled tournament roster inputs

* Prefer IGN in tournament match page

* ModeProgressIndicator

* Some conditional rendering

* Match action initial + better error display

* Persist bestOf in DB

* Resolve best of ahead of time

* Move brackets-manager to core

* Score reporting works

* Clear winner on score report

* ModeProgressIndicator: highlight winners

* Fix inconsistent input

* Better text when submitting match

* mapCountPlayedInSetWithCertainty that works

* UNDO_REPORT_SCORE implemented

* Permission check when starting tournament

* Remove IGN from upsert

* View match results page

* Source in DB

* Match page waiting for teams

* Move tournament bracket to feature folder

* REOPEN_MATCH initial

* Handle proper resetting of match

* Inline bracket-manager

* Syncify

* Transactions

* Handle match is locked gracefully

* Match page auto refresh

* Fix match refresh called "globally"

* Bracket autoupdate

* Move fillWithNullTillPowerOfTwo to utils with testing

* Fix map lists not visible after tournament started

* Optimize match events

* Show UI while in progress to members

* Fix start tournament alert not being responsive

* Teams can check in

* Fix map list 400

* xxx -> TODO

* Seeds page

* Remove map icons for team page

* Don't display link to seeds after tournament has started

* Admin actions initial

* Change captain admin action

* Make all hooks ts

* Admin actions functioning

* Fix validate error not displaying in CatchBoundary

* Adjust validate args order

* Remove admin loader

* Make delete team button menancing

* Only include checked in teams to bracket

* Optimize to.id route loads

* Working show map list generator toggle

* Update full tournaments flow

* Make full tournaments work with many start times

* Handle undefined in crud

* Dynamic stage banner

* Handle default strat if map list generation fails

* Fix crash on brackets if less than 2 teams

* Add commented out test for reference

* Add TODO

* Add players from team during register

* TrustRelationship

* Prefers not to host feature

* Last before merge

* Rename some vars

* More renames
2023-05-15 22:37:43 +03:00
Kalle
5e36b76ee8
TO Tools back (#1349)
* Remove friend code

* Revive TO Tools admin page

* Revive TO Tools maps page

* Initial one mode only map list

* Add modesIncluded arg

* Handle no maps picked for SZ only generation

* Tiebreaker is always from the maps of the teams

* Make modesIncluded necessary arg

* Tiebreaker is from neither team's pool if no overlap

* Handles worst case duplication

* Handles one team submitted no maps test

* Fix crash

* Seed

* Can change one mode tournament map pool

* Fix join page link

* Remove useless TODO

* Fixes related to mapListGeneratorAvailable

* Fix map list generation considering impossible map lists making it take forever

* Show unlisted select for both sides

* Add info texts

* Remove register button

* Add todos

* Finished version for ITZ

* Times

* Remove TODOs

* 23->24
2023-04-22 11:44:20 +03:00
Kalle
cfbd18b4fe Object Damage Calc: Separate subs in the combobox Closes #1220
Also due to a bug the subs were not accessible at all before.
This was a bug introduced in c014ba5e18
2023-04-15 12:06:07 +03:00
Kalle
5a28f402c4 Add April SR gear 2023-04-02 15:34:28 +03:00
Kalle
cfa0d4dd0d
Build stats / popular builds (#1307)
* Add abilityPoints migration

* Initial stats

* Build stats UI

* Add TODO

* Update css file name

* Popular builds page
2023-03-11 14:05:08 +02:00
Kalle
e079370cdf Add Grizzco gear you can buy with scales Closes #1292 2023-03-07 01:13:01 +02:00
Kalle
2392427762 Patch 3.0 Closes #1284 2023-03-01 18:42:32 +02:00
Kalle
c0c4c251cc Add Polish language 2023-02-23 21:47:09 +02:00
Kalle
369e7ecb57 Add February SR gear 2023-02-05 13:55:00 +02:00
Kalle
f0f6b14f58 Upgrade deps 2023-01-22 13:40:05 +02:00
Kalle
946a287b96 Introduce getUserId and requireUserId
Idea is to avoid doing DB calls when all we need
is just the user's id.
2023-01-14 13:45:06 +02:00
Kalle
6e630ab8e3 Add January's SR reward 2023-01-07 10:53:09 +02:00
Kalle
791744c40c Move build analyzer to feature folder 2022-12-22 00:14:29 +02:00
Kalle
6feb269193
Full tournament feature WIP (#1196)
* Layout initial

* Add FillRosterSection component

* Move tournaments to feature folder

* Refactor Button props

* SubmitButton

* Register action

* Identifier -> Id

* Invite link via nanoid

* Team info submit

* Enter tiebreaker map list UI

* Invite members to tournament team initial

* Show banner if joined a team not captain of

* Add back teams page

* Change team roster size color when good

* Delete tournament team member
2022-12-21 23:24:59 +02:00
Kalle
bf85ca82a0 Obj DMG Calc: More accurate Explosher damage 2022-12-10 20:08:41 +02:00