Commit Graph

54 Commits

Author SHA1 Message Date
Kalle
baa4b43855
Docker setup for development (#2460)
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-07-20 16:58:21 +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
7ed228fe7e Fix finalizing test tournament + track user created at Closes #2352 2025-06-05 22:04:56 +03:00
Kalle
5a58348145 Show test tournaments on front page if the organizer 2025-05-24 20:25:08 +03:00
Kalle
e9676ada18 Refactor away in-game-lists barrel file Closes #2322 2025-05-24 19:58:40 +03:00
Kalle
cb8669acc3
New calendar UI, more filters & persisted filters (#2318)
* Add types

* Delete stuff

* wip

* findAllBetweenTwoTimestamps refactor

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Fixes

* wip

* wip

* Fix InfoPopover button styling

* wip

* wip

* wip

* Merge branch 'rewrite' into new-calendar

* wip

* wip

* wip

* wip

* Rename myform -> sendouform

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* rename

* fix test
2025-05-24 17:13:30 +03:00
Kalle
869ab6a10f
Test tournaments, prematch chat & counterpicking with mode repeat (#2242)
* Initial

* Test tournaments

* Pre-match chat
2025-05-01 12:26:13 +03:00
Kalle
f6a5643544 Refactor deprecated Kysely orderBy calls 2025-04-21 09:41:43 +03:00
Kalle
daf7b3fef7 Add friend code & seeding power to public tournament teams API Closes #2065 2025-02-01 10:53:01 +02:00
Kalle
86b50ced56
League support (#2030)
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

* Create league divs script works

* Progress

* Progress

* Prevent round from starting

* Finalized?

* Tweaks

* linter
2025-01-13 22:57:08 +02:00
Kalle
52cf70f9ae
Many starting brackets (#1992)
* Initial

* Fixes

* Fix types

* Unit tests

* Clarify which discord

* progression selector tweaks

* Adjust input UI

* Done
2024-12-22 12:55:35 +02:00
Kalle
d3a825bd57
Override tournament bracket destination (#1985)
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

* Progress

* Done?

* Update seeding nth
2024-12-15 12:24:11 +02:00
Kalle
feebdfaf54
Seeding points (#1969)
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

* Seed page initial

* Progress

* tests

* Fix e2e tests
2024-11-23 12:42:52 +02:00
Kalle
c3444349b0
Free bracket progression (#1959)
* Initial

* Start implementing TournamentFormatSelector

* Progress

* Small progress

* Add source

* Progress

* Skeleton

* Progress

* Rename progression

* Can submit progression

* Fix potential issue with caching errors

* Settings

* isFinals/isUnderground

* Valid formats tests

* New bracket check in progress

* Perf optimization: simulate brackets only frontend

* Admin check in fix

* resolvesWinner logic

* SAME_PLACEMENT_TO_MULTIPLE_BRACKETS

* Structure work

* Edit bracket while tournament in progress initial

* Delayed check in to follow up bracket

* Progress validation

* NEGATIVE_PROGRESSION

* test first sources = null

* Different text when invitational

* More checks

* Validate changed are in preview

* Rename

* Translated errors

* Disbale submti if bracket progression is bad

* Adjust bracketIdx

* changedBracketProgressionFormat

* Progress

* Fix E2E tests

* Docs progress

* Fix state change

* Add docs
2024-11-10 12:07:43 +02:00
Kalle
d554ae389c Make tournament organization member names show in the chat 2024-10-20 13:11:21 +03:00
Kalle
68aa12414a
New front page (#1938)
* Initial

* Progress

* Recent winners

* Add button

* Progress

* Mobile nav initial

* UI tweaks

* Overflow

* AnythingAdder links to places

* Remove color for tournament showcase

* Adjust SQ top banner based on if season is on right or not

* Tournament participant count fixed

* Log out

* todo

* Progress

* Nav complete

* Done?

* Fix lint

* Translate settings
2024-10-20 09:01:22 +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
William Lam
bb7f9bcb59
Replaced "process.env.BASE_URL" with ""import.meta.env.VITE_SITE_DOMAIN" (#1858)
* Add trustedDependencies

* Replaced "process.env.BASE_URL" with ""import.meta.env.VITE_SITE_DOMAIN"
- Issue Link: https://github.com/Sendouc/sendou.ink/issues/1850

* biome linting fixes

* Matched trustedDependencies to rewrite branch & rebuilt bun lock file

---------

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2024-08-30 00:26:59 +03:00
Kalle
19435dd75f
Prepare maps for brackets ahead of time (#1845)
* Prepared maps works for RR

* Refactor generateMatchesData

* Refactor rounds

* Initial prepare for SE/DE

* Share maps between brackets

* Todos

* resetPreparedMaps

* Bias SZ & reset prepared maps

* Trimming initial + tests initial

* Elimination trimming basic case

* Include group id

* Implemented all tests

* TODOs

* Better prepared maps submitted UX

* Small CSS tweaks

* Done

* Remove TODO
2024-08-24 12:10:36 +03:00
Kalle
8b5559b471 Fix orgs without uploaded image not showing up 2024-07-27 13:01:14 +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
7eeebb4bce Switch tournament logoSrc to always absolute to fix social media preview 2024-06-30 20:35:39 +03:00
Kalle
e2ea8b1a1b Fix tournament logo upload + better flow Closes #1780 2024-06-29 12:35:28 +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
2c5004f623
Logos for tournament pickups (#1768)
* Progress

* Adjust when elements show up etc.

* Reorganize

* Can upload

* Delete logo admin action

* Filter out avas pre-start

* Util func

* Remove old code

* Fixes
2024-06-22 14:35:04 +03:00
Kalle
e952093eaa Add tournament data caching 2024-06-13 23:07:53 +03:00
Kalle
060f102bb6 Streamline tournament streams 2024-06-10 23:41:32 +03:00
Kalle
f8a5bfb272 TO set map pool to tournament query 2024-06-10 21:40:07 +03:00
Kalle
f9e45fbdaa Sub counts clean up 2024-06-10 19:21:18 +03:00
Kalle
5452a30c63 Remove redundant "inProgressStages" 2024-06-10 18:49:01 +03:00
Kalle
89a50ca24f Remove legacy tournament map list generator 2024-06-09 11:42:06 +03:00
Kalle
890b73f7a1
Tournament require IGNs option (#1760)
* Initial

* Edit IGN from profile

* Admin action

* Show IGN

* Toggle visibility
2024-06-09 11:23:00 +03:00
Kalle
bfce8d9646
Custom name (#1754)
* Migration and edit

* Migrate from discordName

* discordDiscriminator
2024-06-03 22:20:21 +03:00
Kalle
518e521e09
Active rosters & organizer revise rosters/score (#1743)
* Initial

* Fix migration order

* Edit score initial

* Can edit points

* Fix failing test

* Rename var

* Remove done TODO

* Rename organizerEditing

* Inactive style for score label

* E2E tests
2024-06-02 11:51:19 +03:00
Kalle
a4a8af94dc
User submitted tournament logos (#1742)
* Can upload

* Remove avif tournament logos

* Progress

* TODOs

* Update logic

* Approval

* Fix e2e test
2024-05-26 10:55:34 +03:00
Kalle
05005eba5b Stop showing unfinalized tournaments on the front page after some time 2024-05-24 21:41:37 +03:00
Kalle
2474a0581d Show team logo on tournaments even after team disbands Closes #1722 2024-04-28 13:21:16 +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
df950c6033 Add Discord URL to tournament page 2024-04-14 14:24:13 +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
4d0d8c6e83 Tournament admin action change team name Closes #1695 2024-03-16 14:56:07 +02:00
Kalle
8c3e78c2ba Screen toggle option for tournaments Closes #1686 2024-03-16 14:11:37 +02: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
97b97dc815 Auto check in all feature Closes #1687 2024-03-10 14:42:27 +02:00
Kalle
be87a88544 Reset bracket feature Closes #1574 2024-03-07 17:45:53 +02:00
Kalle
9cdd602737 Tournament showcase on the front page 2024-02-25 15:16:28 +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
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
c637ade5ec Validate only one date per tournament 2024-01-13 11:37:04 +02:00