1.5 KiB
1.5 KiB
| id | title | status | assignee | created_date | updated_date | labels | milestone | dependencies | parent_task_id | priority | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-118.6 | Add Automerge persistence to rnetwork CRM data | Done | 2026-03-16 00:06 | 2026-03-16 00:50 |
|
Multiplayer Everything | TASK-118 | medium |
Description
rnetwork currently uses server-stored CRM data with WebSocket visualization. Add Automerge doc for persistent CRM relationship data that syncs via local-first stack alongside the existing WebSocket graph updates.
New files:
modules/rnetwork/schemas.ts— NetworkDoc with contacts, relationships, delegationsmodules/rnetwork/local-first-client.ts— CRUD for CRM data
Schema:
NetworkDoc {
meta: { module: 'network', collection: 'crm', version: 1 }
contacts: Record<string, { did, name, role, tags[], addedBy, addedAt }>
relationships: Record<string, { fromDid, toDid, type, weight, note }>
graphLayout: { positions: Record<did, {x,y}>, zoom, pan }
}
Note: Delegations already in PostgreSQL (trust-engine) — this is for CRM metadata only.
Acceptance Criteria
- #1 CRM contact metadata syncs via Automerge between space members
- #2 Graph layout positions persist and sync
- #3 Existing WebSocket delegation UI still works unchanged
- #4 Demo mode works with local-only data
Implementation Notes
schemas.ts + local-first-client.ts created