Commit Graph

1559 Commits

Author SHA1 Message Date
Kalle
77c7ea7b22 Temporarily make assets URL point to digital ocean 2023-01-13 21:22:28 +02:00
Kalle
d652e76154 Various improvements 2023-01-13 21:18:07 +02:00
Kalle
54d4bbe308 SubmitButton for FormWithConfirm 2023-01-13 00:44:14 +02:00
Kalle
a88982e3ee Map Planner: Fix styles leaking to new text input 2023-01-13 00:41:45 +02:00
Kalle
c6381e02fb Validate image upload page 2023-01-13 00:03:05 +02:00
Kalle
64874497fb Team: More E2E tests 2023-01-12 21:40:32 +02:00
Kalle
bb2f844ec8 Fix dialog color in light mode 2023-01-12 21:02:31 +02:00
Kalle
3634b85422 Team: Manage roster tests + fixes 2023-01-12 20:57:22 +02:00
Kalle
e83943abb1 Team page: Initial tests 2023-01-12 00:57:37 +02:00
Kalle
c42011533b New flags CDN
The old one shut down. More context here
https://github.com/twitter/twemoji/issues/580
2023-01-11 21:04:20 +02:00
Kalle
959dccb474 Team fixes 2023-01-11 20:56:04 +02:00
Kalle
65bd4561e3 Teams: Add to nav 2023-01-11 09:59:23 +02:00
Kalle
9fecc35839 Upload image page 2023-01-10 00:06:24 +02:00
Kalle
e1863b328b Team: Search page 2023-01-08 12:05:55 +02:00
Kalle
2eca0b94c1 Team: Join page 2023-01-08 12:05:55 +02:00
William Lam
c8e707488b
Implemented some dynamic background sizing & positioning calculations for the Map Planner (#1200)
* Implemented a relatively simple dynamic background sizing calculation for the Map Planner

* Moved useWindowsSize() hook usage near the top of Planner() function

* Removed some dead space above the background image

* Adjustments

* Added a *lot* of math to adjust image spawn location based on the background image size & position, which are based on the current window size & position
- Moved the background image stuff to its own React Hook, usePlannerBg()

* Fix Prettier issue

* Added another comment

* Fixed typing for the usePlannerBg hook
- Also improved comments & some variable names to be cleaner/more consistent

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2023-01-08 11:24:44 +02:00
Kalle
6e630ab8e3 Add January's SR reward 2023-01-07 10:53:09 +02:00
Kalle
1170dc0bd0 Team: Manage roster page 2023-01-06 16:33:37 +02:00
Kalle
8a3178413c Team: Delete team feature 2023-01-06 16:33:37 +02:00
Kalle
b922b54d5b Team: Leave feature 2023-01-06 16:33:37 +02:00
Kalle
7c72fb2057 Team page: Bio 2023-01-06 16:33:37 +02:00
Kalle
895acabda8 Handle user not existing -> 404 2023-01-06 16:33:37 +02:00
Kalle
e05a6b9559 Use views for image and team tables 2023-01-06 16:33:37 +02:00
Kalle
77de97a406 User page: Team info 2023-01-06 16:33:37 +02:00
Kalle
257b59ce8a Team: Clean up LUTI/Team XP 2023-01-04 23:09:27 +02:00
Kalle
9d9ffac6e9 Teams: Edit page 2023-01-04 23:03:46 +02:00
Kalle
077e2356ae Team: Fetch from DB 2023-01-02 21:59:58 +02:00
Kalle
0caa90756a User page: Redirect if trying to edit other page 2023-01-02 21:08:47 +02:00
Kalle
5a2c008461 Calendar: Fix no events at the start of year 2023-01-01 18:27:06 +02:00
William Lam
e19ee86ae9
Ranked Modes checkboxes are now checked by default when making a new build (#1199)
* Ranked Modes checkboxes are now checked by default when making a new build

* Fixed the actual logic when taking older builds into account

* Added comment that references Issue 1150

* Rearranged type order so it reads better
2023-01-01 13:36:50 +02:00
Kalle
5ce7f35d4b Team: mobile layout 2022-12-31 17:57:10 +02:00
Kalle
aefefc26a3 Team: Banner placeholder when no image set 2022-12-30 23:21:37 +02:00
Kalle
da020e8557 Map Planner: Fancy backgrounds 2022-12-29 21:49:21 +02:00
Kalle
d5413ae0ed Build Analyzer: Fix not showing build value always
Had problem when using only Ninja Squid.
2022-12-29 20:33:31 +02:00
Kalle
e3e426eba6 Build Analyzer: more robust show build value check
Before if you had e.g. Ninja Squid with certain amount of SSU
then the build value would not show
since baseValue and buildValue end up being the same
2022-12-29 00:02:58 +02:00
Kalle
4dfaf07655 Build Analyzer: RM swim speed stat 2022-12-28 23:45:38 +02:00
Kalle
2538801333 Upgrade deps 2022-12-28 23:34:31 +02:00
Kalle
ecc0c89ce2 Fix type error 2022-12-27 22:42:25 +02:00
Kalle
eed5c0646f User page: Use image for flag 2022-12-27 22:28:28 +02:00
Kalle
fd28e382ec Team: Flags from data 2022-12-27 22:23:41 +02:00
Kalle
d51beef9d5 Team: UI initial 2022-12-27 22:01:15 +02:00
Kalle
1a8c2fc892 Use SubmitButton in various places 2022-12-25 12:00:17 +02:00
Kalle
ffe8ab3883 Build Analyzer: Add humanoid form ink recovery 2022-12-23 18:17:25 +02:00
Kalle
59d242980a Add title/description to couple pages where it was missing 2022-12-22 23:52:39 +02:00
Kalle
3e85173133 Map Planner: Add sub/special weapons 2022-12-22 23:43:19 +02:00
Kalle
993756aeb0 Map Planner: divide weapons to categories 2022-12-22 23:13:04 +02:00
Kalle
df7a48fd6f Extract WeaponImageSelector component 2022-12-22 21:44:32 +02:00
Kalle
f81451b0c0 Map planner to feature folder 2022-12-22 21:33:02 +02:00
Kalle
a6f2210ce2 Move analyzer constants and types 2022-12-22 20:58:21 +02:00
Kalle
cfa2e556d2 Object damage calculator to feature folder 2022-12-22 20:48:24 +02:00
Kalle
791744c40c Move build analyzer to feature folder 2022-12-22 00:14:29 +02:00
Kalle
90d7b3bde8 Build Analyzer: Fix actions per ink tank not showing highlighted with active Comeback 2022-12-21 23:39:39 +02:00
Kalle
25d15a11d2 Fix delete build icon color 2022-12-21 23:31:28 +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
d8136f3262 Fix Combobox full widthness 2022-12-15 18:22:43 +02:00
Kalle
7945e1ecc7 User page: weapon pool 2022-12-13 18:51:06 +02:00
Kalle
750e1708ee Better divider color for dark mode 2022-12-13 18:51:06 +02:00
Kalle
aa12c224bd Fix front page icon color 2022-12-13 18:51:06 +02:00
Kalle
23e78f7033 Initial user page e2e tests 2022-12-13 18:51:06 +02:00
Igor
74f6d28c39
Ru-translation update + lowercase for yaga (#1192)
* ru-translate updates

* lowercase for yaga (same as above on page)
2022-12-13 12:07:36 +03:00
Kalle
89fdb8ac43 Don't track search params changing 2022-12-12 21:32:10 +02:00
Kalle
0014940d31 Fix URL 2022-12-12 21:05:22 +02:00
Kalle
3fdfdff429 Use Fathom 2022-12-12 20:51:18 +02:00
Kalle
d5579358fa Remove GA 2022-12-12 20:23:06 +02:00
Kalle
c3963223b6
Add initial Playwright tests (#1191) 2022-12-11 17:18:33 +02:00
Kalle
9cd190df53 Try to fix GA 2022-12-10 23:54:10 +02:00
Kalle
39fa236f40 CSS remove forcd white color rule 2022-12-10 21:12:24 +02:00
Kalle
5b1da140df Fix React warning with combobox 2022-12-10 21:06:35 +02:00
Kalle
0fd1bc0e2b Map Planner: TC Blueprint backgrounds 2022-12-10 20:44:19 +02:00
Kalle
a52c92808f Contributions: Add yaga 2022-12-10 20:13:43 +02:00
Kalle
bf85ca82a0 Obj DMG Calc: More accurate Explosher damage 2022-12-10 20:08:41 +02:00
Kalle
21cfd958d8 Tri-Stringer correct damage 2022-12-10 19:58:17 +02:00
Kalle
2ba9f62d41 Obj DMG Calc: special cases calculation data driven 2022-12-10 19:45:42 +02:00
Kalle
3caecef855 Obj DMG Calc: Support calculating multishot 2022-12-10 16:17:43 +02:00
Kalle
602e545831 Build Analyzer: Add stringers damage 2022-12-08 23:48:49 +02:00
Kalle
714fa0585f BuildCard: Show Plus Status when showing user 2022-12-08 22:35:51 +02:00
Kalle
7d44cc1b44 BuildCard: Modes from popup to top right 2022-12-08 22:24:23 +02:00
Kalle
1c21e333ae Fix can't use useLoaderData in an error boundary 2022-12-08 21:50:10 +02:00
Kalle
56b28c9c77 Fix lint 2022-12-08 21:34:20 +02:00
Kalle
26e43b2ead Restore light mode 2022-12-08 21:29:51 +02:00
Kalle
4813d0a042 Object DMG Calc: Splatana support 2022-12-08 21:29:51 +02:00
Kalle
d8b1b5a367 Obj Calc: WIP Splatana 2022-12-08 01:25:02 +02:00
Kalle
ce3eda3545 Build Analyzer: Splatana damages 2022-12-08 00:51:34 +02:00
Kalle
61b91af464 Fix GA errors 2022-12-07 20:55:25 +02:00
Kalle
9e2f7fb59d Fix process.env in frontend code 2022-12-07 19:28:46 +02:00
William Lam
94ddd3031b
Ability chunk calculation now properly takes Ability Doubler into account (#1186)
* Issue 1180: ability chunk section now properly ignores Ability Doubler in its calculations
- Build Analyzer also no longer shows Ability Doubler as an Ability Chunk entry, nor does it show the Ability Chunks accordion if Ability Doubler is the only selected ability in the build

* Prettier formatting

* Now handles edge case for subabilities on Clothing gear with Ability Doubler
2022-12-07 19:07:29 +02:00
Kalle
0946a77957 Add GA 2022-12-07 18:57:59 +02:00
Kalle
4adb15af49 Fix PWA main padding 2022-12-07 18:28:33 +02:00
Kalle
b86a99a919 Calendar: Fix tag text alignment 2022-12-07 18:17:55 +02:00
Kalle
8444d75123 Add new FAQ questions 2022-12-07 18:16:34 +02:00
Kalle
ec2133b9c8 Analyzer: Fix Splattershot Pro negative run speed
Closes #1176
2022-12-06 15:34:00 +02:00
Kalle
8223cfe953 Fix front page layout shift 2022-12-06 15:15:53 +02:00
Kalle
3f013bd38b Fix front page horizontal overflow
Closes #1183
2022-12-06 14:59:15 +02:00
Kalle
abc6fded7b Use safe-area env var for PWA header top padding 2022-12-06 14:53:46 +02:00
Kalle
1e3832944f PWA 2022-12-06 14:18:20 +02:00
Kalle
45e9e3072d Improve build popup visibility 2022-12-06 13:11:27 +02:00
Kalle
225751a935 Remove redundant title on maps page 2022-12-06 13:07:43 +02:00
Kalle
ed05120647 Narrower patron section not to overlap with side nav 2022-12-06 13:00:52 +02:00
Kalle
15f386496d Adjust analyzer weapon badges styling 2022-12-06 12:49:58 +02:00
Kalle
06c43e8f0a User search page
Closes #1032
2022-12-05 21:58:12 +02:00
Kalle
847c573da5 Background color for header popovers 2022-12-05 20:13:08 +02:00
Kalle
ddbd73152b Calendar: Fix tag text not readable 2022-12-05 20:09:52 +02:00
Kalle
3cf9a2e445 New theme secondary 2022-12-05 19:42:04 +02:00
Kalle
ed6790fca0 Planner: Scrollable weapons section 2022-12-05 18:54:46 +02:00
Kalle
8c6a5e67a0 Make "sendou.ink" never show ellipsis 2022-12-05 18:49:27 +02:00
Kalle
84e9c0cf8e Fix nested <main /> 2022-12-05 16:33:33 +02:00
Kalle
51bebe00c8 Theme color to bg color 2022-12-05 16:32:14 +02:00
Kalle
4f7c3c6110 Build: Theme color for icon 2022-12-05 16:32:08 +02:00
Kalle
a9701f874f Analyzer: Add sub weapon ink consumption stat 2022-12-05 16:17:26 +02:00
Kalle
34ca290bdd
Redesign (#1179)
* Remove light mode

* Trim header

* New front page initial

* Get rid of build layout

* Breadcrumbs

* Desktop side nav

* Overhaul colors

* Add breadcrumbs

* New sub nav style

* Front page action buttons

* Add back add new build button

* Add articles page with icon

* Minor Object damage page layout tweaks

* Remove one unnecessary render from object damage

* Fix wrong link in article page

* Profile -> My Page in header

* Log in/out buttons in front

* Add drawings to front page

* Remove unnecessary comment
2022-12-05 16:05:51 +02:00
Kalle
dacc475efb Add 2.0 maps 2022-12-05 11:25:13 +02:00
William Lam
29682e52d8
Fixed Calendar WeekLink element CSS styling (#1164)
* Fixed Calendar WeekLink element CSS styling by adjusting height & min-height dynamically

* Fixed lint error

* Adjusted min-height to match that of the live version of the site
2022-12-05 00:07:42 +02:00
CardBoardBoss
60b1ca9e26
Object DMG AP UI Relocated and Icons For AP Effects (#1174)
* UI Relocated and Icons For AP Effects

The UI for AP has been moved  over the damage receivers that receive its effects

* Ran Lint Tests

* Updated damage calc UI to pass remaining tests
2022-12-05 00:02:35 +02:00
Kalle
6908fa10a0 Build Analyzer: Fix untranslated weight class 2022-12-03 02:29:28 +02:00
Kalle
0affb028a0 Build Analyzer: Big ink tank to CJR 2022-12-03 02:09:18 +02:00
Kalle
938a208698 Fix CI 2022-11-30 22:29:23 +02:00
Kalle
ffc92bdbce Chill Season 2022 update (2.0) 2022-11-30 22:24:56 +02:00
William Lam
fe65b42d9f
BuildCard: Link to weapon builds page (#1167)
* Feature Implementation: Weapon icon on build card now links to the builds page that contains all builds corresponding to said weapon

* Refactor to an actual React hook

* Refactored the URL construction for the Weapon Builds page to urls.ts

* Changes

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-27 17:46:10 +02:00
Kalle
47899b5bf2 Calendar: Add feature to delete an event
Closes #1121
2022-11-26 18:17:57 +02:00
Kalle
2067e8f7a7 Build Analyzer: Highlight when section/card active 2022-11-26 17:38:17 +02:00
Kalle
1648e28ba9 BuildCard: Better title wrapping and alignment
Closes #1163
2022-11-26 17:08:00 +02:00
Kalle
bbf0e9a034 BuildCard: Move mode icons inside popup 2022-11-26 16:42:20 +02:00
Kalle
bb722b225f Move all immutable assets to one folder
Closes #918
2022-11-26 16:33:43 +02:00
Kalle
2fc3136a35 Upgrade deps 2022-11-24 00:50:07 +02:00
Kalle
aef8ac5f61 Fix build pages not loading required i18n json 2022-11-24 00:17:05 +02:00
Kalle
3b418be3fb Planner: Add link to go back to home page
Closes #1153
2022-11-23 22:12:40 +02:00
Kalle
0e7371d125 Fix checks 2022-11-23 21:53:36 +02:00
Kalle
78d55fc896 Switch to renderToPipeableStream API
Closes #1152

Did something weird to remove errors on /plans
2022-11-23 21:33:46 +02:00
Kalle
6061c9672a Fix nanoid warning by replacing it with own function
Closes #1160
2022-11-23 21:15:42 +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
William Lam
dd14efb9ae
Fix analyzer weapon combobox flicker issue (#1131)
* Fixed flicker with combobox issue using unstable_shouldReload().
- Reference: https://remix.run/docs/en/v1/api/conventions#never-reloading-the-root

* Update app/routes/analyzer.tsx

Changed to false based on Sendou's recommendation

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

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-20 23:56:23 +02:00
William Lam
b69302c095
Fix <select /> dropdown arrow color for Light Mode (#1142) 2022-11-20 23:52:19 +02:00
Remmy Cat Stock
a6afd28953
Separate action value from submit in TO inputs due to Safari 15 bug
Fixes #1138
2022-11-19 22:06:05 +01:00
Kalle
0383d4a3e9 Fix picking (Unlisted team) crashing 2022-11-19 20:17:36 +02:00
Remmy Cat Stock
0bfa16eb3f Re-enable bulk edit controls for map pools when logged out 2022-11-19 16:29:55 +01:00
Kalle
045cb5ce83 Preview maplist generator toggle for admins 2022-11-19 17:14:12 +02:00
Kalle
29057d60db Download participants as Discord list button 2022-11-19 16:59:36 +02:00
William Lam
f704f97be3
External links are now opened in a new tab (#1136)
- Reference: https://bobbyhadz.com/blog/react-open-link-in-new-tab#open-a-link-in-a-new-tab-in-react
2022-11-19 16:12:42 +02:00
Kalle
9d7cd816c9 Color role Lohi command 2022-11-19 01:33:58 +02:00
Kalle
7658f8cb27 Add default description 2022-11-16 19:45:38 +02:00
Kalle
fd390f3fc3 Move menu up 2022-11-16 19:36:07 +02:00
Kalle
cc994776f4 Better ordering for TO Tools teams
Closes #1127
2022-11-16 19:30:42 +02:00
Kalle
e2dedf0526 Add Q&A about Patreon 2022-11-16 19:05:26 +02:00
William Lam
2da0738dc6
Ability Chunks Required section in Build Analyzer (#1120)
* Added Ability Chunks Required section in Build Analyzer

* Renamed a variable to be more precisely correct

* Added reference

* Removed some extra Javadoc comments

* Prettier fix

* We now only render the AbilityChunksRequired section only if the main abilities array contains a value other than "UNKNOWN"

* Improved React keys naming for performance reasons

* Ability Chunks map is now converted to an array & sorted by value (descending) before it gets rendered as visual components

* Fixed typing error

* Moved logical function to a new file in the analyzer module called abilityChunksCalc.ts
- Refactored for loop content to be cleaner
- Removed & changed some comments

* More for loop refactoring

* We now pass the entire build into abilityChunksCalc.ts

* Refactored map() to flatMap() so we avoid unknowns/null/undefined

* Refactored code to process mainAbilities and subAbilities

* Fixed subability list construction logic & typing in updateAbilityChunksMap()

* Got my first unit test working

* Added working unit tests, also changed sort order slightly

* Added a "real" build for testing

* Removed residual console.warn() call

* Moved constants to abilityChunksCalc.ts

* Ability chunk calculation is now correct for sub abilities

* Uncommented tests & improved their descriptions

* Rearranged expected output to match sorted order for clarity (even though it doesn't have to be)

* Fixed Prettier error

* Spacing

* Moved comments around

* More spacing

* Prettier error on test file

* Improved check in the tests

* Added a second "real" build to tests for good measure

* Added error message to empty array test

* Updated comments again

* More comments updated

* Update test name

* Ability Chunks section is now shown if we have at least one selected ability (handles edge case for primary slot-only abilities being the only chosen ability)
2022-11-16 00:10:48 +02:00
Kalle
7bce94d97e Show Plus Voting % to patrons 2022-11-15 18:04:37 +02:00
Kalle
dd3377e7f3 TO Tools roster link to user page 2022-11-15 00:45:42 +02:00
Kalle
ef0866a1b9 Fix linebreaks not working in calendar event description 2022-11-13 15:15:13 +02:00
Kalle
077df1ec98 Fix all teams showing without map pool 2022-11-13 14:45:04 +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
William Lam
f6990e93eb
Fixed "Map Pool" title in events to use the appropriate localization value (#1118) 2022-11-12 10:41:55 +02:00
Kalle
ffe5839635 Add copyright note
Closes #1103
2022-11-09 00:24:50 +02:00
Kalle
bae922b289 Add translator 2022-11-08 22:08:39 +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
222529b454 Make LanguageChanger respect existing search params 2022-11-05 14:51:22 +01:00
Remmy Cat Stock
4d84c1ad91
Fixed route translations issue detected by useTranslation 2022-11-05 14:51:02 +01:00
Remmy Cat Stock
2fa18547b0 Wrap useTranslation to detect missing translations on the route 2022-11-05 14:45:12 +01:00
Remmy Cat Stock
a6f62fa7b3 Improve date inputs UI when creating / editing events 2022-11-05 14:44:08 +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
Remmy Cat Stock
8fac1cca76
Rename Spanish language options according to feedback
Closes #1094
2022-11-05 00:43:32 +01:00
Kalle
6ff4efdc20 Add American Spanish language
Closes #985

Just in-game names are different. Rest is copied from EU translation.
2022-11-03 22:10:24 +02:00
Kalle
123565a952 Add November's Salmon Run gear 2022-11-03 20:20:34 +02:00
Remmy Cat Stock
19fbd85f8f
Add auto theme option for detecting the theme from system/browser preferences (#1083)
* Add "auto" option to theme switcher

* Add labels to language and user menu buttons

* Update translation-progress.md
2022-11-03 01:44:56 +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
Remmy Cat Stock
1888168115
Fix potential bug from mutating matches state 2022-11-01 00:54:53 +01:00
Illya9999
bcf60a4890
Only allow numbers as discrim (#1085) 2022-10-31 19:50:00 +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
Remmy Cat Stock
ad61df057c
Load gear translations needed for build cards on index route 2022-10-31 00:14:48 +01:00
William Lam
3099db8914
Hide Highlights section if the user has exactly 1 result on their profile
* Issue 1068:  Hide Highlights section if the user has exactly 1 result on their profile

* Moved the logic so that we only hide the "Choose Highlights" button if the user has exactly 1 result & they have exactly 1 highlight selected

* Updated logic to hide the Highlights section if the user only has 1 total result

* Prettier fix
2022-10-30 15:59:36 +01:00
William Lam
d9689694b4
UserComboBox only one result if exact discord ID match (#1075)
* Passed a FUSE_OPTIONS object to the Fuse() object.
- We can now adjust how "strict" the search is.

* Refactored Combobox to accept an optional fuseOptions object as a prop

* Fixed fuseOptions prop data type & added a default initialized value of {}
- Moved the USER_COMBOBOX_FUSE_OPTIONS outside of the function
2022-10-30 16:34:18 +02:00
William Lam
924ae8bfff
Fix abilities appearing clickable when they aren't (#1057)
* Issue 1036: non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon

* Revert "Issue 1036: non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon"

This reverts commit a0de4e0047.

* Issue 1036: Non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon.
- Done correctly by conditionally choosing to render a <button /> or <div /> HTML element for ability icons everywhere Ability() was invoked by passing in readonly

* Removed stray console.warn() line, added a brief comment

* Removed unnecessary tabIndex adjustment for AbilityTag element if it is readonly (since it is no longer rendered as a button if it is readonly)
- We now also condtionally give type="button" to AbilityTag only if it is actually a button

* Conditionally set AbilitiesSelector's Ability JSX elements to readonly if the ability is "UNKNOWN"

* Fixed failed check for Prettier in CI pipeline

* Ability component now only chooses the readonly class if no onClick function is passed into it
- Exception: if the ability is "UNKNOWN", it will be forced to readonly

* Fixed Prettier error in CI pipeline

* Fixed Typecheck error in BuildCard.tsx

* Fixed Prettier CI pipeline error again

* Was checking for an undefined type incorrectly. Now the logic works properly

* Fixed Prettier error

* Cleaned up classname declaration syntax to React's shorthand
2022-10-30 10:38:03 +02:00
Kalle
e97fcd4e99 Remove Cypress tests
Planned to be replaced with Playwright maybe?
Just removing in the meanwhile so they don't confuse people.
Or that people won't accidentally develop new.
2022-10-30 02:15:15 +03:00
Kalle
b407127b36 Build card gear name title on hover 2022-10-29 21:46:39 +03:00
Kalle
0af5f262f5 Fix wpn in build card not showing title on hover 2022-10-29 21:07:06 +03:00
Kalle
60a0495b9d Support for blob 4 shots in analyzer
+ fixed L-3 showing curling damage in multiples.
+ fixed "1 hit" typoed to "1 hits"

Closes #1065
2022-10-29 21:04:34 +03:00
Kalle
7af8e7a9db Add slosher class weapons damages 2022-10-29 20:36:48 +03:00
Kalle
bfc3cbfc87 Fix Hydra wrong dmg multipliers
Closes #1055
2022-10-29 12:42:40 +03:00
Kalle
085ef8abe5
Run checks on PR made (#1063)
* Run checks on PR made

* Prettify

* Refine criteria

* Bruh
2022-10-29 10:44:35 +03:00
Igor
327df35380
Disable double torpedos in analyzer (#1058)
* Note about torpedo

* no magic numbers -> constant
2022-10-29 10:17:27 +03:00
Kalle
743a89bfc7 Preload translations to avoid layout flashing
Closes #869
2022-10-29 10:08:19 +03:00
Kalle
6019b0f906 Perf optimization: prefetch pages without loader 2022-10-28 09:26:45 +03:00
Kalle
edc12bec84
Merge pull request #1056 from ElementUser/bug/1043
Issue 1043: changed <div> tag to <h1> tag for semantic HTML for top-most UI buttons on active page
2022-10-28 08:51:23 +03:00
Remmy Cat Stock
d5677cf7e8
Remove useOnce hook 2022-10-27 23:12:48 +02:00
Remmy Cat Stock
9d6c86b5ab
Fix theme switching via cookie during development 2022-10-27 22:29:31 +02:00
William Lam
e44e64dab2 Issue 1043: changed <div> tag to <h1> tag for semantic HTML on the top-most UI buttons for an active page 2022-10-27 16:24:04 -04:00
Kalle
aaaf6b318c Add front page translations for preloading 2022-10-27 23:18:55 +03:00
Kalle
29896aa76c Add Hydra Splatling shots to pop RM test 2022-10-27 20:29:44 +03:00
Kalle
fbe1c61356
Merge pull request #1047 from Sendouc/map-pool-templates
Map pool templates
2022-10-27 20:29:35 +03:00
Kalle
b340f32ae3 Fix theme cookie not saved after session closing 2022-10-27 18:12:36 +03:00
Kalle
6bacfe9717 Add Hydra full charge to prioritized damage types 2022-10-27 17:59:58 +03:00
Remmy Cat Stock
d1b1367651
Add event search to map pool templates 2022-10-27 13:31:37 +02:00
Remmy Cat Stock
0a85ad08d2
Add recent events 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
Remmy Cat Stock
3b18598288
Introduce utility MapPool class 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
de9aefa996
Unify MapPoolSelector components 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
41120088e0 Add Hydra fully charged shot damage to analyzer
Closes #1046
2022-10-27 09:27:12 +03:00
Kalle
672fa07152 Update Build Analyzer to patch 1.2.0 2022-10-27 09:14:02 +03:00