Collapsible editor sections + contextual help dialog

Collapsible editor sections + contextual help dialog

#55 in Riparion/riparion-cms — merged 2026-06-03

Summary

Editor UX work plus two new catalog components:

  • Fold editor metadata into collapsible sections — post/page editors now group secondary metadata under a shared EditorSection, keeping the markdown writing surface front-and-centre. Section bodies read from form signals, so collapsing never drops in-progress edits.
  • Open contextual help in a modal dialog — the admin header's ? button opens the current section's help article in a modal, rendered through the same Markdown + embed pipeline as the standalone /help/:slug page. It remains a real <a href> (crawlable, shareable, works pre-hydration / middle-click); a plain hydrated left-click intercepts to open the modal in place.
  • New collapsible and dialog catalog components, wired to the project's styled_module! + LocalStylesheets CSS-pinning pattern.

Changes

  • src/components/collapsible/*, src/components/dialog/* — new wrappers over dioxus_primitives (styling only)
  • src/components/{mod,stylesheets}.rs — register + pin the new component CSS
  • src/pages/admin/{mod,pages,posts}.rsEditorSection helper + HelpButton
  • src/pages/reader/help/mod.rs — shared help_slug_for / article_body_el / HelpIndexCards; new HelpButton

Testing

  • cargo fmt --check, clippy, and build gated by CI
  • Security review (/security-review): no vulnerabilities — styling/refactor over the unchanged markdown pipeline on static, build-embedded help content

🤖 Generated with Claude Code

Last updated 2026-06-04