POC feat: add dynamic category navigation via header-dynamic block and nav-sync workflow#1231
Draft
OscarMerino wants to merge 12 commits into
Draft
POC feat: add dynamic category navigation via header-dynamic block and nav-sync workflow#1231OscarMerino wants to merge 12 commits into
OscarMerino wants to merge 12 commits into
Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theheaderblock that fetches a publishednav-dynamic.jsonat runtime and builds the nav menu from it. Falls back to the static/navdocument if the fetch fails or returns nothing. Kept separate from theheaderto avoid modifying the boilerplate default.scripts.jsis 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--modeflag (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. UpdateNAV_SITEandNAV_FAMILYbefore enabling.Notes:
Ticket:
COMOPT-1958
Test URLs: