dorfteich/packages/shared/i18n/en/editor.json
Claude Sonnet 5 076883a9a6
All checks were successful
CD / Build and push images (push) Successful in 2m0s
CI / Lint, typecheck, test (push) Successful in 1m42s
CI / Auth e2e pack (push) Successful in 1m50s
CI / Build container images (push) Has been skipped
CD / Deploy to Test (push) Successful in 8s
CD / Smoke tests against Test (push) Successful in 1m10s
CD / Promote to Int (push) Successful in 10s
Add TipTap page editor with REST persistence (#25)
TipTap is bound to the canonical ProseMirror schema (packages/shared,
#24) via a generic bridge (spec-utils.ts) that re-derives every
node/mark's attrs/parseDOM/toDOM from editorSchema instead of
duplicating them, so the editor's schema stays byte-for-byte identical
to what the api decodes Yjs states against — guarded by a schema-
fidelity + real Yjs round-trip test (@tiptap/y-tiptap client encoding
against y-prosemirror server decoding).

Route /p/:pondSlug/:pageSlug (RequireAuth) resolves the page via a new
GET /ponds/:pondId/pages/:slug endpoint, binds a local Y.Doc via
@tiptap/extension-collaboration (fragment "default"), and offers a
view/edit mode toggle (sidebar auto-hides in edit mode via a small
AppLayout context). Page state saves debounced to PUT /pages/:id/state
with a truthful saving/saved/error(retrying) indicator; title saves
separately via PATCH /pages/:id.

Toolbar covers headings, marks, lists, blockquote, code block, hr,
table (insert/row/column/header ops via prosemirror-tables), a minimal
link mark, and an image placeholder (real upload is #27/#28).

Closes #25

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 11:08:43 +02:00

56 lines
1.4 KiB
JSON

{
"title": {
"placeholder": "Untitled page"
},
"mode": {
"edit": "Edit",
"view": "Read",
"toggleToEdit": "Switch to edit mode",
"toggleToView": "Switch to read mode"
},
"save": {
"saved": "Saved",
"saving": "Saving …",
"error": "Saving failed, retrying …",
"unsavedTitle": "Saving title …"
},
"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 placeholder",
"undo": "Undo",
"redo": "Redo",
"link": {
"add": "Add link",
"remove": "Remove link",
"urlLabel": "Link URL",
"apply": "Apply",
"cancel": "Cancel"
},
"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"
}
}
}