Foundation + Instant Shell for IndexedDB Admin Caching#82
Foundation + Instant Shell for IndexedDB Admin Caching#82bhubbard wants to merge 11 commits intoemdash-cms:mainfrom
Conversation
|
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
… (Phases 3 & 4) - Optimistic delete/update helpers for instant UI feedback with rollback on error - Background sync manager with visibility-aware polling (pauses when tab hidden) - Multi-tab cache coordination via BroadcastChannel - Sync status indicator in header (shows syncing/offline/error states) - "Clear Local Cache" button in General Settings - Convert content/media delete, publish/unpublish to optimistic mutations - Convert menus and sections to use optimistic delete Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CacheProvider calls useQueryClient(), so it needs QueryClientProvider as an ancestor. The reversed nesting caused the dashboard to hang on load. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
56 tests across 6 test files covering: - db.ts: database setup, schema creation, connection lifecycle - cache-store.ts: CRUD operations, TTL expiry, pruning, index queries - cache-warmup.ts: singleton pre-loading from IndexedDB - broadcast.ts: BroadcastChannel multi-tab coordination - sync.ts: background sync manager lifecycle and status - optimistic-mutation.ts: optimistic delete/update/rollback Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
All 4 phases from the plan are complete: Phase 1: Foundation + Instant Shell ✅ — IDB schema, cache-store, useCachedQuery, warmup, CacheProvider |
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/blocks
@emdash-cms/cloudflare
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
|
This is a large PR. Could you please update the PR description to reflect the state of the PR (all phases completed, as per your comment) and use the template provided? https://github.com/emdash-cms/emdash/blob/main/.github/PULL_REQUEST_TEMPLATE.md |
What this achieves:
Next phases (not yet implemented):