Commit graph

92 commits

Author SHA1 Message Date
290099e2f4 Refactor PartiesController for blueprinter
* Refactored and tried to simplify methods in PartiesController
* Implemented new error render methods in ApiController
* Removed parties/[weapons, summons, characters] routes
2022-12-21 15:34:54 -08:00
c1716c1e4f Run RuboCop on everything
yolo
2022-12-21 00:22:47 -08:00
9e2f9c0af1 Fix job creation 2022-12-03 20:13:48 -08:00
a8301019f5 Fix search for base skills
Before they didn't really show up at all, then they showed up on everything, then they showed up on EX1 and EX2, now they only show up on EX2.
2022-12-03 18:34:38 -08:00
fc7cde4c5a Fix race condition for base skill mismatch check 2022-12-03 18:21:15 -08:00
a08421722f Add GranblueError and move app errors to extend it 2022-12-03 18:21:01 -08:00
6ba5335668 Fix last bugs around adding skills with 0~3 existing 2022-12-03 16:39:38 -08:00
813c2ba202 Fix bug regarding finding old_position 2022-12-03 14:51:01 -08:00
243ba2de3e Fix bug when desired position is empty 2022-12-03 14:10:18 -08:00
27d31d61c0 Fix race condition 2022-12-03 13:55:41 -08:00
ec3b42101b Move logic to JobsController
It was getting too heavy to keep in PartiesController
2022-12-03 11:45:00 -08:00
4ee90f6c09 Add new errors and fix handling in ApiController 2022-12-03 11:43:56 -08:00
5c9a2b8d7a Refactor job skill assignment a bit 2022-12-02 20:46:51 -08:00
f6613d6e91 Add TooManySkillsOfTypeError 2022-12-02 20:45:46 -08:00
644ffd74e5 Added logic for swapping and replacing job skills 2022-12-02 11:20:43 -08:00
296fa0187c Save base job skills on job change 2022-12-01 04:46:53 -08:00
ae36ff59b4 Properly gate group conditions
The default group ("All Skills") is technically -1, not null
2022-11-30 05:17:40 -08:00
a69fda5ead Small refactor of handling groups
Using the `filters` key so we can hook into existing search infrastructure on the frontend
2022-11-30 02:51:58 -08:00
c0bdb47d43 Add scoped search for job skills 2022-11-30 02:03:28 -08:00
353db31ef7 Move to JobSkillsController
It makes more sense to pre-fetch all job skills and filter on the client, so we're consolidating into a JobSkillsController
2022-11-27 19:27:45 -08:00
5fe712c31a Add route to get skills for given job 2022-11-27 14:12:52 -08:00
559507977b Added logic for conflict resolution
* Conflict is detected when attempting to save a new GridCharacter
* New `resolve` method executes the replacement
* Template to render a decision on the frontend
2022-11-19 06:03:39 -08:00
9967d36f89 Fix race condition 2022-11-17 02:25:22 -08:00
ba632af5e7 Add gender to user database 2022-04-10 13:25:57 -07:00
cf132e20f5 Receive and output job data in templates 2022-04-04 23:41:00 -07:00
c3566944cd Add endpoint for fetching all jobs 2022-03-22 03:41:00 -07:00
5d45b8898e Add favorites to parties 2022-03-21 03:53:59 -07:00
a99f0c31c5 Add pagination to favorites and teams 2022-03-21 03:53:52 -07:00
6756c24896 Remove duplicate current_user method 2022-03-21 03:53:34 -07:00
1f3ba2307f Add pagination for collections 2022-03-14 19:42:29 -07:00
c7196f7c79 Add a permanent weapon count condition to Teams
This way, Discover Teams will only show high quality parties
2022-03-14 18:21:40 -07:00
0584ac84e5 Added filters to summons and characters 2022-03-11 01:12:35 -08:00
14260e4ce0 Add filtering to weapon search 2022-03-09 11:02:51 -08:00
88f316d6a7 Implement JP search and trigram for EN 2022-03-08 17:43:40 -08:00
62543858bd Fix a small variable bug in GridWeapons Controller 2022-03-06 03:47:28 -08:00
1c08d64b55 Fix grid_weapon not being able to be created 2022-03-04 14:54:36 -08:00
49e4a02150 Add update and info method on User 2022-03-04 05:14:36 -08:00
b7500617e3 Trying to fix DoubleRenderError 2022-03-03 17:10:03 -08:00
92ef43abcd Add a rudimentary update method
We still need to do server-side validation since a lot of things can go wrong here if users get cheeky
2022-03-03 00:22:11 -08:00
0ee5fc765c Update weapon key method to have conditions
We never want all keys, only ever a subset for the weapon we're currently working on
2022-03-02 14:39:44 -08:00
45c4cc5af6 Create weapon_keys_controller.rb 2022-03-01 23:33:28 -08:00
c7d53d4ffd Remove print log 2022-03-01 12:51:11 -08:00
d5ed98f0cf Implement filters on profiles 2022-03-01 02:19:44 -08:00
96adcc9540 Don't run set_from_slug before destroying parties
This caused a 500 that caused parties to be unable to deleted
2022-02-28 16:55:42 -08:00
186fde79be Enable filtering list of favorite parties 2022-02-27 22:52:25 -08:00
86640d5986 Remove log 2022-02-27 22:28:42 -08:00
07dc8dd457 Refactor how we output favorite bool on parties 2022-02-27 22:28:17 -08:00
e295df0fdd Remove log and unused parameter 2022-02-27 22:12:57 -08:00
6afe242abe Return a boolean indicating favorite in party object 2022-02-27 21:14:37 -08:00
57b6f2a7b4 Add back render call 2022-02-27 20:55:55 -08:00