Commit graph

834 commits

Author SHA1 Message Date
a21bc27594 add element theme colors and spacing variables 2025-09-24 02:51:35 -07:00
7889b7c59b fix button component renderAs logic 2025-09-24 02:51:23 -07:00
94ad52252e Update to use Button component
Also removes redundant styles
2025-09-24 01:53:59 -07:00
ed4d54d586 This was interfering when hoving the + button 2025-09-24 01:53:37 -07:00
8db94e37e7 Update Button component to have shape and element 2025-09-24 01:53:26 -07:00
6ace86a00e Fix various spacing and sizing issues on party details 2025-09-24 01:24:57 -07:00
d8eb6b965a Update description sidebar padding and title 2025-09-24 00:45:40 -07:00
b564a5e5e0 Update layout
Sidebar now animates properly. Navigation has progressive blur behind it on scroll
2025-09-24 00:45:28 -07:00
06a91bd532 Add Youtube video rendering to DescriptionRenderer 2025-09-24 00:43:06 -07:00
0324adb0a4 update services and uncap utilities 2025-09-23 22:10:22 -07:00
53df1db2bc update themes and global styles 2025-09-23 22:10:01 -07:00
0c03332988 update ui components for better interaction 2025-09-23 22:09:39 -07:00
d6b868a9fd add auth store and update auth flow 2025-09-23 22:09:14 -07:00
838e09d17b add sidebar components for descriptions and details 2025-09-23 22:08:51 -07:00
fc32e18ea8 refactor api adapters to use new pattern 2025-09-23 22:06:42 -07:00
9ed6a00f5f feat: auto-close sidebar on navigation
- Added beforeNavigate hook to close sidebar when navigating between pages
- Prevents search sidebar from staying open when browsing different sections
- Ensures clean UI state transitions between pages
2025-09-20 21:36:49 -07:00
fc711a7a5d feat: adapt SearchSidebar to use new sidebar system with component-based content 2025-09-20 12:54:18 -07:00
f5361c5ace fix: use close.svg icon directly in SidebarHeader for visibility 2025-09-20 12:49:37 -07:00
eace0530fa fix: update CharacterRep and SummonRep to use correct adapter field names and shared image utilities 2025-09-20 12:33:08 -07:00
713886a290 fix: prevent duplicate icon rendering in Button component when iconOnly is true 2025-09-20 03:02:55 -07:00
2cf29275b6 Fix database pages to use camelCase field names
- Update database grid navigation to use granblueId
- Update column definitions to use granblueId
- Fix all detail pages to use camelCase field names from transformed API responses
- Fix field names for HP/ATK stats, abilities, and metadata
2025-09-20 02:57:27 -07:00
0797892ea4 Fix last updated field to use camelCase field names 2025-09-20 02:47:08 -07:00
eaa9e1c847 Fix database pages and images
- Update DatabaseProvider to use SearchAdapter instead of direct fetch
- Fix RequestCache error by using cacheTTL instead of cache
- Update image cells to use shared image utilities with correct parameters
- Use only camelCase field names (granblueId) from transformed responses
2025-09-20 02:46:13 -07:00
100a04eda6 Fix adapter field names and runed import
- Update Party interface to use transformed field names (weapons/characters/summons)
- Fix runed import to use useDebounce instead of debounced
- Clean up debug logging
2025-09-20 02:26:54 -07:00
1a6a112efd fix: adapter initialization and image loading
- Add centralized adapter config with proper baseURL
- Fix API response transformation (object -> weapon/character/summon)
- Update components to use image service and correct property names
- Fix Svelte 5 $derived syntax and missing PartyAdapter.list method

Images now display correctly in grids.
2025-09-20 01:54:40 -07:00
842321efd2 feat: Complete Phase 4 & 5 - Finish adapter migration
Phase 4 - Page Server Components:
- Migrated database page servers to use EntityAdapter directly
- Removed fetch parameter from all page server loads

Phase 5 - Utility Files:
- Deleted lib/api.ts (functionality inlined)
- Deleted lib/server/detail/load.ts (no longer needed)
- Updated DatabaseProvider to use PUBLIC_SIERO_API_URL directly
- Updated OAuth to use native fetch type

Migration Complete:
- All 32 files migrated from api/core to adapter pattern
- Zero remaining dependencies on lib/api/core
- Clean separation of concerns with dedicated adapters
2025-09-20 01:16:58 -07:00
8332ecc158 refactor: Complete Phase 3 - Migrate API route handlers from core to utilities
- Created dedicated utility functions for API route proxies (buildApiUrl, extractHeaders, handleApiError)
- Migrated all 20 API route handlers to use new utilities instead of api/core
- Routes continue to act as proxies to Rails API (correct architecture)
- Removed dependency on buildUrl from api/core in all route handlers
- Updated migration plan to reflect completed Phase 3
2025-09-20 01:11:08 -07:00
87a65408f9 test: Add comprehensive tests for UserAdapter
- Tests for all UserAdapter methods (getInfo, getProfile, getFavorites, etc.)
- Tests for error handling and caching behavior
- Fixed caching tests to explicitly enable caching (disabled by default)
- Added cache clearing after profile updates
- All 21 tests passing successfully
2025-09-20 00:46:28 -07:00
683c28e172 feat: Create UserAdapter and complete Phase 1 & 2 of migration
- Created new UserAdapter for user profile and favorites operations
- Updated routes/teams/explore and routes/[username] to use adapters directly
- Deleted resource facade files (parties.ts, grid.ts, users.ts)
- All services and initial routes now use adapters without backward compatibility
- Updated migration plan to track completed work
2025-09-20 00:42:13 -07:00
2605a539b6 refactor: Remove backward compatibility in adapter migration
- Update services to use adapters directly without FetchLike
- Remove constructor fetch dependency from services
- Add favorite/unfavorite methods to PartyAdapter
- Simplify API resource files to act as facades temporarily
- Services now instantiate without fetch parameter
- Direct adapter usage improves type safety and reduces complexity
2025-09-20 00:37:26 -07:00
fd172e6558 test: Add comprehensive tests for grid and entity adapters
- Add tests for GridAdapter covering weapons, characters, and summons
- Add tests for EntityAdapter covering canonical data access
- Test CRUD operations, positioning, uncap updates, and caching
- Verify snake_case transformation and error handling
- Ensure proper cache management with TTL support
2025-09-20 00:19:00 -07:00
49fc0fb069 feat: Implement GridAdapter and EntityAdapter
- Add GridAdapter for managing user grid item instances
- Support CRUD, position management, and uncap operations
- Add EntityAdapter for read-only canonical game data
- Separate user instances from game reference data
- Export all adapters from index
2025-09-20 00:11:51 -07:00
4f8beab3ea fix: Update PartyAdapter to match corrected API endpoints
- Remove non-existent batch update methods for grid items
- Add gridUpdate for atomic batch operations
- Add preview management methods
- Split job management into separate endpoints
- Update tests to match new API structure
2025-09-20 00:04:36 -07:00
114427241f feat: Implement PartyAdapter with comprehensive functionality
- Add PartyAdapter for party CRUD and grid management
- Create reactive PartyResource with optimistic updates
- Support user parties listing with filters
- Handle grid conflicts and job updates
- Include comprehensive test coverage
2025-09-19 23:19:24 -07:00
20c6de3834 docs: add search example component demonstrating adapter usage
- Create comprehensive example showing search functionality
- Demonstrate filtering, debouncing, and error handling
- Show proper integration with Svelte 5 reactive patterns
2025-09-19 23:07:24 -07:00
99e58d0b3c feat: add reactive search resource using Svelte 5 runes
- Create SearchResource class with reactive state management
- Implement debounced search using Runed utilities
- Support concurrent searches for different entity types
- Add request cancellation and state management
- Include tests for resource functionality
2025-09-19 23:06:59 -07:00
ece44a54a3 feat: add search adapter for entity searches
- Implement SearchAdapter extending BaseAdapter
- Support searching weapons, characters, and summons
- Add filtering by element, rarity, proficiency, etc.
- Include pagination support
- Add comprehensive test coverage
2025-09-19 23:06:46 -07:00
51c30edc50 feat: implement base adapter with retry logic and caching
- Add BaseAdapter class with request/response transformation
- Implement comprehensive error handling and normalization
- Add retry logic with exponential backoff for network/server errors
- Support request cancellation and deduplication
- Include response caching with configurable TTL
- Add full test coverage for adapter functionality
2025-09-19 23:03:36 -07:00
6f9479f697 Fix double load 2025-09-19 13:59:55 -07:00
a642cdd857 fix: linter fixes 2025-09-17 22:16:10 -07:00
24bf7da892 CSS changes to DatabaseGridWithProvider 2025-09-17 22:15:57 -07:00
5c407f3ef7 Small changes to Navigation 2025-09-17 22:15:37 -07:00
5c8e23a38e Added editable mode to character detail 2025-09-17 22:15:24 -07:00
0e92b9baf5 small changes and fixes to character datagrid 2025-09-17 22:15:01 -07:00
b71c2c2109 Add role to summons and weapons detail pages 2025-09-17 22:14:42 -07:00
a8dfe28b07 added details components for database section 2025-09-17 22:14:19 -07:00
bca4843885 Refactored Select component 2025-09-17 22:10:38 -07:00
5466a70916 Refactored Input component 2025-09-17 22:08:37 -07:00
be2f723962 Remove everything in stories folder for now 2025-09-17 22:08:19 -07:00
3e7ccf8fdb Refactored Button component 2025-09-17 22:06:45 -07:00
c09154b138 Remove test-ui route 2025-09-17 22:04:49 -07:00
7fb9ef2d9a Tweaked CSS variables
Added some new variables for elevation, rounder corners, and tweaked some other things
2025-09-17 22:04:26 -07:00
be09e67d42 added methods for getting options from type utils 2025-09-17 21:51:26 -07:00
94a3227632 dummy text for collection route 2025-09-17 21:50:23 -07:00
a0d9645385 Add placeholder route for guides 2025-09-17 21:49:57 -07:00
bab0ce2a06 Add new icons 2025-09-17 21:49:45 -07:00
3eb00135f8 refactor database detail pages with new UI components 2025-09-17 13:42:48 -07:00
aa5d1d2c22 simplify database list pages 2025-09-17 13:42:22 -07:00
281a595eb3 update database layout with sidebar navigation 2025-09-17 13:42:02 -07:00
54491b1158 add detail UI components and uncap utility 2025-09-17 13:39:28 -07:00
0b771fc405 enhance navigation with database submenu 2025-09-17 13:39:15 -07:00
a5ffdcb68a add arrow icons 2025-09-17 13:38:47 -07:00
7c7ed8b579 chore: update dependencies and misc files 2025-09-17 10:48:15 -07:00
0bab6e0d7e refactor: restructure party component layout 2025-09-17 10:47:59 -07:00
e4c59e14f6 feat: add grid API endpoints and drag-drop support 2025-09-17 10:46:49 -07:00
666109ef7d feat: enhance database pages with uncap columns 2025-09-17 10:45:44 -07:00
6f428f2aa3 refactor: migrate UI components to inline styles 2025-09-17 10:44:52 -07:00
ff711331d4 feat: add uncap indicators to units and database 2025-09-17 10:43:32 -07:00
9764c80771 fix: add X-Per-Page header for database pagination 2025-09-17 10:41:56 -07:00
4910b263e1 Add detail pages for characters, weapons, summons 2025-09-17 07:13:36 -07:00
45f04c2593 Add row click navigation to database grids 2025-09-17 07:12:54 -07:00
6b5f2b4868 Add race and gender utility mappings 2025-09-17 07:12:37 -07:00
5c814b8054 Add database provider for REST API integration 2025-09-17 06:44:07 -07:00
d3d4b8a767 Fix grid styling with row height and vertical centering 2025-09-17 06:43:48 -07:00
03be26395f Update database tables with icon columns and imports 2025-09-17 06:43:34 -07:00
78a617db0e Use local square images instead of hotlinking 2025-09-17 06:43:20 -07:00
30ab61fbc9 Add database cell components for icons and images 2025-09-17 06:43:03 -07:00
d262eba8b2 Create element and proficiency label components 2025-09-17 06:42:45 -07:00
2cf3c2067e Add element and proficiency utility mappings 2025-09-17 06:42:28 -07:00
76bad64ece add database link to navigation for role 7+ 2025-09-17 05:33:30 -07:00
7538b5ae04 add api endpoints for database items 2025-09-17 05:33:10 -07:00
034e8e48cd add database pages with svar grid 2025-09-17 05:32:38 -07:00
1c5caccf5e fix ui components svelte 5 compatibility 2025-09-16 20:10:04 -07:00
cc46a695d5 use visual segmented control in party views 2025-09-16 20:09:36 -07:00
acf49c718c refactor rep components to accept flexible props 2025-09-16 20:09:20 -07:00
fed7b5ae50 implement visual party segmented control 2025-09-16 20:08:57 -07:00
ad2e04623f add parties list endpoint for explore page 2025-09-16 20:08:28 -07:00
16e18525da Fix drag-drop swapping
Add parent +server.ts files to fix routing conflicts
Pass actual target item IDs instead of placeholder strings
2025-09-16 17:19:26 -07:00
888e53fa62 add drag-drop support with API integration
- created drag-drop composable with touch/mouse support
- added DraggableItem and DropZone components
- integrated grids with drag-drop functionality
- added API endpoints for position updates and swaps
- handles cross-container dragging for all grid types
2025-09-16 03:45:22 -07:00
1d0495f1f2 Add drag-drop system for grids
- Core composable with touch support & operation queue
- DraggableItem & DropZone components
- Proper position mapping for containers
- Cross-container swap/move operations
- Visual feedback states

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 02:43:58 -07:00
627989bea1 add ui component test page 2025-09-16 01:35:47 -07:00
dc9898f334 add segmented control / tabs component 2025-09-16 01:34:29 -07:00
1b0294a683 add switch and checkbox components 2025-09-16 01:34:06 -07:00
205e1045a6 add select component with bits-ui 2025-09-16 01:33:46 -07:00
7f7661f542 add input component built on bits-ui 2025-09-16 01:33:24 -07:00
07f4721d5d enhance button with more variants from hensei-web 2025-09-16 01:33:00 -07:00
2fbb181078 add ui components 2025-09-15 21:26:14 -07:00
ef30e57eba remove fluid-dnd drag and drop 2025-09-15 21:26:01 -07:00
e26b5c2e20 add context menus to units and party 2025-09-15 21:24:49 -07:00
da4c3d09f9 add grid api endpoints and services 2025-09-15 21:24:37 -07:00
3624edbd1c Update explore grid component 2025-09-15 04:10:37 -07:00
251c56b86d Update services for editing support 2025-09-15 04:10:22 -07:00
ff6074675b Update rep components with improved styling 2025-09-15 04:10:02 -07:00
7e862ed56a Update grid components for editing support 2025-09-15 04:09:18 -07:00
c9bd155ed6 Update unit components with editing context 2025-09-15 04:08:11 -07:00
795d9761d7 Enable party editing with search sidebar 2025-09-15 04:05:37 -07:00
efd13206e0 Add search sidebar and panel components 2025-09-15 04:05:03 -07:00
e8fa1545f8 Add API type definitions 2025-09-15 04:04:39 -07:00
1b6da60aa3 Add API client and resource modules 2025-09-15 04:04:09 -07:00
65411ad2ae Migrate teams route from [shortcode] to [id] 2025-09-15 04:03:52 -07:00
7cb055a79f Add tooltip support with bits-ui 2025-09-15 04:03:19 -07:00
79da2511bb Add new icons for rep pills 2025-09-12 05:24:15 -07:00
8071eb584c Remove default ul styling 2025-09-12 05:23:42 -07:00
e18208f7c2 Add sizes for each rep type 2025-09-12 05:23:22 -07:00
c8da5c4762 Checkpoint for reps 2025-09-12 05:22:33 -07:00
be0a8df439 Fix zod validation for login 2025-09-11 10:47:12 -07:00
4f0a600898 Add first 5 icons 2025-09-11 10:46:48 -07:00
32c1c9016e Add new services for business logic 2025-09-11 10:46:29 -07:00
cf351ef1fc Add ported grid components 2025-09-11 10:46:02 -07:00
f978be2bfd Add Button component 2025-09-11 10:45:43 -07:00
23eb537fdd Add navigation 2025-09-11 10:45:30 -07:00
ff64bc1562 Add rudimentary routes 2025-09-11 10:44:59 -07:00
8c3198e4b0 Add CSS from old project and split into focused files 2025-09-11 03:56:18 -07:00
cbd92e2d52 Flesh out API layer 2025-09-11 03:53:43 -07:00
bf6ff79391 Rudimentary import for SEO 2025-09-09 03:20:38 -07:00
8166ee31dd Re-export OAUTH_BASE from env var 2025-09-09 03:20:27 -07:00
d5caf3d784 Add validation for login form 2025-09-09 03:19:36 -07:00
f221c12f40 Starter routes (including login and logout) 2025-09-09 03:19:12 -07:00
e988b02f0c Add auth helper libraries 2025-09-09 03:18:53 -07:00
76513f1fd5 Modified app-level files for auth 2025-09-09 03:18:37 -07:00
0edf8c4191 Added WIP structure for API library 2025-09-09 03:18:04 -07:00
660cc8d028 Add export keyword types 2025-09-09 03:17:38 -07:00
7b05fa0497 Migrate type defs 2025-09-09 00:27:26 -07:00
c360543d82 Init Svelte migration repo 2025-09-08 13:43:09 -07:00