Commit graph

17 commits

Author SHA1 Message Date
Devin AI
e1c330f376 feat: add SSR integration for TanStack Query v6
- Create +layout.ts to initialize QueryClient for SSR support
- Update +layout.svelte to receive QueryClient from load function
- Add SSR utilities (withInitialData, prefetchQuery, prefetchInfiniteQuery)
- Add documentation for SSR integration patterns

This enables two SSR patterns:
1. initialData pattern for pages using +page.server.ts
2. prefetchQuery pattern for pages using +page.ts

Phase 4 of TanStack Query integration.

Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-29 07:56:38 +00:00
bbaa5bf221 fix: add null/undefined guards for array access and navigation
- MasteryDisplay.svelte: Use optional chaining for split()[0] array access
  - formatRingStat().split('+')[0] -> split('+')[0]?.trim() ?? ''
  - formatEarringStat().split('+')[0] -> split('+')[0]?.trim() ?? ''
- TeamView.svelte: Same fix for formatAxSkill().split('+')[0]
- +layout.svelte: Add null guards for 'to' parameter and 'mainContent' in callback
  - Check !to before accessing to.url
  - Re-check !mainContent inside requestAnimationFrame callback

Fixes "Object is possibly 'undefined'" and "is possibly 'null'" errors with
noUncheckedIndexedAccess: true and strict null checks.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 18:15:09 -08:00
aa16d58175 add tanstack query with infinite scroll support
- integrate @tanstack/svelte-query into layout
- add query client factory and query keys
- new InfiniteScrollQuery component for paginated data
- search query options for weapons/characters/summons
- update dev port to 5174
2025-11-28 11:00:57 -08:00
31af7f5425 add bottom padding to main content for better scroll UX 2025-09-30 01:11:18 -07:00
d8e18c00e1 update ui components 2025-09-29 23:48:02 -07:00
fc958fc444 fix scroll restoration for custom scroll container 2025-09-24 21:31:36 -07:00
e2c71ad28d add element theming and avatar to navigation 2025-09-24 02:52:01 -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
0c03332988 update ui components for better interaction 2025-09-23 22:09:39 -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
7c7ed8b579 chore: update dependencies and misc files 2025-09-17 10:48:15 -07:00
7cb055a79f Add tooltip support with bits-ui 2025-09-15 04:03:19 -07:00
ff64bc1562 Add rudimentary routes 2025-09-11 10:44:59 -07:00
76513f1fd5 Modified app-level files for auth 2025-09-09 03:18:37 -07:00
c360543d82 Init Svelte migration repo 2025-09-08 13:43:09 -07:00