From cce93e367b0e41edabd9f61b38ba36d23ceac25e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 29 Nov 2025 08:16:22 +0000 Subject: [PATCH] feat: wire up example components with TanStack Query v6 Phase 5 implementation - Component wiring examples: 1. JobSelectionSidebar.svelte: - Replaced createJobResource() with createQuery(() => jobQueries.list()) - Removed manual loading/error state management - Uses TanStack Query's isLoading, isError, refetch() for state - Demonstrates client-side query pattern 2. teams/[id]/+page.svelte: - Added createQuery with withInitialData() for SSR integration - Server-fetched party data used as initial cache value - Query can refetch in background when data becomes stale - Demonstrates SSR + TanStack Query hybrid pattern 3. Added MIGRATION.md with follow-up prompts for: - JobSkillSelectionSidebar migration - Search modal migration - User profile page migration - Teams explore page migration - Party component mutations - Resource class removal This completes Phase 5 of the TanStack Query integration. Co-Authored-By: Justin Edmund --- .../sidebar/JobSelectionSidebar.svelte | 43 +--- src/lib/query/MIGRATION.md | 217 ++++++++++++++++++ src/routes/teams/[id]/+page.svelte | 31 ++- 3 files changed, 258 insertions(+), 33 deletions(-) create mode 100644 src/lib/query/MIGRATION.md diff --git a/src/lib/components/sidebar/JobSelectionSidebar.svelte b/src/lib/components/sidebar/JobSelectionSidebar.svelte index 5c814020..08b42159 100644 --- a/src/lib/components/sidebar/JobSelectionSidebar.svelte +++ b/src/lib/components/sidebar/JobSelectionSidebar.svelte @@ -1,7 +1,7 @@ -{#if data?.party} - +{#if party} + {:else}

Party not found