Add Cloud Sync first-party plugin (Supabase file + garage sync)#42
Merged
Merged
Conversation
First in-repo plugin built on the panel framework: a Labs panel that signs the user in and does manual, directional push/pull of local IndexedDB data to Supabase. Structured stores sync as jsonb documents in a new sync_records table; raw session blobs round-trip through a private per-user Storage bucket. Both are RLS-scoped to the owner. Sync is additive (no deletion propagation yet) and online-only — the core app stays fully offline without it. - supabase migration: sync_records table + user-files bucket, owner-scoped RLS - syncStores.ts holds the pure store/key config (unit-tested); syncEngine.ts does the IDB <-> cloud I/O; cloudClient.ts isolates the typed-client escape hatch until Supabase types regenerate - PluginPanelHost now wraps panels in Suspense so panel components can be lazy; CloudSyncPanel is lazy-loaded to keep it off the initial bundle - sign-in only for now (Google to be added via Lovable); auth UI is a thin stub https://claude.ai/code/session_01QF56Xjp5ZMgXrqfTWD14Le
Coverage SummaryLines: 13.36% (1328/9935) · Statements: 12.73% · Functions: 9.37% · Branches: 9.91% Per-file coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First in-repo plugin built on the panel framework: a Labs panel that signs the user in and does manual, directional push/pull of local IndexedDB data to Supabase. Structured stores sync as jsonb documents in a new sync_records table; raw session blobs round-trip through a private per-user Storage bucket. Both are RLS-scoped to the owner. Sync is additive (no deletion propagation yet) and online-only — the core app stays fully offline without it.
https://claude.ai/code/session_01QF56Xjp5ZMgXrqfTWD14Le