Skip to content

feat: add a root page to groups for breadcrumb linking#85

Merged
BatLeDev merged 1 commit into
masterfrom
feat-group-root-page
Jun 22, 2026
Merged

feat: add a root page to groups for breadcrumb linking#85
BatLeDev merged 1 commit into
masterfrom
feat-group-root-page

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Jun 22, 2026

Copy link
Copy Markdown
Member

Add an optional rootPage to groups: the slug of a standalone generic page used as the group's root.

Why: make the group name clickable in the breadcrumb of group pages, pointing to a free-content page acting as the group's root.

What changes:

  • new rootPage field on the group schema, accepted on group creation and update
  • the root page can be set both when creating and when editing a group
  • group create/edit UI extracted into a dedicated autonomous group-form component (mode: create | edit), instantiated twice in pages-actions
  • on group PATCH, propagate rootPage to the config and draftConfig of the group's pages
  • portal breadcrumb: the group name becomes a link to /pages/<rootPage> when set

Regression risks:

  • group-page breadcrumb is rebuilt: order and rendering are preserved; with no rootPage, the group name stays a plain label (unchanged behavior)
  • a group PATCH triggers an updateMany across all of the group's pages whenever rootPage changes
  • pages-actions drops the unused currentGroupId prop and refresh-group emit (dead code; the only consumer never used them)
  • the root pages list is now fetched lazily per group-form instance when the menu opens (no fetch on page load)

@github-actions github-actions Bot added feature and removed feature labels Jun 22, 2026
Add an optional rootPage (slug of a standalone generic page) on groups.
Group page breadcrumbs link the group name to its root page when set, and
the slug is propagated to existing pages' (draft)config on patch.
@BatLeDev BatLeDev force-pushed the feat-group-root-page branch from 42f7131 to 082cdcb Compare June 22, 2026 12:51
@github-actions github-actions Bot added feature and removed feature labels Jun 22, 2026
@BatLeDev BatLeDev merged commit 8d0c1f0 into master Jun 22, 2026
4 checks passed
@BatLeDev BatLeDev deleted the feat-group-root-page branch June 22, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant