From 73bee5e3be69be834fe643cff9df2f4504304c61 Mon Sep 17 00:00:00 2001 From: freya Date: Tue, 12 Nov 2024 11:27:39 +0100 Subject: [PATCH] 7.1 Updates (#86) * pre-populating the 7.1 gear file with placeholder names * minor openapi schema fixes * fix style of buttons, only have them appear when necessary * update changelog * added names of gear added in 7.1 * bump version --- .../commands/seed_data/gear/7-dt/7.1.yml | 15 +++++++++++ backend/api/serializers/character.py | 1 + backend/api/views/loot_solver.py | 9 ++++--- backend/backend/__init__.py | 2 +- frontend/.env | 2 +- frontend/src/components/gear_dropdown.vue | 4 +-- frontend/src/components/modals/changelog.vue | 27 +++++++++++++++---- frontend/src/main.ts | 2 +- 8 files changed, 49 insertions(+), 13 deletions(-) create mode 100644 backend/api/management/commands/seed_data/gear/7-dt/7.1.yml diff --git a/backend/api/management/commands/seed_data/gear/7-dt/7.1.yml b/backend/api/management/commands/seed_data/gear/7-dt/7.1.yml new file mode 100644 index 0000000..4dc5cd7 --- /dev/null +++ b/backend/api/management/commands/seed_data/gear/7-dt/7.1.yml @@ -0,0 +1,15 @@ +- has_accessories: False + has_armour: True + has_weapon: False + item_level: 720 + name: "Ark Angel's" +- has_accessories: False + has_armour: False + has_weapon: True + item_level: 725 + name: 'Eternal' +- has_accessories: True + has_armour: True + has_weapon: True + item_level: 720 + name: 'Augmented Archeo Kingdom' diff --git a/backend/api/serializers/character.py b/backend/api/serializers/character.py index a920358..fa1ff30 100644 --- a/backend/api/serializers/character.py +++ b/backend/api/serializers/character.py @@ -40,6 +40,7 @@ def get_proxy(self, char: Character) -> bool: inline_serializer( 'CharacterCollectionBISListSummary', {'id': serializers.IntegerField(), 'name': serializers.CharField()}, + many=True, ), ) def get_bis_lists(self, char: Character) -> List[Dict[str, Union[str, int]]]: diff --git a/backend/api/views/loot_solver.py b/backend/api/views/loot_solver.py index f2d53bb..36993e7 100644 --- a/backend/api/views/loot_solver.py +++ b/backend/api/views/loot_solver.py @@ -523,23 +523,26 @@ def _get_fourth_floor_data(self, history: QuerySet[Loot], team_size: int, non_lo 'first_floor': inline_serializer( 'LootSolverFirstFloorResponse', { - slot: serializers.ListField(child=serializers.IntegerField()) + slot: serializers.IntegerField() for slot in FIRST_FLOOR_SLOTS }, + many=True, ), 'second_floor': inline_serializer( 'LootSolverSecondFloorResponse', { - slot: serializers.ListField(child=serializers.IntegerField()) + slot: serializers.IntegerField() for slot in SECOND_FLOOR_SLOTS }, + many=True, ), 'third_floor': inline_serializer( 'LootSolverThirdFloorResponse', { - slot: serializers.ListField(child=serializers.IntegerField()) + slot: serializers.IntegerField() for slot in THIRD_FLOOR_SLOTS }, + many=True, ), 'fourth_floor': inline_serializer( 'LootSolverFourthFloorResponse', diff --git a/backend/backend/__init__.py b/backend/backend/__init__.py index 2fdc076..6547be5 100644 --- a/backend/backend/__init__.py +++ b/backend/backend/__init__.py @@ -2,4 +2,4 @@ from .celery import app as celery_app -VERSION = '20241022' +VERSION = '20241112' diff --git a/frontend/.env b/frontend/.env index 8fa9e5a..b92a918 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1 @@ -VUE_APP_VERSION="20241022" +VUE_APP_VERSION="20241112" diff --git a/frontend/src/components/gear_dropdown.vue b/frontend/src/components/gear_dropdown.vue index 0fe5abd..53569c4 100644 --- a/frontend/src/components/gear_dropdown.vue +++ b/frontend/src/components/gear_dropdown.vue @@ -3,7 +3,7 @@
-