All checks were successful
CD / Build and push images (push) Successful in 2m54s
CI / Lint, typecheck, test (push) Successful in 2m3s
CI / Auth e2e pack (push) Successful in 2m41s
CI / Build container images (push) Has been skipped
CD / Deploy to Test (push) Successful in 9s
CD / Smoke tests against Test (push) Successful in 1m13s
CD / Promote to Int (push) Successful in 12s
Users can see who changed what and restore old states (ADR 0013). - shared: dependency-free word-level Markdown diff (diffMarkdown) with a unit test; PageVersionContentView; PAGE_RESTORE_CHANNEL + PageRestoreRequest. - api: GET /pages/:id/versions (list), GET .../:versionId (read-only HTML + Markdown for diffing), POST .../:versionId/restore. Every route requires write access — viewing history is gated like editing (permissions.md). Restore checks permission, then emits the page_restore NOTIFY; history is append-only (the api never deletes a version). - collab: a page_restore listener applies the restore on the live document via openDirectConnection — it snapshots the current state as a PRE_RESTORE version, then replaces the content in one transaction, so every connected client converges and the change persists like a normal edit. - web: HistoryPanel (version list with time/trigger/label/contributors, a read-only render of a selected version, a Markdown diff against the current page, and a restore action), toggled from the page menu. de+en strings. Tests: shared diff (added/removed/round-trip/edges); collab restore DB test (a connected client converges on the restored content; a pre-restore snapshot is appended alongside the original — append-only); api list/get/restore (newest-first, rendered content, write-permission gate, restore returns the target without mutating history). This completes M3 (real-time collaboration & history, #33–#42). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PGdhRiwU1WRL4XxJfZYipY
131 lines
4.1 KiB
JSON
131 lines
4.1 KiB
JSON
{
|
|
"title": {
|
|
"placeholder": "Untitled page"
|
|
},
|
|
"mode": {
|
|
"edit": "Edit",
|
|
"view": "Read",
|
|
"toggleToEdit": "Switch to edit mode",
|
|
"toggleToView": "Switch to read mode"
|
|
},
|
|
"connection": {
|
|
"connecting": "Connecting …",
|
|
"connected": "Live",
|
|
"reconnecting": "Reconnecting …",
|
|
"offline": "Offline — your changes will sync when you reconnect"
|
|
},
|
|
"readOnly": {
|
|
"notice": "You have read-only access to this page, so you can't edit it."
|
|
},
|
|
"tooLarge": {
|
|
"notice": "This page has reached its maximum size, so your latest change wasn't saved. Please remove some content."
|
|
},
|
|
"presence": {
|
|
"label": "{{count}} people on this page",
|
|
"viewer": "{{name}} (read-only)"
|
|
},
|
|
"offline": {
|
|
"localOnly": "This page has changes saved only on this device. They'll sync automatically when you're back online."
|
|
},
|
|
"accessRevoked": {
|
|
"title": "Your edit permission was removed",
|
|
"description": "You can no longer edit this page. Your unsaved changes are still on this device — export them before you leave, as they won't be saved to the server.",
|
|
"copy": "Copy as Markdown",
|
|
"copied": "Copied!",
|
|
"copyFailed": "Copy failed",
|
|
"download": "Download as Markdown",
|
|
"discard": "Discard my changes",
|
|
"discardConfirm": "Discard the changes saved on this device? This cannot be undone."
|
|
},
|
|
"toolbar": {
|
|
"paragraph": "Paragraph",
|
|
"heading1": "Heading 1",
|
|
"heading2": "Heading 2",
|
|
"heading3": "Heading 3",
|
|
"heading4": "Heading 4",
|
|
"bold": "Bold",
|
|
"italic": "Italic",
|
|
"code": "Inline code",
|
|
"strikethrough": "Strikethrough",
|
|
"bulletList": "Bullet list",
|
|
"orderedList": "Numbered list",
|
|
"taskList": "Task list",
|
|
"blockquote": "Quote",
|
|
"codeBlock": "Code block",
|
|
"horizontalRule": "Horizontal rule",
|
|
"image": "Insert image",
|
|
"undo": "Undo",
|
|
"redo": "Redo",
|
|
"link": {
|
|
"add": "Add link",
|
|
"edit": "Edit URL",
|
|
"remove": "Remove link",
|
|
"openNewTab": "Open in new tab",
|
|
"urlLabel": "Link URL",
|
|
"apply": "Apply",
|
|
"cancel": "Cancel",
|
|
"invalidProtocol": "This link type is not allowed."
|
|
},
|
|
"table": {
|
|
"insert": "Insert table",
|
|
"addColumnBefore": "Add column before",
|
|
"addColumnAfter": "Add column after",
|
|
"deleteColumn": "Delete column",
|
|
"addRowBefore": "Add row before",
|
|
"addRowAfter": "Add row after",
|
|
"deleteRow": "Delete row",
|
|
"toggleHeaderRow": "Toggle header row",
|
|
"deleteTable": "Delete table"
|
|
}
|
|
},
|
|
"image": {
|
|
"uploading": "Uploading image …",
|
|
"uploadFailed": "Image upload failed",
|
|
"altLabel": "Alt text",
|
|
"widthLabel": "Image width",
|
|
"width": {
|
|
"small": "Small",
|
|
"medium": "Medium",
|
|
"full": "Full"
|
|
}
|
|
},
|
|
"history": {
|
|
"title": "Version history",
|
|
"open": "History",
|
|
"close": "Close",
|
|
"empty": "No versions yet.",
|
|
"error": "You can't view this page's history.",
|
|
"restore": "Restore this version",
|
|
"restored": "Restored",
|
|
"restoreConfirm": "Restore the page to this version? The current state is saved as a version first, so you can undo this.",
|
|
"diffTitle": "Changes from this version to now",
|
|
"viewTitle": "Preview",
|
|
"contributors_one": "{{count}} contributor",
|
|
"contributors_other": "{{count}} contributors",
|
|
"trigger": {
|
|
"auto": "Automatic snapshot",
|
|
"manual": "Named version",
|
|
"pre_restore": "Before a restore"
|
|
}
|
|
},
|
|
"page": {
|
|
"copyMarkdown": "Copy as Markdown",
|
|
"markdownCopied": "Copied!",
|
|
"markdownCopyFailed": "Copy failed",
|
|
"downloadMarkdown": "Download as Markdown",
|
|
"delete": "Move to trash",
|
|
"deleteConfirm": "Move this page to the trash? You can restore it from the pond's trash view."
|
|
},
|
|
"trash": {
|
|
"link": "Trash",
|
|
"title": "Trash — {{pond}}",
|
|
"empty": "The trash is empty.",
|
|
"deletedAt": "Deleted {{date}}",
|
|
"restore": "Restore",
|
|
"purge": "Delete forever",
|
|
"purgeConfirm": "Permanently delete this page and its files? This cannot be undone.",
|
|
"pageTrashedHint": "This page has been moved to the trash.",
|
|
"restoreLink": "View in trash"
|
|
}
|
|
}
|