Commit Graph

582 Commits

Author SHA1 Message Date
Kalle
22af483c88 Accessing SQLite3 commands to package.json 2024-05-18 10:22:40 +03:00
Kalle
b6e83671b7 Upgrade deps 2024-04-28 10:59:09 +03:00
Kalle
63f8c25eb6 Upgrade deps 2024-04-07 10:03:23 +03:00
Kalle
3fab2bc5ed Remove unneeded package 2024-04-06 00:38:23 +03:00
Kalle
bd3559740a Upgrade deps 2024-04-05 17:49:28 +03:00
Kalle
5b66148857 Upgrade deps 2024-03-31 10:55:51 +03:00
Kalle
5ae3d9fa77 Try NR ESM 2024-03-24 14:38:05 +02:00
Kalle
100fa15803 Upgrade deps 2024-03-21 22:37:31 +02:00
Kalle
3710822850 Upgrade deps 2024-03-16 10:44:02 +02:00
Kalle
d6889890a6 Some Tournament tests inc. failing about repeat matches 2024-03-07 23:34:59 +02:00
Kalle
23ac86d89e Upgade deps 2024-03-02 10:00:36 +02:00
Kalle
c327273b32 Use tsx for scripts 2024-02-27 23:00:00 +02:00
Kalle
bc99395843 Fix check-translation-jsons:no-write 2024-02-25 12:02:28 +02:00
Kalle
efb44745df Add CDN to user submitted images Closes #1222 2024-02-25 10:39:54 +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
2b197e9f5e Upgrade deps 2024-02-11 11:03:04 +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
a1dba004ad NR 2024-02-10 12:53:56 +02:00
Kalle
c43d48f930 Upgrade deps 2024-02-03 10:20:21 +02:00
Kalle
6c6fa24f7f Remove vodder script 2024-02-01 17:47:55 +02:00
Kalle
422f3227b6 Fix tournaments script 2024-01-30 17:09:41 +02:00
Kalle
1fe87093b3 Add script 2024-01-22 18:24:43 +02:00
Kalle
b189a1168d Upgrade deps 2024-01-07 12:46:43 +02:00
Kalle
e23e949980
Tournament staff (TO & Streamer) (#1619)
* Migrations

* Arrange admin UI

* Load staff from DB

* Fix TODO

* Can add/remove staff

* isTournamentAdmin / isTournamentOrganizer

* Show chat to streamer

* User titles in the chat

* chat name color

* Unique constraint

* TO Staff E2E tests

* Casts on stream page

* Streamer test

* Fix test
2024-01-07 12:41:03 +02:00
Kalle
390c7dece5 Upgrade deps 2024-01-01 11:20:54 +02:00
Kalle
80228a3bcc Upgade deps 2023-12-30 11:12:45 +02:00
Kalle
d5517cdffd Unban script 2023-12-20 21:24:00 +02:00
Kalle
845ae1b0a1 Script to reopen a tournament 2023-12-17 12:01:04 +02:00
Kalle
63667e9f2a Upgrade deps 2023-12-16 11:01:50 +02:00
Kalle
7efb80b9f6 Upgrade deps 2023-12-10 09:19:56 +02:00
Kalle
d7f276e717 Upgrade deps 2023-12-09 10:45:46 +02:00
Kalle
837b9e1df5 Try to fix deploy 2023-12-06 20:30:20 +02:00
Kalle
73fd2e4a6c Upgrade all deps to latest 2023-12-06 12:40:39 +02:00
Kalle
17a558ca13 Update ban list + add script 2023-12-02 17:04:40 +02:00
Kalle
19920d8524 Use same admin ID for both dev and prod 2023-12-02 15:05:30 +02:00
Kalle
c129658ad7 Switch from ts-node to swc 2023-12-02 12:18:09 +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
Kalle
abf4d0a596 Add skipping plus tier admission from leaderboard 2023-11-19 12:59:07 +02:00
Kalle
9a126f543d
Plus Voting to 60% criteria + leaderboard access (#1537)
* Update PlusVotingResult

* Logic

* Replace plus tiers

* Testing initial

* Test progress

* Working one test

* Tests

* Schema different file

* Dynamic test

* Fix test util
2023-11-11 12:19:57 +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
0156c298cd Update playwright 2023-10-15 14:08:36 +03:00
dependabot[bot]
234324e0a6
Bump zod from 3.22.2 to 3.22.3 (#1522)
Bumps [zod](https://github.com/colinhacks/zod) from 3.22.2 to 3.22.3.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md)
- [Commits](https://github.com/colinhacks/zod/compare/v3.22.2...v3.22.3)

---
updated-dependencies:
- dependency-name: zod
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-15 12:48:24 +03:00
Kalle
b2cf401b10 Update to the new AWS API 2023-10-14 10:28:02 +03:00
Kalle
0371bfcd12
SendouQ chat (#1508)
* Chat initial component

* Connect to websocket

* Chat render actual messages

* Chat keep scrolled to bottom

* Pending messages

* Pass rooms as arg

* Chat with tabs

* Message max length

* Looking tabs initial

* Fixes

* Chat on looking page w/ unread messages count

* Add reconnecting websocket

* Patron custom color

* Change ChatMessage data model

* Fix mobile layout

* Add clean up to useEffect

* Chat codes

* FF + clear messages on group morph

* Hide messages when user leaves etc.

* Fix match page layout when chat missing

* New tabs

* Tabs for mobile

* Add TODOs

* Switch to own group tab when roster changes

* Chat styling

* Redesign group cards

* Bring back manager buttons

* Remove flipped

* Remove unused code

* Align better

* Link to user profile

* Better room pass + highlighted

* Fix view when group expired

* Fix MemberAdder (missing input + overflow)

* Chat stay connected in looking

* Remove filters for now

* Fix chat number align

* Fix chat unseen messages

* Hide chat when alone

* Remove rest todos
2023-09-24 12:48:37 +03:00
Kalle
6b9f1182fb Season initial powers script Closes #1450 2023-09-09 20:44:52 +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
a998f426cc Ban feature 2023-08-18 16:36:11 +03:00