Commit graph

121 commits

Author SHA1 Message Date
e2332f9652 Allow searching only for extra or subaura objects 2022-12-25 00:29:55 -08:00
adbb5b6c7d Disallow adding arbitrary weapons to Extra slots 2022-12-25 00:23:27 -08:00
ec25230bc5 Implement detecting and resolving weapon conflicts 2022-12-24 23:30:10 -08:00
ae1da20f27 Fix fetching weapon keys so you dont need filters 2022-12-24 04:54:50 -08:00
f17be0ea03 Merge branch 'main' of github.com:jedmund/hensei-api 2022-12-23 19:24:12 -08:00
e0df40f035 Remove log 2022-12-23 19:22:45 -08:00
574d8e0b3e Normalize constants in ApiController 2022-12-23 19:08:36 -08:00
13dae81737 Fix bug preventing selecting Row IV, V and EXII 2022-12-23 15:49:30 -08:00
8b69a44d83 Allow unsetting of jobs
Unsetting a job also removes all of its skills
2022-12-23 15:42:46 -08:00
464fe2f1aa Update output for GridObjects when uncapping 2022-12-22 23:41:04 -08:00
a837210029 Removed current job's subskills from search 2022-12-22 23:27:46 -08:00
874c20245d Refined selecting skills based on job
* Bugfix: You can now select a third subskill on Rows 1, 2 and 3
* Edgecase: When switching from a Row 1, 2 or 3 class to Row 4, 5 or EX2, the third EMP skill set is removed
2022-12-22 23:27:24 -08:00
8c1d51fb4f Updated getting skills assignable to a job
This endpoint isn't used though
2022-12-22 23:26:23 -08:00
b7a537f540 Fix token generation on signup 2022-12-22 21:27:38 -08:00
041f8ee189 Fix errors with error handling 2022-12-22 18:12:47 -08:00
e91e1664a6 Update blueprint for availability endpoints 2022-12-22 18:12:34 -08:00
a397fc722d Pass root when rendering in SearchController 2022-12-22 01:01:03 -08:00
c5391a6683 Fix bug where now wasn't replaced 2022-12-22 00:44:39 -08:00
c0be03dcb6 Finish migrating ApiController error methods 2022-12-21 23:28:54 -08:00
415ef39158 Add per_page to methods that return collections 2022-12-21 23:15:17 -08:00
5c97488a20 Update UsersController to use blueprinter 2022-12-21 23:13:19 -08:00
41c031092e Update weapon_keys_controller.rb 2022-12-21 22:10:35 -08:00
89e666219a Update SearchController for blueprinter 2022-12-21 22:10:31 -08:00
9a27ac853d Update JobsController and JobSkillsController for blueprinter 2022-12-21 21:46:35 -08:00
3b6edfae5d Update WeaponKey output for blueprinter 2022-12-21 21:04:42 -08:00
116ec9dbbc Refactor GridObjectControllers to use blueprinter 2022-12-21 20:53:48 -08:00
af51869927 Fix build_conditions method
The method of assigning values was assigning nil if the value wasn't present in `params`, which is bad
2022-12-21 16:20:00 -08:00
5b37e480f8 Refactor FavoritesController for blueprinter 2022-12-21 16:10:53 -08:00
44e92733d3 Refactor RaidsController for blueprinter 2022-12-21 15:35:05 -08:00
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