Skip to content

Add document deletion dialog and incremental Home loading UX - #212

Merged
callumalpass merged 1 commit into
mainfrom
writer-delete-loading-ux
Nov 26, 2026
Merged

callumalpass merged 1 commit into
mainfrom
writer-delete-loading-ux

Conversation

@callumalpass

Copy link
Copy Markdown
Member

Summary

  • Document deletion (Refs #210):
    • Added Delete document… to Home manuscript rows, the Continue card, untyped note rows, and the open manuscript's More menu, Manuscript settings sheet, and Command Palette.
    • Added DeleteDocumentDialog using @mdbase-dev/ui/confirm-dialog requiring exact document title confirmation before enabling deletion, with inline error handling and busy state.
    • Implemented NativeWriterBackend.deleteDocument(path) using SDK client.delete with revision CAS (ifRevision), receipt recovery for lost replies, cache invalidation, and clean local state cleanup (recent history, word goals, and local drafts).
    • Declared records.delete and files.required "delete" in writer-manifest.mjs (matching Next/Private account capability-to-file pairing).
  • Large collection loading UX (Refs #211):
    • Added immediate loading feedback (Loading manuscripts… + skeleton placeholder rows) on Home while the initial manuscript page loads so the screen never sits empty.
    • Added incremental onProgress streaming in NativeWriterBackend.listManuscripts() as multi-page queryContract pages arrive, rendering loaded rows immediately with a live loaded count (Loading manuscripts… N loaded) until all pages finish.
  • Localization: Extracted, authored, compiled, and verified all 14 new strings across all 10 locales (en, de, es, fr, it, ja, ko, pt, ru, zh).

Testing

  • Added focused unit and component tests in DeleteDocumentDialog.test.tsx, Home.test.tsx, native.test.ts, workspace.test.ts, recent.test.ts, and updated manifest.test.mjs.
  • Verified via rpnpm run check, rpnpm run build:production, rpnpm --filter @mdbase-writer/app run build:staging, pnpm run check:release-downloads, pnpm run test:release-downloads, and node --test scripts/performance-report.test.mjs.

Refs #210
Refs #211

Add Delete document... actions to Home manuscript/note row menus, the
Continue card, and the open manuscript's More menu, Settings sheet, and
Command Palette, backed by a name-confirmation dialog and SDK CAS delete
(with records.delete and files.delete manifest capabilities).

Add immediate skeleton placeholder rows and live incremental page
rendering with loaded counts while multi-page manuscript lists load on
Home.

Refs #210
Refs #211
@callumalpass
callumalpass merged commit 1ea131a into main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant