dorfteich/packages/shared/i18n/en/editor.json
Claude Sonnet 5 a645763679
All checks were successful
CD / Build and push images (push) Successful in 2m5s
CI / Lint, typecheck, test (push) Successful in 1m45s
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 1m11s
CD / Promote to Int (push) Successful in 10s
Add page trash: soft delete, restore, and purge job (#31)
Backend: a generic maintenance-job scheduler (SchedulerService, `jobs`
table) that any later maintenance job registers with instead of
growing its own timer loop. Due-ness and the run-mutex both live in
the DB row (`lastRunAt` survives a restart; claiming a due job is one
atomic `UPDATE ... WHERE status != 'RUNNING'`), and an injectable
ClockService lets tests simulate retention elapsing without waiting or
faking the global clock.

Trash endpoints: GET /ponds/:id/trash (list), POST /pages/:id/restore,
DELETE /pages/:id/purge (manual, bypasses retention) — all sharing the
same purge logic as the scheduled daily job (default 30-day retention,
new trash.retentionDays instance setting). Purging deletes a page's
content cache, update log, and attachment files/quota; page_versions
is a placeholder until M3 exists. Direct navigation to a trashed page
now 404s with a distinguishable `page_trashed` code for editors (a
plain 404 for everyone else) instead of the generic not-found.

Attachment.pageId — added in #27 but never wired up — now gets set on
every page state save to whichever page's document currently embeds
the file, which is what lets purge find a page's files.

Frontend: a per-pond trash view (restore/purge), a "move to trash"
action with confirmation in the page menu, and a trash link in the
sidebar for pond owners. Also fixes react-query retrying 4xx responses
for several seconds by default, which was masking the trash-hint 404
in the UI (and would have affected any other not-found/permission
error the same way).

Closes #31
2026-07-08 12:48:17 +02:00

89 lines
2.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",
"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"
}
},
"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"
}
}