Commit Graph

248 Commits

Author SHA1 Message Date
Kalle
2fc3136a35 Upgrade deps 2022-11-24 00:50:07 +02:00
Kalle
aea7406586
Map Planner (#1145)
* Initial

* Add images

* Tweaks

* Proper sized bg image and weapons

* Stage bg picker

* Outlined weapon images for planner

* First version

* Lint

* Add alt and title to weapon
2022-11-23 17:38:38 +02:00
Kalle
7bce94d97e Show Plus Voting % to patrons 2022-11-15 18:04:37 +02:00
Kalle
ecd5a2a2f7
TO Tools (#1077)
* Add DB tables

* Toggle TO Tools in new calendar event page

* TO tools page initial

* Add counter pick map pool UI

* Save tie breaker map pool

* Save team name

* Layout initial

* Load users own team

* Make team name input required

* Rename team

* Divide to sections

* Submit team map pool

* New style for counter pick map pool section expand

* Fix tiebreaker map pool not saved when new event made

* Split to many forms

* According for team name

* Small UI consistency tweaks

* Add explanation to tie breaker maps

* Remove redundant prop

* Fix new calendar event todos

* Use required hidden input component in new build page

* Fix to tools page showing even when toToolsEnabled = 0

* Delete team

* Map list generation tests initial

* Add tournament map list generation tests

* First version of map list generation

* Add seeded RNG

* Rearrange files

* Generation with strats initial

* Default map pool + allow one team not to have any maps

* Implement map generation via backtracking

* Make order of stages irrelevant

* Add one more TODO

* Seed

* Fixes

* Tournament map list generator initial

* More functional maplist

* Fix any

* Persist in search params initial

* Add date to calendar seed

* Revert "Persist in search params initial"

This reverts commit f01a9e6982.

* Allow admin to start tournament

* Rate maplist instead of optimal / suboptimal

* Add fallback if map list generation errors out

* Hide TO Tools if not admin

* Submit team roster and delete members

* Teams page

* Give roster s p a c e

* Clear user combobox on sent + layout tweaks

* Gracefully handle updating after tournament has started

* Add title

* Persist map list in search params

* Add i18n
2022-11-13 14:41:13 +02:00
Remmy Cat Stock
a73be2e742
Add placement ordinal translation (#1102) 2022-11-06 11:18:03 +01:00
Remmy Cat Stock
9762c7aa4d
Improve plus suggestion comment validation (#1101) 2022-11-06 10:08:36 +01:00
Remmy Cat Stock
88e0649e79 Set default date for new events to the next full hour 2022-11-05 14:44:08 +01:00
Remmy Cat Stock
b4f8e4402e Make date input more reliable by handling invalid dates and different browser behaviours 2022-11-05 14:44:08 +01:00
William Lam
0d8b88ea5a
All articles page (#1072)
* Added new Article route that renders all Articles (with a reasonable upper limit for now).
- Also added a GoToPageBanner for the main Articles page (/a) on the front page. This is placed above the ArticlesPeek component
- Used the sendou_love navItem icon for the moment (this can be replaced at any time once a new art asset is added)

* Fixed Prettier CI pipeline error

* Ran `npm run check-translation-jsons` to update missing Translations for new key added

* Update public/locales/en/front.json

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>

* French localizations

* Removed unnecessary comment

* Converted h2 to h1 tags for Main Articles page

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>

* Moved GoToPageBanner element for main articles page to below ArticlesPeek element

* Refactored some files so that the articles prop is passed into ArticlesPeek
- Also added the Articles header title in common.json

* Updated translation-progress.md

* Cleaned up data type for articles prop in ArticlesPeek

* Fixed React hydration error for translations on imported articles
- Added in SendouRouteHandle component on new Articles main page

* GoToPageBanner now optionally accepts a `navItem` parameter. It does not render the image if navItem is not passed into it

* Removed <Outlet /> JSX element on the main Articles page

* Removed sendou_love navItem on GoToPageBanner for articles page

* Fixed spacing issue by grouping ArticlesPeek and its corresponding GoToPageBanner element into a `stack` div

* Fixed pipeline error

* Update translation again

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-01 08:57:44 +02:00
William Lam
09851faf83
New Date entry on the new Calendar page is now based off the previous one (#1070)
* Issue 858: On the new calendar page adding a new Date entry with the "Add" button will now insert a new date with an offset of +24 hours of the previous row's date value.

* Added comment to ignore the TSLint "object can be null" error

* Changed `var` to `const`

* Fixed Prettier checks in CI pipeline

* Fixed Typecheck CI pipeline error

* Moved getDateWithHoursOffset() function to app/utils/dates.ts

* Added new line at end of file

* Added getValidNewDateIfInvalid() function. This retrieves a valid date. If invalid, get a new Date object.
- So now, if we intentionally/accidentally delete the data in the Calendar's DateInput element, it will be reset to the current Date/Time

* Refactored DateInput component's update state mechanism to be handled by an onChange() function defined in the parent component that is passed to the child

* Prettier formatting so that the new CI pipeline won't output errors at me

* Removed unused imported types

* Removed the datesCount React Hook & refactored accordingly

* Removed unused loader-related variables

* DateInput onChange prop is now optional

* Instead of generating a new Array, iterate over DateInput's inputState's array instead

* Fix potential undefined error

* DatesInputState: refactored to remove index & access the index during iteration with map() 2nd arg

* Properly initialized state for pre-existing events =)
- Also added TODO comments for improving date input handling (1082)

* Prettier formatting

* Uncommented console.warn()

* Touched up comment
2022-10-31 03:59:51 +01:00
Kalle
b407127b36 Build card gear name title on hover 2022-10-29 21:46:39 +03:00
Remmy Cat Stock
d1b1367651
Add event search to map pool templates 2022-10-27 13:31:37 +02:00
Remmy Cat Stock
63154e507e
Initial support for map pool templates 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
edd3a1d91b
Improve MapPoolSelector UI 2022-10-27 13:31:36 +02:00
Kalle
e6c25967e9 Analyzer add link to Obj DMG page when OS selected
Closes #1039
2022-10-27 09:43:56 +03:00
Kalle
bf4b6fab13 Add object dmg calc to nav and front page 2022-10-26 09:00:43 +03:00
Kalle
d487af683a Object damage filter by damage type 2022-10-23 12:50:25 +03:00
Kalle
14f7507e2c Make damage use rounding that matches data struct 2022-10-23 12:01:05 +03:00
Kalle
e705c58ebb More type safety to SendouRouteHandle.navItemName 2022-10-22 12:40:36 +03:00
Remmy Cat Stock
3ce7c00d5b
Detect active nav item via route handle instead of path matching 2022-10-21 18:29:23 +02:00
Remmy Cat Stock
85fda204c0
Refactor breadcrumbs into a component that uses route handles 2022-10-21 00:48:58 +02:00
Remmy Cat Stock
db4f633a47
Add type for route handles 2022-10-21 00:48:10 +02:00
Remmy Cat Stock
ab98a106bb
Show dialog for failed login attempts 2022-10-20 22:40:34 +02:00
Remmy Cat Stock
76afa161fc
Implement user result highlights UI 2022-10-18 23:41:01 +02:00
Kalle
6def5b9397 Format 2022-10-16 10:12:51 +03:00
Remmy Cat Stock
9f7faa2054
Improve result placement display with custom medal icons 2022-10-15 13:17:04 +02:00
Kalle
f81ac674e1 Link to iplabs 2022-10-13 22:38:46 +03:00
Kalle
4108637a30 Save map pool in edit calendar event page 2022-10-13 19:22:23 +03:00
Kalle
6770b8e214 Map pool from server 2022-10-09 19:06:22 +03:00
Kalle
34e134acaf Maps with serializing to URL 2022-10-06 20:54:14 +03:00
Kalle
5e6ffbebfb Add link to spl2 sendou ink to footer
Closes #908
2022-10-04 21:35:23 +03:00
Kalle
7b038d87d9 Extra infos on user page 2022-10-02 12:20:19 +03:00
Kalle
5e617e7914 Custom URL submitting error handling 2022-10-02 00:43:55 +03:00
Kalle
ff857f3369 Custom URL url redirects and replacements 2022-10-02 00:25:13 +03:00
Kalle
34c1b0e71a User custom url, ign & sens initial 2022-09-29 23:26:31 +03:00
Kalle
2c330620fb Add button to analyzer to build card 2022-09-27 21:53:12 +03:00
Kalle
492977f45c Add logo with link to front page 2022-09-26 21:21:00 +03:00
Kalle
24461f75aa Fix weapon deslugifying not working w/ other langs 2022-09-25 16:36:23 +03:00
Kalle
fa5cd28c0d More friendly error page 2022-09-25 16:18:09 +03:00
Kalle
a9c8daa360 Builds page Add build button 2022-09-25 11:53:51 +03:00
Kalle
fe7237ba4c Builds page breadcrumbs 2022-09-25 11:47:39 +03:00
Kalle
24330b72ed Working links on build index page 2022-09-25 11:05:51 +03:00
Kalle
494e5af5f7 Builds index page initial 2022-09-25 00:29:49 +03:00
Kalle
2d9dd3f91e Build Analyzer to prod! 2022-09-20 20:48:41 +03:00
Kalle
3e28818269 Analyzer damage table initial 2022-09-15 13:14:33 +03:00
Kalle
35dbe4e6cc Default preview image for Discord etc. links 2022-09-14 23:04:52 +03:00
Kalle
ef1b89675d KitCards for analyzer 2022-09-12 19:31:33 +03:00
Kalle
42ebd69ebc Update main weapons folder name 2022-09-12 16:52:52 +03:00
Kalle
5275520533 Show joining instructions when passing Plus Voting
Closes #911
2022-09-04 23:27:00 +03:00
Kalle
c06a7c4f74 Can submit a new build 2022-09-03 18:14:53 +03:00
Kalle
e94cd3e755 AbilitySelector 2022-09-03 18:14:53 +03:00
Kalle
b75a3c5703 Build schema initial 2022-09-03 18:14:53 +03:00
Kalle
b94a1beb6f UNKNOWN ability 2022-09-03 18:14:53 +03:00
Kalle
0f0542f2e9 Build cards initial 2022-09-03 18:14:53 +03:00
Kalle
3c09c16e05 Front page feature cards 2022-08-24 20:27:08 +03:00
Kalle
db96345e53 Articles on front page initial 2022-08-24 00:17:45 +03:00
Kalle
806aabd4e1 Add a few more og properties 2022-08-20 16:44:58 +03:00
Kalle
009c2a3e24 Article feature initial 2022-08-20 16:15:03 +03:00
Kalle
adf15e72e6 Seed via admin panel 2022-08-16 20:17:25 +03:00
Kalle
cc1dee675c Fix when editing event time doesn't match 2022-08-13 15:49:59 +03:00
Kalle
2a7d32b77f User profile results page 2022-08-11 23:21:15 +03:00
Kalle
6a6f8a19e8 New event dates fix able to submit without one 2022-08-07 13:25:49 +03:00
Kalle
6a649efc06 Saves winners to DB 2022-08-06 18:42:56 +03:00
Kalle
c86a548b4f Parse tournament results and return errors 2022-08-06 01:12:57 +03:00
Kalle
762cb5e215 Implement parsing report scores action 2022-08-05 00:35:10 +03:00
Kalle
e39e72c840 Report results page link 2022-08-01 09:28:45 +03:00
Kalle
c4b5d8d1c2 "browses weeks and inspects event page" E2E test 2022-07-31 20:32:38 +03:00
Kalle
6281c4cb5f "operates custom form controls" E2E test 2022-07-31 15:25:26 +03:00
Kalle
7d7f771c19 Edit event full flow 2022-07-31 14:16:03 +03:00
Kalle
7d333a5b7f Implement adding new event to DB 2022-07-30 17:45:12 +03:00
Kalle
a53a448a7f Add tournament action data schema 2022-07-30 16:41:16 +03:00
Kalle
212966eb32 Merge branch 'rewrite' of https://github.com/Sendouc/sendou.ink into calendar 2022-07-29 22:54:25 +03:00
Kalle
efbcafaf82 Badge prize preview on calendar event page 2022-07-28 22:39:33 +03:00
Kalle
c06fc5fe42 WeekLinkTitle with date ranges 2022-07-26 21:40:10 +03:00
Kalle
9041777896 Remove PLUS_SUGGESTIONS_PAGE constant 2022-07-26 20:41:49 +03:00
Kalle
118d89496a Plus suggestion redirect to tab with new user 2022-07-26 20:38:56 +03:00
Kalle
912cf5ac57 Events list layout with all elements 2022-07-24 10:38:42 +03:00
Kalle
72b9903b03 Calendar meta 2022-07-23 14:24:24 +03:00
Kalle
abc30fd12b Calendar events from DB initial 2022-07-22 23:20:39 +03:00
Kalle
b5580c347f Calendar navigation with data from loader 2022-07-21 20:57:01 +03:00
Kalle
4bc7b3025b Translate user page 2022-07-17 13:38:57 +03:00
Kalle
63d9a5b53b Set translated title on client side for FAQ 2022-07-17 11:52:35 +03:00
Kalle
4d2c72c14f Add contributions page 2022-07-11 23:38:21 +03:00
Kalle
4b8eecc2c9 Footer desktop initial 2022-07-11 16:11:09 +03:00
Kalle
fb1d423bf0 Info to FAQ on how to get a badge for event 2022-07-10 18:26:51 +03:00
Kalle
64d0f95f3b Patreon pledge data parsing endpoint initial 2022-07-10 12:27:02 +03:00
Kalle
83a66aa21a Close badge edit modal after successful POST 2022-07-09 15:36:28 +03:00
Kalle
2a37365bd6 Edit managers in DB 2022-07-07 12:30:08 +03:00
Kalle
2ca589faf6 Add user migration admin feature 2022-07-05 20:15:30 +03:00
Kalle
80b901a121 Edit badge owners button with permissions 2022-07-05 15:46:00 +03:00
Kalle
9f50b04f2e Badge thumbnail images 2022-07-04 22:01:51 +03:00
Kalle
89a16d4ff3 Badges url via function 2022-07-04 21:09:10 +03:00
Kalle
cf7ec172c9 Add FAQ page with Plus Server info 2022-07-03 15:40:05 +03:00
Kalle
0f7518e055 Badge details page initial 2022-06-27 09:36:29 +03:00
Kalle
c7a50ded65 Impersonate users in prod 2022-06-18 15:51:17 +03:00
Kalle
1e8a63c961 Submit votes initial 2022-06-12 15:11:23 +03:00
Kalle
79278c4cbc Add usersForVoting backend logic 2022-06-11 18:28:12 +03:00
Kalle
e16ad178ec xxx -> TODO allTruthy 2022-06-11 15:44:58 +03:00
Kalle
1c1d8dd6fe Move auth to modules 2022-06-11 11:21:06 +03:00
Kalle
7dd6efb832 Replace Array.at with error throwing function 2022-06-10 00:36:06 +03:00