Skip to content

feat: PRSDM-11850 Expose section chain for breadcrumb - #132

Open
kelvinmanley wants to merge 1 commit into
mainfrom
PRSDM-11850-align-wysiwyg-editor-layout-and-styling-with-new-designs
Open

feat: PRSDM-11850 Expose section chain for breadcrumb#132
kelvinmanley wants to merge 1 commit into
mainfrom
PRSDM-11850-align-wysiwyg-editor-layout-and-styling-with-new-designs

Conversation

@kelvinmanley

@kelvinmanley kelvinmanley commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

JIRA_TICKET_URL

What does this PR do?

Exposes the page's section chain so the WYSIWYG editor can render breadcrumbs

Why is this change needed?

This is required for the Agentic UI updates

Related PR

https://github.com/SPANDigital/presidium-js-enterprise/pull/1564

How to test

  1. Pull this PR to your local presidium-layouts-base
  2. Load a module with this branch of presidium-layouts-base set
  3. Load the related presidium-js-enterprise branch
  4. Run Presidium Enterprise and view the breadcrumbs in the WYSIWYG editor

Screenshots/Video (optional)

Screen.Recording.2026-09-04.at.12.55.24.mov

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is small, self-contained to Hugo template additions, and introduces a clear, consistently-applied data contract for Enterprise breadcrumb rendering.

Pull request overview

This PR adds a serialized “ancestor” (section chain) payload to the rendered HTML for Enterprise/WYSIWYG contexts so the editor can build a breadcrumb UI from page metadata.

Changes:

  • Added data-ancestors attributes (JSON) to page and article wrapper elements when enterprise_enabled is set.
  • Introduced a new Hugo partial (common/ancestors) that returns the current page’s ancestor chain (excluding home) as {title, url} items.
  • Documented the feature in the changelog.
File summaries
File Description
layouts/partials/page/single.html Adds data-ancestors JSON to the Enterprise-only wrapper for single-page rendering.
layouts/partials/page/list.html Adds data-ancestors JSON to the Enterprise-only wrapper for list/section rendering.
layouts/partials/common/ancestors.html New data-returning partial to compute and return the ancestor chain for breadcrumbs.
layouts/partials/article/item.html Adds data-ancestors JSON to Enterprise-only article items so breadcrumbs can be derived per item.
CHANGELOG.md Adds an entry describing the new breadcrumb ancestry exposure feature.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants