50 lines
1.3 KiB
Markdown
50 lines
1.3 KiB
Markdown
---
|
|
id: TASK-118.10
|
|
title: Add lightweight sync to rpubs (collaborative publication queue)
|
|
status: Done
|
|
assignee: []
|
|
created_date: '2026-03-16 00:06'
|
|
updated_date: '2026-03-16 00:50'
|
|
labels:
|
|
- multiplayer
|
|
- tier-3
|
|
milestone: Multiplayer Everything
|
|
dependencies: []
|
|
parent_task_id: TASK-118
|
|
priority: low
|
|
---
|
|
|
|
## Description
|
|
|
|
<!-- SECTION:DESCRIPTION:BEGIN -->
|
|
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 }[]>
|
|
}
|
|
```
|
|
<!-- SECTION:DESCRIPTION:END -->
|
|
|
|
## Acceptance Criteria
|
|
<!-- AC:BEGIN -->
|
|
- [ ] #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
|
|
<!-- AC:END -->
|
|
|
|
## Implementation Notes
|
|
|
|
<!-- SECTION:NOTES:BEGIN -->
|
|
schemas.ts + local-first-client.ts created
|
|
<!-- SECTION:NOTES:END -->
|