Commit Graph

1559 Commits

Author SHA1 Message Date
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
Kalle
4353b30f7e Add object-damage-calculator page title 2022-10-26 17:30:40 +03:00
Kalle
b4762d6455 Fix crash when no damage data on obj dmg calc 2022-10-26 17:29:32 +03:00
Kalle
01b0b55e51 Add patch badge to obj dmg calc page 2022-10-26 09:07:35 +03:00
Kalle
019e455c61 Allow access to obj dmg calc page 2022-10-26 09:01:34 +03:00
Kalle
4e9e3527ae Rename object dmg calc page 2022-10-26 09:01:14 +03:00
Kalle
bf4b6fab13 Add object dmg calc to nav and front page 2022-10-26 09:00:43 +03:00
Kalle
6e43b6bbd3 Add tests and fix damage calculation of some wpns 2022-10-26 08:42:04 +03:00
Kalle
7a936fd4bc Fix damage table showing translation key 2022-10-25 17:43:13 +03:00
Kalle
2ab4acde77 Object damage acronyms explanation 2022-10-25 17:40:43 +03:00
Kalle
08161b9346 Object damage calculator mobile layout 2022-10-25 00:21:59 +03:00
Kalle
292e3c2759 More relevant damage receivers order 2022-10-25 00:19:30 +03:00
Kalle
6eea2edb7b Add splatted by RP user stat to analyzer (ss) 2022-10-24 19:32:53 +03:00
Kalle
12bd09cb14 Add splatted by RP user stat to analyzer 2022-10-24 19:24:26 +03:00
Kalle
3c69208ced Objective damage calc page title 2022-10-24 00:27:53 +03:00
Kalle
1671653839 Objective damage calc i18n 2022-10-24 00:25:16 +03:00
Kalle
6f1a4935a9 Add object shredder to damage table 2022-10-23 22:36:04 +03:00
Kalle
c918aafb9d Add remaining hitpoint values 2022-10-23 15:05:20 +03:00
Kalle
d487af683a Object damage filter by damage type 2022-10-23 12:50:25 +03:00
Kalle
dfd16cef2f Fix errors not getting logged 2022-10-23 12:49:05 +03:00
Kalle
14f7507e2c Make damage use rounding that matches data struct 2022-10-23 12:01:05 +03:00
Kalle
86a5e9ee2a Objective damage table change SPU/BRU 2022-10-23 11:59:03 +03:00
Kalle
3fe59c1a88 Table layout to work with any number of data cols 2022-10-23 11:18:57 +03:00
Kalle
cca225c780 Remove calculations from component code 2022-10-23 11:13:02 +03:00
Kalle
9708043463 Add distance to obj dmg table headers 2022-10-23 10:50:53 +03:00
Kalle
430d347f79 Add damages from Lean 2022-10-23 10:39:23 +03:00
Kalle
b448c19b71 Object damages with calculation 2022-10-22 16:43:31 +03:00
Kalle
89e525307f Merge branch 'rewrite' of https://github.com/Sendouc/sendou.ink into rewrite 2022-10-22 12:50:28 +03:00
Remmy Cat Stock
ef588503d5
Merge pull request #1030 from Sendouc/active-nav-item
Detect active nav item via route handle instead of path matching
2022-10-22 11:44:40 +02:00
Kalle
e705c58ebb More type safety to SendouRouteHandle.navItemName 2022-10-22 12:40:36 +03:00
Kalle
89c388e1c3 Fix hp showed wrong for Crab Tank/brellas 2022-10-22 12:08:20 +03:00
Kalle
63a80c8ecd Object damage hitpoints initial 2022-10-22 11:43:19 +03:00
Kalle
bc892dc2fb Fix TS error 2022-10-21 22:15:15 +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
26b6a4169b
Use pointer cursor for toggles 2022-10-20 09:32:11 +02:00
Remmy Cat Stock
fa02685366
Fix glitchy safari behaviour for map mode selection 2022-10-20 09:31:07 +02:00
Kalle
dc5fc84c83 Option to get wpn damage multiplier from all keys 2022-10-19 23:34:14 +03:00
Kalle
6a9efbdd17 Upgrade deps 2022-10-19 23:14:35 +03:00
Kalle
255fc6fcdf Fix stylelint complaint 2022-10-19 23:05:55 +03:00
Remmy Cat Stock
76afa161fc
Implement user result highlights UI 2022-10-18 23:41:01 +02:00
Remmy Cat Stock
3bc75f58d3
Add database table for user result highlights 2022-10-18 23:40:57 +02:00
Remmy Cat Stock
0af593623b
Wrap overflowing plus comments 2022-10-18 19:12:56 +02:00
Kalle
586c27eaa7 Object damage calculator page initial 2022-10-18 01:12:52 +03:00
Remmy Cat Stock
974b65b642
Fix edit badge dialog flickering 2022-10-16 10:17:33 +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
1a8ede563e Fix map list generation crash if small map pool 2022-10-15 11:54:06 +03:00
Kalle
e36e213793 Fix analyzer respawn time
Closes #1006
2022-10-14 23:40:19 +03:00
Kalle
7ccfe79984 Add title to maps page 2022-10-14 23:16:56 +03:00
Kalle
5ab76bc3a4
Merge pull request #1010 from remmycat/results-participant-count
Add participant count in user page results table
2022-10-14 22:54:20 +03:00
Remmy Cat Stock
abfd387062 Deactivate i18next interpolation escaping 2022-10-14 16:38:16 +02:00
Remmy Cat Stock
a215e0b3e1 Fix overflow for user results table on narrow viewports 2022-10-13 23:03:42 +02:00
Remmy Cat Stock
8aea2c19a8 Add participants count to user results table 2022-10-13 23:03:15 +02:00
Kalle
a368877e08
Merge pull request #1009 from remmycat/result-tab-count
Add results count to user page tab
2022-10-13 23:45:30 +03:00
Kalle
3b4b498750 Translation chore 2022-10-13 23:41:40 +03:00
Kalle
ae3f706f24 Maps page translated 2022-10-13 23:22:26 +03:00
Kalle
f81ac674e1 Link to iplabs 2022-10-13 22:38:46 +03:00
Kalle
31d233025a Copy to clipboard button 2022-10-13 22:26:28 +03:00
Kalle
b473e64e12 MapPoolSelector a bit better mobile layout 2022-10-13 21:56:15 +03:00
Kalle
6b49d06f57 Maps preparation for prod 2022-10-13 21:45:36 +03:00
Kalle
8470bf228e Map pool on tournament page 2022-10-13 21:39:40 +03:00
Kalle
0f2a5ee728 Remove action related code from maps page 2022-10-13 20:36:02 +03:00
Remmy Cat Stock
45cc8cea1f Add results count to user page tab 2022-10-13 18:55:53 +02:00
Kalle
4108637a30 Save map pool in edit calendar event page 2022-10-13 19:22:23 +03:00
Kalle
bdba03a5d8 Datalist on maplist page initial 2022-10-11 20:14:32 +03:00
Kalle
6770b8e214 Map pool from server 2022-10-09 19:06:22 +03:00
Kalle
e00c7cf531 Submit map pool initial 2022-10-09 12:27:09 +03:00
Kalle
20a5beb119 Add function 50% SZ toggle 2022-10-09 10:55:11 +03:00
Kalle
b1042f8e37 Generates map lists 2022-10-09 00:58:19 +03:00
Kalle
d654594ed8 Remove bad custom urls script 2022-10-08 10:36:28 +03:00
Kalle
d5bdd42188 Don't show map list makes in prod yet 2022-10-08 10:14:48 +03:00
Kalle
cc72a200e9 Fix a few more weird scrolling overflows 2022-10-08 10:11:36 +03:00
Kalle
a04db5e9f1 Fix build peek scrollbar visible when no overflow
Closes #999
2022-10-07 16:59:11 +03:00
Kalle
fa2d40ef7e Tweak front page calendar peek styles 2022-10-06 23:19:55 +03:00
Kalle
977416aca0 Fix front page results morphing
Closes #982
2022-10-06 23:12:49 +03:00
Kalle
fabcc99cce
Merge pull request #998 from halp-pat/993
Use fixed widths for BuildCard
2022-10-06 21:01:15 +03:00
Kalle
8ff23fb068
Merge pull request #997 from halp-pat/987
Stat Card values should be on the same line
2022-10-06 20:58:46 +03:00
Kalle
34e134acaf Maps with serializing to URL 2022-10-06 20:54:14 +03:00
Kalle
bba380840c Make maplist serializer use ids 2022-10-06 20:54:14 +03:00
Kalle
87bca7aa44 Maps page initial 2022-10-06 20:54:14 +03:00
[Halp!]Pat
cb08f8c27e Use fixed widths for BuildCard 2022-10-05 10:54:14 -07:00
[Halp!]Pat
469439eec2 Stat Card values should be on the same line 2022-10-05 10:18:08 -07:00
Kalle
36280db0b1
Merge pull request #990 from curtgrimes/981-readonly-abilities
Fix issue where abilities appeared clickable when they were not
2022-10-05 17:28:14 +03:00
Curt Grimes
0cb1f5a0fb Add back incorrectly removed type="button" 2022-10-04 12:17:35 -07:00
Kalle
35c51b83fe Merge branch 'rewrite' of https://github.com/Sendouc/sendou.ink into rewrite 2022-10-04 21:35:25 +03:00
Kalle
5e6ffbebfb Add link to spl2 sendou ink to footer
Closes #908
2022-10-04 21:35:23 +03:00
Kalle
cded6f5031
Merge pull request #992 from halp-pat/983
Select dropdown arrow position should use fixed value instead of percent
2022-10-04 21:28:31 +03:00
Kalle
8d278c83cf Update admin test avatar 2022-10-04 21:08:39 +03:00
Kalle
5da1a66a6c Add Lo-Vis Visor 2022-10-04 21:07:14 +03:00
Kalle
7eac4dd99c Increase IGN limit
In Splatoon limit is 10. But special characters can count as 2
even if in Splatoon they count as 1.
2022-10-04 20:56:16 +03:00
[Halp!]Pat
e202b42049 Select dropdown arrow position should use fixed value instead of percent 2022-10-04 10:44:52 -07:00
Curt Grimes
66a198f3f7 Fix issue where abilities appeared clickable when they were not
Issue was introduced in #971.

Fixes #981
2022-10-03 20:35:02 -07:00
Kalle
d4ef59e64c Add in-progress zh translation 2022-10-03 20:29:29 +03:00
Kalle
16ad28d617 Run speed while shooting stats
Closes #963
2022-10-02 21:14:56 +03:00
Kalle
e1b930ced2
Merge pull request #979 from curtgrimes/draggable-abilities
Add ability to drag abilities into slots
2022-10-02 14:11:28 +03:00
Kalle
73e31da398 Validate no motion sens set if no stick sens set 2022-10-02 12:29:54 +03:00
Kalle
7b038d87d9 Extra infos on user page 2022-10-02 12:20:19 +03:00
Kalle
a4614a61f7 Profile edit form can submit sens 2022-10-02 11:39:16 +03:00
Kalle
5706bfd812 Add IGN inputs 2022-10-02 10:44:45 +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
34c8e45684 Fix user page crashing if invalid link 2022-10-01 20:39:10 +03:00
Kalle
709d20bf13 Set custom url in profile edit 2022-10-01 20:38:40 +03:00
Kalle
9133803661 Add Charakiga to translators 2022-10-01 11:44:53 +03:00
Kalle
997fc4ce25
Merge branch 'rewrite' into draggable-abilities 2022-10-01 11:34:43 +03:00
Kalle
100529d84f Fix clicking ability button triggering form submit 2022-10-01 11:31:19 +03:00
Kalle
ca1b1251ca Default values to Ability dragging related props 2022-10-01 11:22:45 +03:00
Curt Grimes
984d14a55b Add ability to drag abilities into slots
- Do not allow dragging an ability onto a slot that cannot accept that
  ability.
- When dragging, dim slots that are not a valid target for the ability
  currently being dragged.
- Do not make any changes to the existing click behavior to assign
  abilities.
2022-10-01 00:19:31 -07:00
Kalle
34c1b0e71a User custom url, ign & sens initial 2022-09-29 23:26:31 +03:00
Kalle
dd2fc5a414 Refactor BuildCard bottom row 2022-09-27 21:56:26 +03:00
Kalle
2c330620fb Add button to analyzer to build card 2022-09-27 21:53:12 +03:00
Kalle
2495edc5b7 Rename Popover trigger prop
Closes #893
2022-09-27 21:21:21 +03:00
Kalle
456ed5e95b Add translator 2022-09-27 21:14:49 +03:00
Kalle
492977f45c Add logo with link to front page 2022-09-26 21:21:00 +03:00
Kalle
ced742bbad Apply linter 2022-09-26 20:24:43 +03:00
Curt Grimes
63d78bc3ae Make <Ability/> support keyboard navigation
`<Ability/>` can now be tabbed through, and it now shares the same focus
outline, hover, and mousedown styles with `<AbilitiesSelector/>`. This
includes the `cursor: pointer` style that makes it more obvious that
this component is clickable like other buttons.

Fixes #894.
2022-09-26 00:28:28 -07: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
3129822c49 Remember selected language
Closes #921
2022-09-25 15:55:22 +03:00
Kalle
9b28490450 Add builds peek to front page 2022-09-25 15:33:00 +03:00
Kalle
fb76e24392 Add builds page to nav 2022-09-25 14:58:23 +03:00
Kalle
a5fad589e8 Add limit + load more logic to builds page 2022-09-25 14:55:20 +03:00
Kalle
cb369985c8 Build analyzer don't scroll to top on build change
Closes #952
2022-09-25 14:24:18 +03:00
Kalle
6a63a243ba Fix build PlusTier sorting 2022-09-25 13:19:55 +03:00
Kalle
a589b6b903 Add owner to BuildCard 2022-09-25 13:11:03 +03:00
Kalle
88c1fa5b9e Refactor BuildCard to take attributes in one obj 2022-09-25 12:58:22 +03:00
Kalle
3e9b5a1da9 BuildsCards on builds page initial 2022-09-25 12:48:32 +03:00
Kalle
76dce82714 Add title to builds page 2022-09-25 12:03:02 +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
fe67eb8df7 Add translators to contributions
Closes #932
2022-09-24 14:51:24 +03:00
Kalle
42c9f3292c Fix typoed translation key 2022-09-24 11:49:45 +03:00
Kalle
72fda5e718 Fix ' not showing correctly on FAQ page
Closes #934
2022-09-24 10:55:54 +03:00
Kalle
3b2f11ecc0 Adjust front page winners list spacing 2022-09-24 09:49:10 +03:00
Kalle
3333d4486f Consider Splattershot Jr's big tank in analyzer
Closes #965
2022-09-24 09:47:32 +03:00
Kalle
ebe1d6deea Fix Big Bubbler HP 2022-09-24 09:12:07 +03:00
Kalle
be0b4ebc29 Fix hard coded sub save lvl Closes #953 2022-09-22 23:47:44 +03:00
Kalle
de3307f031 Fix StatCategory bottom text not mobile friendly 2022-09-22 21:48:21 +03:00
Kalle
945f0e267c Align stat card values 2022-09-22 00:44:56 +03:00
Kalle
8a8e3c344a Fix @ts-expect-error with weaponParams 2022-09-21 17:37:30 +03:00
Kalle
829e564eb6 Add BRU Beakon effect 2022-09-21 00:17:59 +03:00
Kalle
03a3eec318 Hard code missing SubInkSaveLv and InkConsume 2022-09-20 23:56:01 +03:00
Kalle
18a7f7edae Add Squid Surge IA effect 2022-09-20 23:42:01 +03:00
Kalle
2d9dd3f91e Build Analyzer to prod! 2022-09-20 20:48:41 +03:00
Kalle
a2f2af1f62 Analyzer mobile layout 2022-09-20 20:41:37 +03:00
Kalle
37738ad8e5 Add Tacticooler effect 2022-09-19 23:36:40 +03:00
Kalle
85e43091f2 Map a few more special params 2022-09-19 23:31:29 +03:00
Kalle
7539e0e76e Killer Wail 5.1 SPU effect 2022-09-19 20:31:59 +03:00
Kalle
d5ddc97e7c Ink Vac SPU effect 2022-09-19 20:27:48 +03:00
Kalle
059d738340 Wave Breaker SPU effect 2022-09-19 17:58:38 +03:00
Kalle
5b64515976 Booyah Bomb SPU effect 2022-09-18 21:26:59 +03:00
Kalle
2be14cda3b Ink Storm SPU effect 2022-09-18 21:14:47 +03:00
Kalle
cabdbd1da4 Tenta Missiles SPU effect 2022-09-18 21:14:47 +03:00
Kalle
502240ad23 Zipcaster SPU effects 2022-09-18 21:14:47 +03:00
Kalle
6ef1b0c55b Big Bubbler SPU effects 2022-09-18 21:14:47 +03:00
Kalle
64d2a64b5f Trizooka paint and damage radius effect 2022-09-18 21:14:47 +03:00
Kalle
34a77b6506 Special duration stat 2022-09-18 21:14:47 +03:00
Kalle
d0afd203e3 Parse special to weapon-params.json 2022-09-18 21:14:47 +03:00
Kalle
2fa5a63a6d Make sure main weapon category isn't rendered empty 2022-09-18 21:14:47 +03:00
Kalle
bb9eb2be31 More descriptive jump RNG reduction stat 2022-09-18 21:14:47 +03:00
Kalle
de3a7995b2 Add popover and explain IA jump RNG reduce 2022-09-18 21:14:47 +03:00
Kalle
b601c0421c IA jump RNG reduction effect 2022-09-18 21:14:47 +03:00
Kalle
8539205f71 Bomb Heavy/Light damage 2022-09-18 21:14:47 +03:00
Kalle
40679764a9 Add RP/NS icons to modified by row 2022-09-18 21:14:47 +03:00
Kalle
d10d4bf0c5 Calculate own use of RP 2022-09-18 21:14:47 +03:00
Kalle
3b8582d455
Merge pull request #949 from DoubleCookies/i-946
Other default value + empty onChange
2022-09-18 20:53:28 +03:00
Kalle
4eeac475de Allow browsing analyzer in prod for a few users 2022-09-18 12:00:39 +03:00
Kalle
4a381e17e3 Add Ninja Squid calculation 2022-09-18 11:56:02 +03:00
Kalle
1f26fe68bf Add bomb def damage reduction stats 2022-09-17 18:19:38 +03:00
Kalle
5d9a3ea13c Angle Shooter tracking defense stat + explanation 2022-09-17 17:20:35 +03:00
Kalle
bdaa18b3a2 Sub defense stats for Point Sensor and Ink Mine 2022-09-17 17:09:46 +03:00
Kalle
f57d1a750d Move xxx comments to GitHub 2022-09-17 14:26:45 +03:00
Kalle
4b128c59a6 BRU effects for analyzer 2022-09-17 12:58:43 +03:00
Kalle
e87fd714e2 Toggle effects 2022-09-16 21:17:29 +03:00
Kalle
81029e054c Fix Tacticooler overwriting build abilities 2022-09-16 21:17:10 +03:00
Kalle
b9fcaef8c4 Add Toggle component 2022-09-16 21:16:50 +03:00
Kalle
e57f1d63c1 EffectsSelector with LDE dropdown 2022-09-16 20:19:43 +03:00
Kalle
4184eda385 Add ability points to analyzer 2022-09-16 19:14:25 +03:00
Kalle
cefb55d19f Effect and LDE intensity in Search Params 2022-09-16 17:59:06 +03:00
Kalle
d07bf0af86 Move abilityPoints calculation to caller 2022-09-16 17:00:35 +03:00
Kalle
4a7520ee96 Add comment clarifying empty onChange 2022-09-16 16:46:56 +03:00
Kalle
db27e6b6b0 Implement special effects calculation 2022-09-16 16:40:54 +03:00
DoubleCookies
7cb3a906b2 other default value + empty onChange 2022-09-16 11:32:58 +03:00
Kalle
524010141f Make analyzer left column sticky 2022-09-16 11:31:30 +03:00
Kalle
4b9ab64647 Main weapon white ink stats 2022-09-15 20:03:42 +03:00
Kalle
e957c9cbb6 All Ink Res stats to same category 2022-09-15 19:37:10 +03:00
Kalle
a5e13218f4 Charge charging params 2022-09-15 19:32:33 +03:00
Kalle
7a35fcf17b Fix Twitter not updating when logging in 2022-09-15 18:54:51 +03:00
Kalle
294d3404d2 Page title for build analyzer 2022-09-15 18:40:02 +03:00
Kalle
f2fc3492e5 Analyzer Ink Resistance 2022-09-15 18:21:50 +03:00
Kalle
30159be6f7 Fix Brella for consumption table 2022-09-15 15:38:30 +03:00
Kalle
67d3299e82 Analyzer super jump stat 2022-09-15 15:31:09 +03:00
Kalle
491f51f543 Analyzer respawn stat 2022-09-15 15:18:41 +03:00
Kalle
f4b893dfa5 Splat/Suction/Burst Bomb to damage table 2022-09-15 14:16:34 +03:00
Kalle
36f38cc791 Analyzer show brella canopy hp and damage 2022-09-15 13:56:17 +03:00
Kalle
dc4b670869 Display L-3/H-3 damage better 2022-09-15 13:36:35 +03:00