fix(content): improve bilingual notices and staff navigation #368

Merged
Eric merged 1 commit from fix/bilingual-ranks-safe-links into main 2026-10-06 16:16:44 +02:00
Owner

Retirement and Last Post titles now use optional authored English/French ranks, and notice bodies consistently link email addresses and safe URLs without overflowing narrow layouts. Original rank fields remain the fallback and retain their certificate behavior. Existing records require no migration, omitted translations survive older-client saves, and no rank translations or imported source text are inferred or rewritten.

The staff workspace now distinguishes published-parent links from authenticated previews for draft/pending comment parents and staff-editor links for hidden/rejected parents. This addresses the case where a published comment points to a draft retirement notice. Missing parents have no broken link; legacy links remain available. Audit links resolve the current published retirement, Last Post, or comment parent rather than historical snapshots. Public visibility and authorization gates remain enforced.

Audit Log moves to the end of the administrative sidebar. Submissions becomes the default dashboard landing when permitted, preserving explicit area links and role fallbacks. This change does not replace the historical invitation image or change content publication statuses.

Validation:

  • 70 focused unit/contract tests, including bilingual titles and editor round-trip, URL/email escaping and punctuation, inert anchors/markup, sidebar order, and dashboard routing.
  • 18 Mongo-backed integration tests, including notice lifecycles, persisted rank/API round-trip, audit missing/private targets, and staff parent preview/editor authorization.
  • Full npm run check (Node 24 runtime, syntax, and repository lint).
  • Local Chrome checks at 1200px and 375px: a 700-character unbroken URL wraps in both notice bodies while preserving text and destination.
  • git diff --check and patch-application validation.

Based on main 030d937; PR367's existing retirement formatting and archive-comment behavior are preserved.

Retirement and Last Post titles now use optional authored English/French ranks, and notice bodies consistently link email addresses and safe URLs without overflowing narrow layouts. Original rank fields remain the fallback and retain their certificate behavior. Existing records require no migration, omitted translations survive older-client saves, and no rank translations or imported source text are inferred or rewritten. The staff workspace now distinguishes published-parent links from authenticated previews for draft/pending comment parents and staff-editor links for hidden/rejected parents. This addresses the case where a published comment points to a draft retirement notice. Missing parents have no broken link; legacy links remain available. Audit links resolve the current published retirement, Last Post, or comment parent rather than historical snapshots. Public visibility and authorization gates remain enforced. Audit Log moves to the end of the administrative sidebar. Submissions becomes the default dashboard landing when permitted, preserving explicit area links and role fallbacks. This change does not replace the historical invitation image or change content publication statuses. Validation: - 70 focused unit/contract tests, including bilingual titles and editor round-trip, URL/email escaping and punctuation, inert anchors/markup, sidebar order, and dashboard routing. - 18 Mongo-backed integration tests, including notice lifecycles, persisted rank/API round-trip, audit missing/private targets, and staff parent preview/editor authorization. - Full `npm run check` (Node 24 runtime, syntax, and repository lint). - Local Chrome checks at 1200px and 375px: a 700-character unbroken URL wraps in both notice bodies while preserving text and destination. - `git diff --check` and patch-application validation. Based on main `030d937`; PR367's existing retirement formatting and archive-comment behavior are preserved.
Eric self-assigned this 2026-10-06 16:12:01 +02:00
fix(content): improve bilingual notices and staff navigation
All checks were successful
Tests / Docker image build (pull_request) Successful in 2m28s
Validate PR title / Conventional PR title (pull_request) Successful in 3s
Tests / Node.js 24 test suite (pull_request) Successful in 3m45s
53adfa1705
Eric changed title from WIP: fix(content): improve bilingual notices and staff navigation to fix(content): improve bilingual notices and staff navigation 2026-10-06 16:15:35 +02:00
Eric merged commit 679bfa53af into main 2026-10-06 16:16:44 +02:00
Eric deleted branch fix/bilingual-ranks-safe-links 2026-10-06 16:16:45 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Eric/CMCENDev!368
No description provided.