Commit graph

504 commits

Author SHA1 Message Date
eaae29f007 simplify artifact mutation, remove optimistic update 2025-12-03 20:51:58 -08:00
5bac8a0b53 add element-based styling to modifier selection 2025-12-03 20:51:52 -08:00
dc4c2c3117 move artifact image/name to header, use DetailRows for skills 2025-12-03 20:51:16 -08:00
ee2e51affd add image support to sidebar header 2025-12-03 20:51:10 -08:00
399480db9f put grade recommendation reason inline with action badge 2025-12-03 20:51:05 -08:00
91b2a61ac9 simplify skill display to value-only, highlight max rolls in element color 2025-12-03 20:50:59 -08:00
f55303039c auto-redistribute skill levels when artifact level changes 2025-12-03 20:50:53 -08:00
f34f2c4dc9 show calculated skill values in dropdown, add level constraints 2025-12-03 20:50:47 -08:00
4b2d1b7dc0 add calculateSkillDisplayValue helper for artifact skills 2025-12-03 20:50:42 -08:00
ea09f325a0 fix slider value handling and track width
- Use single value instead of array for type="single" slider
- Pass onValueChange directly without array wrapping
- Use flex-grow: 1 for track width instead of width: 100%
2025-12-03 18:50:11 -08:00
8ddfe58369 fix slider range width by adding track wrapper element
The bits-ui Slider.Range component needs to be inside a proper
track element for the range fill to display correctly. Added a
span wrapper with slider-track class and updated styles.
2025-12-03 18:45:53 -08:00
23b1d091f5 add Slider component with elemental styling for level selection 2025-12-03 18:41:04 -08:00
a1bc125521 add element-ghost button variant for sidebar header 2025-12-03 18:33:56 -08:00
9b59a22a43 stretch header buttons to fill height, add gap between accessories 2025-12-03 18:25:24 -08:00
f5f7743055 move delete to detail pane overflow, add disabled save button to edit 2025-12-03 18:20:13 -08:00
db71e6dc80 add overflow menu support to pane stack 2025-12-03 18:20:09 -08:00
100f506c44 move add artifact button to header as elemental button 2025-12-03 18:11:34 -08:00
99644c1730 use color dots instead of images for element dropdown 2025-12-03 18:08:15 -08:00
3527bc820f make Edit button elemental based on artifact element 2025-12-03 18:08:08 -08:00
abf7a36d8a remove translateY(1px) from button active state 2025-12-03 18:07:59 -08:00
b047552d7d fix infinite loop: use onMount instead of $effect for sidebar action 2025-12-03 17:57:50 -08:00
34821aa487 split artifact pane into detail and edit views
- CollectionArtifactDetailPane: read-only view with Edit button in header
- CollectionArtifactEditPane: editable form pushed onto pane stack
- ArtifactSkillDisplay: new read-only skill display component
2025-12-03 17:54:18 -08:00
190e2140b1 artifact images: add square/wide variants
use artifact-square for thumbnails, artifact-wide for grid display.
defaults to square for backwards compat.
2025-12-03 17:44:01 -08:00
f23779b664 pane stack: each pane is now its own card
move card styling (bg, radius, shadow, border) from sidebar
container to individual panes so they visually stack as
separate cards. behind pane peeks out from the left.
2025-12-03 17:38:53 -08:00
df045ecd2b add AddArtifactSidebar for collection artifacts
flow: proficiency -> element (color dots) -> artifact dropdown
(filtered by proficiency) -> level/nickname -> skills config
using pane stack for iOS-style navigation
2025-12-03 17:14:26 -08:00
ed32b7e924 add color dot support to Select component 2025-12-03 17:14:19 -08:00
e595196172 clean up debug logs from skill filtering investigation 2025-12-03 17:14:05 -08:00
9bdcc7818b remove polarity indicator from skill list 2025-12-03 17:14:01 -08:00
a29cdbb454 fix cache key to include query params
was generating same cache key for /artifact_skills and
/artifact_skills?group=group_i causing filtered requests
to return cached unfiltered results
2025-12-03 17:13:54 -08:00
644c596173 fix Icon import path in DisclosureRow 2025-12-03 16:33:47 -08:00
122b07e827 fix edit sidebars to use pane stack push/pop 2025-12-03 16:33:16 -08:00
a02db87988 fix @const placement in PaneStack 2025-12-03 16:28:26 -08:00
6606d8c43d add artifact internationalization strings (en/ja) 2025-12-03 16:24:45 -08:00
e502c8128d add artifact validation utilities 2025-12-03 16:23:58 -08:00
2b572d07a7 add artifact selection components for pane stack 2025-12-03 16:22:33 -08:00
e7354479f7 add artifact section to TeamView sidebar 2025-12-03 16:20:31 -08:00
ef22bcb6c1 add artifact indicator icon next to character name 2025-12-03 16:18:48 -08:00
52660f3fb1 add collection artifact feature (cards, rows, pane, route)
- CollectionArtifactCard for grid view
- CollectionArtifactRow for list view
- CollectionArtifactPane for sidebar details
- artifacts collection page with filters and infinite scroll
- getArtifactImage util
- update collection layout for artifacts tab
2025-12-03 16:17:15 -08:00
3a41adc4f2 add artifact UI components for phase 4
- DisclosureRow: iOS-style disclosure row for navigation
- ArtifactSkillRow: shows skill with modifiers and level/value controls
- ArtifactModifierList: selectable list of skills by polarity
- ArtifactGradeDisplay: shows letter grade, breakdown, recommendation
- ArtifactEditPane: main edit pane combining base props, skills, grade
2025-12-03 16:08:17 -08:00
ab1243190b add artifact queries and mutations
- artifactQueries: reference data (cached 1hr), collection infinite, skills by slot
- artifactKeys: cache invalidation helpers
- mutations: collection CRUD, grid CRUD, equip, and grading
2025-12-03 15:59:19 -08:00
1e708e1064 add artifact adapter for API communication
covers reference data, collection artifacts, grid artifacts,
and stateless grading endpoints.
2025-12-03 15:57:29 -08:00
d907e32d12 integrate pane stack into sidebar store
sidebar now uses PaneStackStore internally - openWithComponent
creates root pane, and child components can push/pop via context.
simplified Sidebar.svelte to render PaneStack when stack has items.
2025-12-03 15:55:47 -08:00
096214bc52 add artifact types and add artifact field to GridCharacter 2025-12-03 15:49:16 -08:00
84e1fb4a8a add pane stack store and component for ios-style navigation 2025-12-03 15:47:34 -08:00
e3cc2df45c fix missing promotions field in weapon edit data 2025-12-03 12:36:02 -08:00
b2a606554f simplify weapon series page to read-only list with styled table 2025-12-03 12:33:53 -08:00
108b662e33 make weapon series flags non-optional in type 2025-12-03 12:33:46 -08:00
ab4c8058f4 add ... dropdown to database nav with weapon series link 2025-12-03 12:33:42 -08:00
0259a8ad68 update test mocks to use WeaponSeriesRef 2025-12-03 11:59:40 -08:00
2e2574f749 add weapon series admin CRUD page 2025-12-03 11:59:36 -08:00