Commit graph

656 commits

Author SHA1 Message Date
97ed307921 Add keys to grid skill images 2022-12-24 14:45:15 -08:00
9ea7e26805 Fix bug with phantom Awakening image 2022-12-24 05:27:26 -08:00
4dd43b065d Fix build errors 2022-12-24 05:03:47 -08:00
118afed193 Check before setting input value 2022-12-24 05:01:25 -08:00
046c79a267 Add support for Class Champion emblems 2022-12-24 04:51:37 -08:00
c19c3e5344 Make combined functions for AX and Telumas 2022-12-24 04:33:03 -08:00
ac47d45d70 Added Ultima display to WeaponUnit 2022-12-24 03:56:26 -08:00
7d7e867b40 Display Opus weapons and fix selection
There was a bug where if you unset the first Opus key (or presumably any weapon mod where there is more than one), the display in grid and in the modal would be incorrect and lead to corrupted data. This is fixed now!
2022-12-24 03:27:15 -08:00
af5bd49c2f Add display for Telumas and fix WeaponModal display 2022-12-24 01:07:55 -08:00
bfdd019484 Fix display of weapon keys and Select changes 2022-12-23 23:34:48 -08:00
4fdf5fade4 Add weapon key name translations 2022-12-23 23:34:34 -08:00
c56c7981d9 Extract the correct AX skills for display 2022-12-23 22:46:37 -08:00
4a87326307 Display AX skills on WeaponUnit 2022-12-23 22:26:34 -08:00
0a993f856b Fix AX validity checking for good hopefully 2022-12-23 21:33:57 -08:00
3a81675737 Rely on disabled property for disabled styles 2022-12-23 21:25:38 -08:00
d02a3e0861 Update useEffect dependencies 2022-12-23 21:25:27 -08:00
975baecffb Update default value and validity checking 2022-12-23 21:20:04 -08:00
adde7e8182 Add Awakening image to WeaponUnit 2022-12-23 21:19:35 -08:00
604d00da90 Add back ref for Selects 2022-12-23 21:19:23 -08:00
abf862e323 Change input class 2022-12-23 21:19:10 -08:00
47cfb63719 Fix which value is fed into localization 2022-12-23 21:19:01 -08:00
0295e9f769 Adjust min-width 2022-12-23 21:18:46 -08:00
60aae7b598 Remove log 2022-12-23 21:02:16 -08:00
51e67f69c1 Update control to make changeable 2022-12-23 20:00:51 -08:00
a7705707ce Add disabled state to Button 2022-12-23 20:00:39 -08:00
3983d5411c Update validity checking 2022-12-23 20:00:22 -08:00
feba0271a8 Make inputs controlled 2022-12-23 20:00:09 -08:00
05c8cf2c38 Disallow not whole numbers 2022-12-23 18:55:19 -08:00
26021f75ab Add awakening localizations 2022-12-23 18:52:40 -08:00
c74ff41479 Implement AwakeningSelect
* Has modes for weapons and characters
* Shows input when awakening is selected
* Saves type and level to server
* Redisplays type but level is broken
2022-12-23 18:40:50 -08:00
28f6d8fd73 Merge branch 'main' into weapon-mods 2022-12-23 16:42:05 -08:00
221f60c48c Fix build errors 2022-12-23 16:27:11 -08:00
b1d7802e43 Small fix to Settings modal
We need a PR to fix this
2022-12-23 16:17:24 -08:00
d5d404abde Fix input padding 2022-12-23 16:12:08 -08:00
bf3331d1c5 Reset detailsVisible when new party loaded 2022-12-23 16:11:45 -08:00
c51c16de09 Fix select not resetting on new views 2022-12-23 16:10:42 -08:00
dc86e712cb Fix canEditSkill 2022-12-23 15:47:39 -08:00
2d2497b8da Allow setting job to "No job" after it has been set 2022-12-23 15:34:13 -08:00
b329d2b27a Updates to Select component
Use `value` instead of `defaultValue` and properly control it
2022-12-23 15:19:14 -08:00
b04965ae03 Fix buttons 2022-12-23 15:18:53 -08:00
10981a2496 Remove headers from API calls 2022-12-23 15:18:05 -08:00
64070b17b6 Remove unused imports and vars 2022-12-23 00:34:25 -08:00
3862db55a9 Use utils/organizeRaids 2022-12-23 00:33:55 -08:00
90a0447787 Fix updating raid in party details 2022-12-23 00:33:28 -08:00
cc3e14a8c4 Remove include 2022-12-22 23:51:48 -08:00
455b31d1c2 Use showAllRaidsOption to determine defaultValue 2022-12-22 23:51:41 -08:00
1bfd62627d Fix alignment 2022-12-22 23:48:33 -08:00
2a87ad0701 Fixed display of dropdown and defaultValue 2022-12-22 23:34:32 -08:00
653dd3d493 Add current job to defaultValue and properly sort groups 2022-12-22 23:33:58 -08:00
c401804e7b Revise response format due to Blueprinter 2022-12-22 23:33:38 -08:00
0c89300664 Fix Alert buttons
Text was not being flowed into the prop
2022-12-22 23:33:24 -08:00
908e807f00 Fix defaultValue in FilterBar 2022-12-22 21:28:57 -08:00
94f5f69412 Update SignupModal and LoginModal to use Dialog 2022-12-22 21:28:30 -08:00
7c36aac130 Fix saving objects and jobs
There's still bugs with jobs though
2022-12-22 01:48:21 -08:00
bbcdb74ade Update PartyDetails 2022-12-22 01:39:51 -08:00
700a4d653c Tentatively fix Login and Signup
There's probably more here, but I can at least log in right now
2022-12-22 01:36:32 -08:00
e9b4f44fd6 Update searching 2022-12-22 01:07:27 -08:00
45aa8c38ab Update all teams 2022-12-22 00:55:36 -08:00
adc987201e Update profile and filter bar 2022-12-22 00:46:13 -08:00
caf2bca38f List of raids no longer has root keys 2022-12-22 00:09:50 -08:00
17affb29f1 Map default colors in SegmentedControl to vars 2022-12-20 23:32:08 -08:00
306ca3b56f Fix colors in ElementToggle 2022-12-20 23:29:50 -08:00
9cbba094f9 Update AxSelect styles 2022-12-20 23:07:11 -08:00
4973fd1f14 Remove triggers 2022-12-20 23:06:46 -08:00
85fd5df516 Refactored WeaponKeySelect and updated styles 2022-12-20 23:06:27 -08:00
9a9a0397e9 Refactor AxSelect because it was awful/broken
I think this works.
* Shows "No AX Skill" if no AX skill has been set
* Inputs appear after AX skill has been selected
* Second AX skill select shows up after first one has been selected
2022-12-20 19:14:14 -08:00
46034e6aad slight Dark Mode fixes for WeaponModal 2022-12-06 19:48:07 -08:00
8ccdcdf5b4 Fix TS errors
We didn't touch these files and they needed to be updated for Fieldset → Input
2022-12-06 19:41:20 -08:00
362301a4a5 Further fix TS error 2022-12-06 19:36:54 -08:00
600f3c2ec7 Fix TS typing error 2022-12-06 19:34:43 -08:00
1621d53afa Fix SelectItem bug and lint warnings 2022-12-06 19:27:26 -08:00
dac1ed917d Hover background in search, other fixes 2022-12-06 19:03:00 -08:00
a2b30133d4 Add Dark Mode for dialogs 2022-12-06 18:38:36 -08:00
0b021629d7 Fix select colors in FilterBar 2022-12-06 15:54:39 -08:00
1b13f8d51e Fix styles for favorite buttons in GridRep 2022-12-06 14:45:38 -08:00
d8d864a5fe Implement new Select in FilterBar 2022-12-06 13:50:13 -08:00
1e3480e3c0 Update Button and implementations 2022-12-06 13:16:11 -08:00
3376aa7b75 Fix spacing at top 2022-12-06 12:55:57 -08:00
3ee7c0b4b2 Shuffled greyscale, fixed dark mode for select/input 2022-12-06 09:31:56 -08:00
0660f98550 Fix ExtraSummons for dark mode 2022-12-05 22:21:17 -08:00
0ea675d18a Fix purple color for Dark Mode and ExtraWeapons
Also made 13th slot uneditable for now
2022-12-05 21:45:23 -08:00
0f99cd878c Dark mode and CSS refactors for inputs 2022-12-05 19:47:23 -08:00
2ee8060c63 Remove moved code
This method was moved to [party].tsx
2022-12-05 19:47:00 -08:00
c37f0754fb Implement radix select 2022-12-05 18:04:12 -08:00
e8843699c7 Remove trailing semicolons 2022-12-05 17:54:46 -08:00
95fc9b142a white → $grey-100 2022-12-05 17:51:56 -08:00
3760cf3d4c Update select styles 2022-12-04 14:26:54 -08:00
2f95e8a8e6 Tweak secondary colors 2022-12-04 10:01:41 -08:00
a350d0a3da Fix ToggleSwitch colors 2022-12-04 09:55:33 -08:00
1244a99a6a Update FilterBar background 2022-12-04 09:55:27 -08:00
d2caf088e8 Fix text colors 2022-12-04 09:54:55 -08:00
f2ba1139a1 Add 00 scale to element colors and update pills 2022-12-04 09:46:19 -08:00
cdc82e5348 Rename element colors to use numeric scale 2022-12-04 09:45:58 -08:00
b36b6b747c Rename greys 2022-12-04 09:12:40 -08:00
efa864fb80 Run prettier on src 2022-12-04 07:19:31 -08:00
e52594d5dd Fix broken skill images 2022-12-03 19:41:25 -08:00
d32824521b Fix lint error: Forgot SearchableObject 2022-12-03 19:21:44 -08:00
32e3bbdab4 Fix lint error 2022-12-03 19:19:31 -08:00
2164b563d0 Fix race condition when selecting job for first time 2022-12-03 19:01:45 -08:00
b8130af3f6 Don't show JobDropdown if party isn't editable 2022-12-03 18:40:34 -08:00
5ef43bc1f5 Update job image shadow and backdrop 2022-12-03 16:48:41 -08:00
c6f6a6ca99 Update API calls and display errors 2022-12-03 16:43:18 -08:00
4783a664a7 Add custom Alert component 2022-12-03 16:39:58 -08:00
977c1df13c Remove unused dependencies 2022-12-02 14:54:06 -08:00
7e3c6a9463 Update job skills from server response 2022-12-02 11:21:32 -08:00
cfc8e149fb Remove logs 2022-12-02 11:21:14 -08:00
fdebea27ae Populate skills from props instead of state
We're essentially ensuring consistency between the backend by frontend by using the backend as more of a source of truth.
2022-12-01 05:36:57 -08:00
944bfa3d17 Update index.tsx 2022-12-01 04:00:48 -08:00
6d602462fb Fix restoring party state
Instead of pulling it down from props on mount we're just pulling from state
2022-12-01 04:00:39 -08:00
c307fcb18f Remove logs 2022-12-01 02:00:58 -08:00
6070164150 Save job and job skill to party 2022-12-01 01:46:11 -08:00
1cb9d6c843 Restore job when loading party 2022-12-01 01:45:47 -08:00
8f06fb8770 Remove log 2022-11-30 09:01:39 -08:00
6af2ace6b0 Use SearchableObject type 2022-11-30 09:01:33 -08:00
1202985f80 Fix forwardRef and refactor rendering 2022-11-30 06:09:55 -08:00
97f22b852a Remove dead ref code 2022-11-30 06:09:32 -08:00
725e989bd7 Remove console logs 2022-11-30 05:21:11 -08:00
6ef73583df Implement job skill search 2022-11-30 05:20:22 -08:00
73944becf4 Add type alias for searchable objects 2022-11-30 05:19:43 -08:00
89e157dc6d Refactor CSS 2022-11-29 02:05:53 -08:00
bf04d951bd Fix CSS bug 2022-11-29 02:05:34 -08:00
7e6e9f244a Add JobSkillModal component 2022-11-29 01:00:52 -08:00
ab28d8c4bf Added JobSkillResult component 2022-11-29 00:59:47 -08:00
79a0095d22 Add basic interface for skills
Skills change when the job changes, but can't be selected on their own yet
2022-11-28 20:36:12 -08:00
b61885a86d Fix even more linter errors 2022-11-19 21:06:06 -08:00
10e2cdd2a6 Continue fixing linter bugs 2022-11-19 20:57:12 -08:00
4b960308d4 Continue fixing linter errors 2022-11-19 20:53:09 -08:00
4f11f88c0f Fix more linter errors 2022-11-19 20:50:39 -08:00
b71bb09723 Fix linting errors 2022-11-19 20:48:05 -08:00
44efa3e490 Revert "Try to fix object error"
This reverts commit c39b66bce2.
2022-11-19 18:57:21 -08:00
56fb881edd Revert "Fix object is possibly undefined error"
This reverts commit 90dcb54bba.
2022-11-19 18:57:10 -08:00
c39b66bce2 Try to fix object error 2022-11-19 18:49:21 -08:00
90dcb54bba Fix object is possibly undefined error 2022-11-19 18:40:32 -08:00
19a9fa3da2 Implementation of character conflict modal 2022-11-19 06:37:28 -08:00
89766abba5 Fix null weapon grid image bug 2022-11-16 21:39:03 -08:00
ec737757c0 Try fixing element error on prod 2022-11-16 07:29:24 -08:00
21b86e4239 Fix various API and rendering bugs 2022-11-16 07:04:39 -08:00
2c8c205d84 Translate party titles 2022-11-16 06:07:46 -08:00
5a797f0d14 Fix party details
* Populate from SSR
* Hide button to edit empty anonymous grids
2022-11-16 05:47:30 -08:00
67aa814b27 Fix weapon modal
Updates weapon keys with cookies
2022-11-16 05:30:37 -08:00
61a762b29b Component cookie fixes 2022-11-16 05:26:18 -08:00
fd45241466 Update Party to not try to update job if not editable 2022-11-16 03:49:37 -08:00
a3d1c1ee56 Fix cookie usage in Party and grid tabs 2022-11-15 05:12:18 -08:00
19d8fa4d9b Update cookie usage in TopHeader and HeaderMenu 2022-11-15 04:43:54 -08:00
364481e3ac Fix various type errors from npm build 2022-04-10 13:31:13 -07:00
e53dac8b46 Update JobSection to reflect MC gender 2022-04-10 13:25:30 -07:00
595b4491ad Update AccountModal to support MC gender 2022-04-10 13:25:17 -07:00
b0b0219896 Don't crash when loading parties without jobs 2022-04-10 13:07:02 -07:00
47f41a19a0 Fix memory leak 2022-04-10 13:06:44 -07:00
eb8e8ab4cf Save and receive job from backend 2022-04-04 23:43:28 -07:00
745c873e36 Implement JobSection 2022-04-04 23:43:13 -07:00
95f4dccb9e Create JobSection 2022-04-04 23:43:02 -07:00
38c236d281 Create JobDropdown 2022-04-04 23:42:54 -07:00
517c414e2c GridRep should reflect changed element 2022-03-22 00:49:32 -07:00
ef6ea9b415 Cleanup unused packages, modules and files 2022-03-22 00:29:41 -07:00
ccc98e2d1a Fix character image paths 2022-03-22 00:18:01 -07:00
97420e85e2 Add support for Lyria element switching 2022-03-22 00:10:08 -07:00
9cb5a0e3cb Add changing elements to Class Champion Weapons 2022-03-22 00:09:59 -07:00
e1dfb73544 Cleanup 2022-03-14 19:55:54 -07:00
bac8c8da00 Nevermind 2022-03-14 17:04:27 -07:00
937748e7f3 Bump font size up 2022-03-14 17:03:28 -07:00
5048433e53 Cleanup 2022-03-14 16:47:18 -07:00
bda2639d88 Redesign read only state and add save button 2022-03-14 16:47:13 -07:00
9291e5501a Add deleteTeam method 2022-03-14 16:46:58 -07:00
83bb782476 Remove extra spacing below Party 2022-03-14 16:46:43 -07:00
7067db6f2c Fix spacing between CharacterUnit and PartyDetails 2022-03-14 16:46:33 -07:00
76a9411508 Add CheckIcon 2022-03-14 16:46:23 -07:00
258f9cf899 Persist timestamp state in grid API calls 2022-03-14 16:45:49 -07:00
6709960708 Hotfix #3
I'm tired
2022-03-11 03:07:27 -08:00
99e11e182f Second hotfix 2022-03-11 02:57:37 -08:00
0680699822 Hotfix potentially null recents array 2022-03-11 02:52:13 -08:00
a93819a908 Remove a log 2022-03-11 02:44:28 -08:00
5659568345 Properly clean the modal when selecting an item 2022-03-11 02:36:18 -08:00
9e3bc95ec8 Implement recently searched items for weapons and summons 2022-03-11 02:32:27 -08:00
f4a412240d Implement filter/search combined logic in SearchModal 2022-03-11 01:16:09 -08:00
35aafeefaf Add search filter bar components 2022-03-11 01:15:55 -08:00
b8b6f3231b Implement SearchFilterCheckboxItem component 2022-03-11 01:13:54 -08:00
9a6ad1a74d Implement SearchFilter component 2022-03-11 01:13:45 -08:00
d19c96fc6d Add locale to search 2022-03-08 17:45:56 -08:00
221033a1a1 Temporarily disable hovercards on editable teams
It conflicts with search and weapon modals and makes it impossible to use
2022-03-08 16:00:45 -08:00
91d8dc7ae4 Fix when search sends queries 2022-03-08 15:58:53 -08:00
41f8753169 Restrict to one line of text in GridRep
There's a max-width though, we'll fix it later
2022-03-08 02:01:36 -08:00
aabb9feaea Cleanup 2022-03-07 18:24:26 -08:00
1d98f13dee Query param filters work on Teams page 2022-03-07 17:54:24 -08:00
1365e4c95c Get query states working on teams page
This changes the URL to show query params for our three filters, making it easy for people to link to very specific subsets of raids.
2022-03-07 02:43:21 -08:00
aefd6c3754 Make RaidDropdown to be a controlled component
It also indexes on the raid's `slug` instead of `id`, a new key that will let us get to using query params to filter
2022-03-07 00:27:35 -08:00
79b5960cea Refactor RaidDropdown
Generally cleaned it up. Moved `raidGroups` out into a utils file and restructured it so we can localized names.
2022-03-07 00:27:35 -08:00
7ea3907e7f Fix white space for team descriptions 2022-03-07 00:20:42 -08:00
7a52fa5afd Missed two slash as division instances 2022-03-06 14:13:22 -08:00
8063ae6ceb Fix: Slash as Division
https://sass-lang.com/documentation/breaking-changes/slash-div
2022-03-06 14:07:24 -08:00
f690e698dc Temporarily disable terms
<Link> is causing issues
2022-03-06 05:39:23 -08:00
7cad878f83 Update raids and add Guild Wars raids 2022-03-06 03:09:52 -08:00
42ac5d7dc1 Lazily fixing build errors 2022-03-06 02:15:36 -08:00
745f9b6c47 Update WeaponLabelIndicator and icons 2022-03-06 02:10:46 -08:00
4ed07f83a2 They really call it Additional Weapons in Japanese too huh 2022-03-05 16:30:52 -08:00
c3186b2899 Add localizations for SearchModal 2022-03-05 14:50:56 -08:00
82a1231b04 Add missing translations to WeaponHovercard 2022-03-05 14:35:44 -08:00
dfd2bbff19 Localize WeaponModal and AxSelect 2022-03-05 14:30:34 -08:00
75f77ced20 Switch locale when logging in 2022-03-05 13:54:46 -08:00
a109a85232 Send locale when creating a user 2022-03-05 13:54:23 -08:00
497c309bd1 Get logged in language switching working 2022-03-05 13:32:03 -08:00
d79a13dc8a Localized signup and login 2022-03-05 13:24:39 -08:00
269152ee58 Actually fix tag 2022-03-05 10:55:28 -08:00
e902cdc1f5 Fix HeaderMenu Coming Soon tag 2022-03-05 10:55:09 -08:00
3222d5752e Reorder HeaderMenu unauth items 2022-03-05 10:54:37 -08:00
14c6b5e2da Fixed implementation of unauth language switcher
Now we can go implement it for auth
2022-03-05 10:46:52 -08:00
92d9797c0d Don't show hearts on GridReps if user is logged out 2022-03-05 02:29:36 -08:00
c626038f64 Rudimentary unauth language switch
I can't figure out how to make the current page persist when switching.

Next.js adds a /ja prefix to the path and when switching to Japanese, but it doesn't remove it when switching back to English. This documentation sucks!
2022-03-05 02:29:14 -08:00
110cc0c769 Localize filter bar and dropdowns 2022-03-04 19:51:43 -08:00
d0323861db Localize and modernize search result components 2022-03-04 19:20:06 -08:00
159110a807 Add translations for SummonGrid 2022-03-04 19:11:17 -08:00
70fb1e63b9 Add translations for hovercards 2022-03-04 19:05:17 -08:00
f62a4a5637 Update index.tsx 2022-03-04 18:46:44 -08:00
34bd98856a Add locale to object unit components 2022-03-04 18:46:32 -08:00
b91d84028f Add localization for header menus/some modals 2022-03-04 18:42:06 -08:00
d16565332e Localize PartySegmentedControl 2022-03-04 17:56:46 -08:00
703c9f4d49 Localize headers 2022-03-04 17:56:37 -08:00
16c9446eb5 Fix title for untitled auth parties 2022-03-04 16:03:15 -08:00
f2e281938a Add magna summons to list of upgraded art summons 2022-03-04 15:55:19 -08:00
cd53394a7f Fix meta tags 2022-03-04 14:57:21 -08:00
8f8138950c Remove logs 2022-03-04 09:34:30 -08:00
0f0c99e8bf Fix issues with storing access token after signup 2022-03-04 09:09:52 -08:00
98f93406b7 Update SignupModal to be in line with LoginModal updates 2022-03-04 08:36:07 -08:00
4ab41fcc08 Hotfix signup and login buttons 2022-03-04 08:25:58 -08:00
d6695d195c Added og tags 2022-03-04 07:55:36 -08:00
1da152cbcc Fix title for new teams 2022-03-04 07:31:02 -08:00
2b7c95419d FilterBar h1 color tweak 2022-03-04 07:11:42 -08:00
e078e9baed Set cookies and state after changing user settings 2022-03-04 07:02:20 -08:00
ea24777eb7 Missed some cookies references 2022-03-04 06:34:05 -08:00
f9eec04201 Implemented Linkify in PartyDetails 2022-03-04 06:31:44 -08:00
0ff255d71e Changed how cookies are stored
We now have an account object and user object. Account stores critical information, where User is cosmetic/settings.
2022-03-04 06:31:21 -08:00
00b2521d19 Update index.scss 2022-03-04 05:58:10 -08:00
3d5e7ab7ff Small design polishing on FilterBar 2022-03-04 05:57:30 -08:00
102be62a7f Hacky first pass at titles
Hacky because the titles for some pages don't load until the data comes in, which takes a second. There's gotta be a better way.
2022-03-04 05:54:16 -08:00
f965e22c89 Merge branch 'main' of github.com:jedmund/hensei-web 2022-03-04 05:38:32 -08:00
b67961b2a3 Fix build errors
I always forget something
2022-03-04 05:38:29 -08:00
42e328a4d4 Add profile picture to HeaderMenu for auth users 2022-03-04 05:31:38 -08:00
a186fab73c Adds a COMING SOON tag to Guides
We won't get this done anytime soon
2022-03-04 05:18:07 -08:00
4e701572ab Adds AccountModal component 2022-03-04 05:17:54 -08:00
053522a81d Fixes editable bug on /new after logout 2022-03-04 05:17:39 -08:00
7e5b90a6c7 Use the user's stored profile picture in content
Also adds styles!
2022-03-04 05:17:23 -08:00
6b999106b5 Hit user info endpoint after login in LoginModal 2022-03-04 05:16:39 -08:00
65da50aa88 Disable class for now 2022-03-04 00:59:55 -08:00
d89070156d Fix styling post-hovercard 2022-03-04 00:59:31 -08:00
e58210a8f1 Add hovercard sides and a static width to hovercards 2022-03-04 00:49:52 -08:00
8e66dd1b4f Missed renaming a Button property 2022-03-04 00:37:59 -08:00
d5ac0ba6d7 Add Summon and Character hovercards 2022-03-04 00:33:21 -08:00
f950543c96 Add and implement WeaponHovercard component 2022-03-04 00:16:58 -08:00
be60319f98 Refactor Button component 2022-03-04 00:16:53 -08:00
f384adcc09 Fix double scale bug 2022-03-03 21:06:52 -08:00