Commit Graph

1307 Commits

Author SHA1 Message Date
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