Skip to content

POC feat: add dynamic category navigation via header-dynamic block and nav-sync workflow#1231

Draft
OscarMerino wants to merge 12 commits into
demosfrom
POC-COMOPT-1958
Draft

POC feat: add dynamic category navigation via header-dynamic block and nav-sync workflow#1231
OscarMerino wants to merge 12 commits into
demosfrom
POC-COMOPT-1958

Conversation

@OscarMerino

@OscarMerino OscarMerino commented May 4, 2026

Copy link
Copy Markdown

Summary:
Adds a complete dynamic category navigation solution. Merchants can generate storefront navigation automatically from their Commerce category tree without manual authoring in da.live.

What's included:

  • blocks/header-dynamic/: Fork of the header block that fetches a published nav-dynamic.json at runtime and builds the nav menu from it. Falls back to the static /nav document if the fetch fails or returns nothing. Kept separate from the header to avoid modifying the boilerplate default. scripts.js is updated to autoblock header-dynamic instead of header.
  • tools/nav-sync/: A Node.js script that queries the ACO Catalog Service navigation GraphQL API, flattens the category tree, and uploads the result to da.live. Supports a --mode flag (local, preview, publish) and both local (DA_TOKEN) and CI (DA_CLIENT_ID / DA_CLIENT_SECRET) auth.
  • .github/workflows/sync-nav.yml: Daily scheduled workflow with manual trigger support. Update NAV_SITE and NAV_FAMILY before enabling.

Notes:

Ticket:
COMOPT-1958

Test URLs:

@aem-code-sync

aem-code-sync Bot commented May 4, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented May 4, 2026

Copy link
Copy Markdown
Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 May 6, 2026 09:59 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 May 7, 2026 14:20 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 May 14, 2026 09:24 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 May 14, 2026 09:41 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 May 14, 2026 10:03 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 May 14, 2026 13:29 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 June 1, 2026 14:35 Inactive
@aem-code-sync
aem-code-sync Bot temporarily deployed to POC-COMOPT-1958 June 1, 2026 14:40 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant