Commit graph

61 commits

Author SHA1 Message Date
b36fd03c11 Send local_id with remix API call 2023-02-03 19:34:28 -08:00
39b98d3f39 Fix #225
When logging in, the editable flag was not recalculated, so the team appeared as editable (even though it wasn't thanks to backend validation). This fixes the visual bug.
2023-02-03 14:40:47 -08:00
ade64446dc Unset edit key on page load
Just in case, we're unsetting the edit key on page load, so that we can re-set it after clearing our logic checks
2023-01-31 02:56:42 -08:00
37181d898b Use props instead of appState 2023-01-31 02:55:14 -08:00
ce3d0d73a2 Store and set edit keys
This stores and sets the edit keys on page load and after party create
2023-01-31 02:54:50 -08:00
608b744a71 Determine editable at Party level, pass down to grids 2023-01-31 01:25:02 -08:00
c0df78758b Store edit key in localStorage on create response 2023-01-31 01:24:42 -08:00
6b83f81eb6 Send generated local_id with create payload 2023-01-31 01:24:16 -08:00
f0ba0d5eb3 Don't switch tabs when creating a party
We changed the method in the New route to use the Next.js Router, which is causing us to navigate to the Party route and causing issues. This change makes it so that users stay on the same tab when they reach their destination.
2023-01-30 23:09:37 -08:00
86b48f52c1 Add source party to Party definition 2023-01-28 00:26:23 -08:00
0b3861e03e Update Party type and state 2023-01-27 23:47:31 -08:00
f68785fa3a Add shortcode to party state object 2023-01-27 23:08:46 -08:00
9a3d833092 Persist and recall accessory from server 2023-01-24 02:39:04 -08:00
1ee55cc1c2 Fix delete party alert and redirect to profile on delete 2023-01-21 08:21:43 -08:00
f0d6f1f8a4 Implement query param switching
Adding /characters, /weapons, or /summons will direct you to that tab by default, with /weapons as the default.

Clicking the segmented controller replaces the URL with the corresponding path, but doesn't push the navigation stack
2023-01-14 12:23:03 -08:00
bd1f6ccb98 Refactor createParty to allow creating anything first 2023-01-08 01:32:09 -08:00
5de556b367 Create teams when arbitrary details are changed
These teams have no weapons and won't show up anywhere but the user's profile. We should probably clean out completely empty teams every once in a while with a CRON job.
2023-01-07 23:25:55 -08:00
54dd3feba7 Add new fields to parties
I forgot to commit
2023-01-03 18:06:27 -08:00
8c952a57f5 Condense createParty into one method call 2022-12-30 05:18:14 -08:00
57a0ce62c2 Fix party details when new 2022-12-26 00:22:30 -08:00
60aae7b598 Remove log 2022-12-23 21:02:16 -08:00
bf3331d1c5 Reset detailsVisible when new party loaded 2022-12-23 16:11:45 -08:00
b329d2b27a Updates to Select component
Use `value` instead of `defaultValue` and properly control it
2022-12-23 15:19:14 -08:00
c37f0754fb Implement radix select 2022-12-05 18:04:12 -08:00
efa864fb80 Run prettier on src 2022-12-04 07:19:31 -08:00
944bfa3d17 Update index.tsx 2022-12-01 04:00:48 -08:00
c307fcb18f Remove logs 2022-12-01 02:00:58 -08:00
5a797f0d14 Fix party details
* Populate from SSR
* Hide button to edit empty anonymous grids
2022-11-16 05:47:30 -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
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
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
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
953cd01f49 Fix unauth party creation
There was a bug where unauth users could not add more than one item to a grid before it went read-only. This fixes that bug and ensures that permissions are set properly so no one can edit other people's grids.
2022-03-01 00:19:35 -08:00
82c38705d1 Fix useEffect looping in Party 2022-02-28 12:58:38 -08:00
99f2a65cf8 Save favorited/user when fetching party data 2022-02-27 22:31:16 -08:00
bf85f9d99c Reset the state when a new party is loaded 2022-02-27 00:39:04 -08:00
47ba267d5b Fix errors in building 2022-02-26 18:15:42 -08:00
aae67b08af Add hooks to send data back to the server 2022-02-26 15:55:45 -08:00
32f864baa6 Implement read-only and editable views for party details 2022-02-24 18:19:15 -08:00
e00a07d10c Various styling fixes and adjustments 2022-02-24 18:15:08 -08:00
45c133f450 Change the sent param for the extra toggle 2022-02-23 19:23:19 -08:00
bbe78566ad Update existing instances of state to use appState 2022-02-23 14:52:35 -08:00
1a52439150 Extra toggle should be switchable on empty grids 2022-02-23 14:28:48 -08:00
9b505f5e20 Implement state management for Weapon grid
Summon and Character will be next. I didn't really pay attention to code cleanliness, so I'll try to do a pass before merging the PR
2022-02-23 01:51:58 -08:00
194b1c5ff3 Remove GridType definitions in favor of the shared one 2022-02-04 18:21:37 -08:00
cface6a107 Save extra state to server 2022-02-04 14:47:34 -08:00
be90172fad We have to pass around the slug as well 2022-02-04 00:55:58 -08:00