Commit Graph

384 Commits

Author SHA1 Message Date
Kalle (Sendou)
f376047463 Refactor BracketModified to common format 2022-01-12 18:13:09 +02:00
Kalle (Sendou)
c686291442 Getting info about scores to frontend 2022-01-12 09:33:23 +02:00
Kalle (Sendou)
27627fdcfc Events PoC 2022-01-12 09:11:13 +02:00
Kalle (Sendou)
403b61486f Fix lint 2022-01-11 23:14:19 +02:00
Kalle (Sendou)
ce11be6c46 Don't show Register button after tournament start 2022-01-11 08:52:29 +02:00
Kalle (Sendou)
15b2c4b6e3 Delete unused file 2022-01-11 08:52:16 +02:00
Kalle (Sendou)
af49b5be39 Fix loser source matches logic + add tests 2022-01-11 08:38:45 +02:00
Kalle (Sendou)
e8c612fe8b Loser source in R2 if R1 skipped due to BYE 2022-01-10 09:20:50 +02:00
Kalle (Sendou)
346026b119 Extract bracket service 2022-01-10 09:03:55 +02:00
Kalle (Sendou)
ddb28e95d6 Line generation working for losers byes 2022-01-10 08:53:02 +02:00
Kalle (Sendou)
1efa499461 Advance losers on report if BYE 2022-01-09 23:33:54 +02:00
Kalle (Sendou)
340c640c39 Add TODO 2022-01-09 20:26:46 +02:00
Kalle (Sendou)
ef75059801 Fix lint errors 2022-01-09 13:49:54 +02:00
Kalle (Sendou)
cb0409ccf1 Bring back undo score button 2022-01-09 12:06:20 +02:00
Kalle (Sendou)
e6cfc4dc09 Pill team roster checkboxes 2022-01-09 11:30:40 +02:00
Kalle (Sendou)
041f7a4945 Extract TeamRosterCheckboxes component 2022-01-08 21:20:41 +02:00
Kalle (Sendou)
ab266bbcc3 Fix already done match showing as current match 2022-01-08 17:56:48 +02:00
Kalle (Sendou)
7586c352dd New DuringMatchActions style 2022-01-08 15:29:27 +02:00
Kalle (Sendou)
ba3d472589 Remove the undefined in CreateParticipantsData 2022-01-07 15:48:48 +02:00
Kalle (Sendou)
b8f2aa192d tournament-start variation 2022-01-07 14:54:21 +02:00
Kalle (Sendou)
b60bde2444 Extract function in repotScore 2022-01-07 14:54:09 +02:00
Kalle (Sendou)
eb19399984 Temp placeholder in UserItem when no avatar 2022-01-07 13:46:45 +02:00
Kalle (Sendou)
083f4a2896 Log in, seed via magic search input 2022-01-07 13:18:38 +02:00
Kalle (Sendou)
16f5691424 Loser team source info shown 2022-01-06 23:01:30 +02:00
Kalle (Sendou)
d74af2bf28 Add TODO 2022-01-06 17:26:52 +02:00
Kalle (Sendou)
b7846ec5fe Seeds page visual tweaks 2022-01-06 16:14:25 +02:00
Kalle (Sendou)
4a2dfac884 Seed page with rosters 2022-01-06 15:45:46 +02:00
Kalle (Sendou)
44e72a8a18 Memoize the Layout a bit 2022-01-06 15:44:54 +02:00
Kalle (Sendou)
f0a4c7cb22 Manage teams page 2022-01-06 13:37:02 +02:00
Kalle (Sendou)
f8a80ac4dd Scroll active nav item into view on load 2022-01-06 11:58:06 +02:00
Kalle (Sendou)
53bbe13c41 Fix more ESLint complaints 2022-01-06 11:06:13 +02:00
Kalle (Sendou)
1ea4ff72fd Fix ESLint complaints 2022-01-05 23:38:59 +02:00
Kalle (Sendou)
3c99572923 Fix not able to select winner aftr reporting score 2022-01-05 20:51:58 +02:00
Kalle (Sendou)
700ed935cc Submit button avoid flicker on actionReload 2022-01-05 17:11:02 +02:00
Kalle (Sendou)
09545f97f0 Undo reported score 2022-01-05 11:24:19 +02:00
Kalle (Sendou)
bcfcc9714d Clear winner selection after reporting score 2022-01-05 09:16:05 +02:00
Kalle (Sendou)
ff5812f8e6 Ending a match advances the bracket 2022-01-05 08:56:38 +02:00
Kalle (Sendou)
90586f01f8 classnames -> clsx 2022-01-04 19:31:32 +02:00
Kalle (Sendou)
460fa344b9 Report score works without advance 2022-01-04 19:22:19 +02:00
Kalle (Sendou)
2c886a3739 Report score working kind of 2022-01-04 09:19:41 +02:00
Kalle (Sendou)
52df3c61c3 Player ids to tournament match game result schema 2022-01-04 08:29:31 +02:00
Kalle (Sendou)
c016813fbb Report score backend logic initial 2022-01-03 10:01:21 +02:00
Kalle (Sendou)
5536f8c1cb Score reporting UI pretty complete ver 2022-01-03 08:55:26 +02:00
Kalle (Sendou)
7d7785d6b7 ....aaand fix types 2022-01-01 13:31:29 +02:00
Kalle (Sendou)
5de4a97ed6 Fix unit tests 2022-01-01 13:24:09 +02:00
Kalle (Sendou)
1ea6587e82 Clean up utility classes 2022-01-01 12:25:20 +02:00
Kalle (Sendou)
e7eafad962 Rid of Tailwind 2021-12-31 17:48:20 +02:00
Kalle (Sendou)
b9cccc23df Map list stage banner initial 2021-12-31 16:36:05 +02:00
Kalle (Sendou)
28f5c42945 Split During Match Actions to two panels 2021-12-31 08:56:38 +02:00
Kalle (Sendou)
ea72bdb477 Report score UI initial 2021-12-31 08:17:08 +02:00
Kalle (Sendou)
f86b0ea533 Extract component 2021-12-29 08:50:41 +02:00
Kalle (Sendou)
d77fa8a8a3 Add Tailwind 2021-12-29 08:46:40 +02:00
Kalle (Sendou)
c379b051f7 During match actions join room UI 2021-12-28 11:31:23 +02:00
Kalle (Sendou)
1040b92eee Bracket defeated team visual 2021-12-28 09:19:10 +02:00
Kalle (Sendou)
d1df95da2d Seeding v=match complete 2021-12-28 09:02:55 +02:00
Kalle (Sendou)
7b27c74d4d Rename <ActionSection /> 2021-12-27 16:51:27 +02:00
Kalle (Sendou)
34075dec1a Fix type errors 2021-12-27 16:39:53 +02:00
Kalle (Sendou)
ff5377fc1f Bracket action panel initial 2021-12-27 16:37:30 +02:00
Kalle (Sendou)
c06de36cb2 SubmitButton for ADD_PLAYER 2021-12-27 12:57:52 +02:00
Kalle (Sendou)
0b8042f229 Show success when editing a team 2021-12-27 12:56:20 +02:00
Kalle (Sendou)
e1629cb101 parseRequestFormData throw 400 response if fail 2021-12-27 11:35:43 +02:00
Kalle (Sendou)
059797f1fd parseRequestFormData function 2021-12-27 11:26:06 +02:00
Kalle (Sendou)
1847f02aba Manage roster E2E tests initial (not working) 2021-12-26 21:02:15 +02:00
Kalle (Sendou)
3e14bb4320 Edit team info: friend code, room pass & canHost 2021-12-26 19:23:35 +02:00
Kalle (Sendou)
26c8838f66 Migration FC mandatory / roomPass 2021-12-26 10:57:52 +02:00
Kalle (Sendou)
7c54ba1048 Friend code when registering 2021-12-26 10:48:14 +02:00
Kalle (Sendou)
a5a90ec616 Fix Cypress tests 2021-12-25 23:10:03 +02:00
Kalle (Sendou)
a4d45e2577 Remove rest useFetchers 2021-12-25 23:01:29 +02:00
Kalle (Sendou)
0b6a831765 manage-roster page to local action function 2021-12-25 22:46:44 +02:00
Kalle (Sendou)
fd26d70e7e Check-in/check-out to local action function 2021-12-25 22:33:15 +02:00
Kalle (Sendou)
3cdf9dcf34 Remove formDataFromRequest helper function 2021-12-25 22:04:02 +02:00
Kalle (Sendou)
56e735dd28 Seeds to local action function 2021-12-25 21:57:46 +02:00
Kalle (Sendou)
8352a7f2ed Refactor: new way to pass CSS vars (types) 2021-12-25 00:50:23 +02:00
Kalle (Sendou)
40e7b70646 Refactor tournaments background CSS var name 2021-12-24 13:05:40 +02:00
Kalle (Sendou)
258669993c Highlight own team 2021-12-24 13:04:41 +02:00
Kalle (Sendou)
80b42eb7de Handle BYE line visual 2021-12-24 12:24:40 +02:00
Kalle (Sendou)
b586747038 Make bye matches not increment match number count 2021-12-24 11:38:47 +02:00
Kalle (Sendou)
89110c016b Advance byes basic logic 2021-12-24 11:36:51 +02:00
Kalle (Sendou)
f5c0a38ff3 Fix bracket lines for losers 2021-12-23 23:31:09 +02:00
Kalle (Sendou)
9b4e909412 Match numbers to bracket 2021-12-23 21:51:32 +02:00
Kalle (Sendou)
4b18d45335 Fix hamburger button 2021-12-23 20:30:58 +02:00
Kalle (Sendou)
3344104dc8 Fix bracket tab link 2021-12-23 18:00:09 +02:00
Kalle (Sendou)
7914377309 Tournament bracket working with data 2021-12-23 13:58:18 +02:00
Kalle (Sendou)
aed3023832 Bracket data modified to frontend 2021-12-23 10:02:15 +02:00
Kalle (Sendou)
0c659ec6af Import <Bracket /> component 2021-12-23 08:47:09 +02:00
Kalle (Sendou)
f811c4f56a Button minimal default to theme color 2021-12-22 23:08:50 +02:00
Kalle (Sendou)
5148247f0c Check-in button -> green 2021-12-22 22:36:12 +02:00
Kalle (Sendou)
ef60e3e569 Add icons to buttons 2021-12-22 22:17:09 +02:00
Kalle (Sendou)
4138de512b Add logo to admin only tabs 2021-12-22 22:05:27 +02:00
Kalle (Sendou)
126204ad86 Adjust tournament navigation when it has started 2021-12-22 21:44:43 +02:00
Kalle (Sendou)
7d14cb843b Add favicon 2021-12-22 21:21:40 +02:00
Kalle (Sendou)
d0b9708510 Create tournaments rounds seems to work edition 2021-12-22 19:54:13 +02:00
Kalle (Sendou)
88dc19f450 Create tournaments rounds almost™️ edition 2021-12-22 18:19:41 +02:00
Kalle (Sendou)
ba4ee2c00b tournamentRoundsForDB() function implementation 2021-12-22 09:39:45 +02:00
Kalle (Sendou)
a9afdb4bd3 Adjust theme color and button style 2021-12-22 09:18:19 +02:00
Kalle (Sendou)
e7fda6c415 Remove unnecessary match1 match2 info 2021-12-21 10:36:25 +02:00
Kalle (Sendou)
cc142cca0f Get destination match in algorithms 2021-12-21 10:28:50 +02:00
Kalle (Sendou)
31b0b34c80 ID's via uuid package 2021-12-21 09:14:19 +02:00
Kalle (Sendou)
2edb446a15 Create tournament rounds progress 2021-12-21 08:49:37 +02:00
Kalle (Sendou)
0e7f42a512 Log in link when trying to join team logged out 2021-12-20 11:40:15 +02:00
Kalle (Sendou)
06f9fa2811 Minor padding tweak 2021-12-20 11:21:40 +02:00
Kalle (Sendou)
d82f0d7744 Account for search queries when returning to page 2021-12-20 11:21:33 +02:00
Kalle (Sendou)
be84598a9f Fix TODO: no indicator when tabbing 2021-12-19 14:45:01 +02:00
Kalle (Sendou)
0877fe9264 Tournament nav new style 2021-12-19 14:29:57 +02:00
Kalle (Sendou)
5648218943 Add Catcher component 2021-12-19 12:18:25 +02:00
Kalle (Sendou)
33dd17eeda utils switch to using function keyword 2021-12-19 11:15:22 +02:00
Kalle (Sendou)
e4e1b11ff0 Return to same page after log in 2021-12-19 11:11:17 +02:00
Kalle (Sendou)
0a319200ae Less jank dragging UI 2021-12-18 13:34:01 +02:00
Kalle (Sendou)
acdbc34223 Move user upsert code to auth.ts
Pretty ugly to do it this way but otherwise server won't run
and don't feel like setting ts paths for ts-node
2021-12-18 12:33:09 +02:00
Kalle (Sendou)
862061243f Update rest of app to using models folder 2021-12-18 12:05:26 +02:00
Kalle (Sendou)
e62f87ee12 Move to models folder 2021-12-18 11:46:17 +02:00
Kalle (Sendou)
4f6c7715dc Move tournaments prisma calls to separate file 2021-12-18 11:20:28 +02:00
Kalle (Sendou)
c48bdea053 Disable buttons on /start if round being edited 2021-12-18 08:57:13 +02:00
Kalle (Sendou)
37da3c5e38 Add TODOs 2021-12-18 08:09:20 +02:00
Kalle (Sendou)
52fdf958f7 Number map list rounds 2021-12-17 23:12:08 +02:00
Kalle (Sendou)
df08fc0af6 Fix Edge white on white selects 2021-12-17 22:56:16 +02:00
Kalle (Sendou)
7b196384cc Edit map list stages functionality 2021-12-17 22:39:00 +02:00
Kalle (Sendou)
33155e2593 Regenerate all maps 2021-12-17 19:32:07 +02:00
Kalle (Sendou)
d27683ecc9 Handle counting SE rounds 2021-12-17 19:01:14 +02:00
Kalle (Sendou)
2332456ef2 Generate bracket reset 2021-12-17 18:57:51 +02:00
Kalle (Sendou)
02af571113 Handle a few map generation special cases 2021-12-17 17:50:28 +02:00
Kalle (Sendou)
54ca8aaab9 Map list algorithm better map picking
Don't repeat a map between rounds
2021-12-17 10:45:00 +02:00
Kalle (Sendou)
dc84895b4e Map list algorithm better mode picking
Don't repeat a mode before other modes have appeared in the round
2021-12-17 10:12:43 +02:00
Kalle (Sendou)
2cef8ad5e4 Use more realistic map pool set for test 2021-12-17 09:32:02 +02:00
Kalle (Sendou)
19e74bccc2 Fix jank when changing best of 2021-12-17 09:28:30 +02:00
Kalle (Sendou)
a6a303302c Can change best of and regen maps 2021-12-17 09:17:58 +02:00
Kalle (Sendou)
357f8b1024 Fix hydration error 2021-12-17 08:31:02 +02:00
Kalle (Sendou)
7da5e912c0 Start page UI initial 2021-12-17 08:16:02 +02:00
Kalle (Sendou)
9899755e81 Map list generating algorithm maps 2021-12-16 09:57:18 +02:00
Kalle (Sendou)
30d82e92d3 Map list generating algorithm modes 2021-12-16 09:00:10 +02:00
Kalle (Sendou)
1398dadc31 Start page UI hooks skeleton 2021-12-15 09:26:55 +02:00
Kalle (Sendou)
a868ce390e Adjust tournament/core folder structure 2021-12-14 20:49:11 +02:00
Kalle (Sendou)
d495644c36 TournamentBracket type in schema 2021-12-13 19:00:22 +02:00
Kalle (Sendou)
8e7dcb40f5 Don't make ADMIN text bold when link is active 2021-12-13 17:46:08 +02:00
Kalle (Sendou)
6b1b88494b Tournament nav links with admin only links 2021-12-13 15:47:39 +02:00
Kalle (Sendou)
c493f0082a Show round names and default best of on /start 2021-12-13 11:36:17 +02:00
Kalle (Sendou)
a4dec62b61 Count rounds algorithm 2021-12-13 10:22:31 +02:00
Kalle (Sendou)
f8437e3975 Elim bracket algorithm 2021-12-12 20:23:10 +02:00
Kalle (Sendou)
207ec000a5 Tournament InfoBanner construct CSS vars on server 2021-12-11 11:50:49 +02:00
Kalle (Sendou)
0e2ea81b48 Remove TODOs that aren't TODOs 2021-12-11 10:46:34 +02:00
Kalle (Sendou)
cdd59b139d Remove MyForm component 2021-12-11 10:38:26 +02:00
Kalle (Sendou)
de25132b52 Fix TODO (article global styles) 2021-12-10 23:45:03 +02:00
Kalle (Sendou)
f9e11b19c5 Disable sorting teams when seed POST call pending 2021-12-10 23:42:56 +02:00
Kalle (Sendou)
73171d0d9a Sortable team list CSS adjustments 2021-12-10 23:10:55 +02:00
Kalle (Sendou)
c6f4d9b016 Sort teams to show own team first on team tab 2021-12-10 09:38:43 +02:00
Kalle (Sendou)
13084b7dac Save seeds to database 2021-12-10 09:31:31 +02:00
Kalle (Sendou)
abb5dda7ab Manage roster fix type error & needless renders 2021-12-10 08:20:35 +02:00
Kalle (Sendou)
0a97fb16a1 Sort teams by seed logic 2021-12-09 10:11:53 +02:00
Kalle (Sendou)
e888fef7c6 Sortable list UI 2021-12-09 09:07:03 +02:00
Kalle (Sendou)
36c42c1980 Fix bug of negative minute remaining showing 2021-12-08 20:04:09 +02:00