rspace-online/backlog/tasks/task-118.10 - Add-lightweig...

1.3 KiB

id title status assignee created_date updated_date labels milestone dependencies parent_task_id priority
TASK-118.10 Add lightweight sync to rpubs (collaborative publication queue) Done
2026-03-16 00:06 2026-03-16 00:50
multiplayer
tier-3
Multiplayer Everything
TASK-118 low

Description

rpubs compiles markdown to print-ready pocket books via Typst. Add Automerge sync for shared publication drafts and editorial queue.

New files:

  • modules/rpubs/schemas.ts — PubsDoc with publications, editorialQueue, comments
  • modules/rpubs/local-first-client.ts — CRUD: saveDraft, addToQueue, addComment

Schema:

PubsDoc {
  meta: { module: 'pubs', collection: 'editorial', version: 1 }
  publications: Record<string, { id, title, markdownContent, status, authorDid, updatedAt }>
  editorialQueue: string[]
  comments: Record<string, { pubId, authorDid, text, createdAt }[]>
}

Acceptance Criteria

  • #1 Publication drafts sync between editors in real-time
  • #2 Editorial queue shared across space members
  • #3 Comments visible to all members
  • #4 Demo mode works locally

Implementation Notes

schemas.ts + local-first-client.ts created