Skip to content

feat: show site header (gnav) + footer on the dashboard - #138

Merged
dosteinacher merged 1 commit into
mainfrom
feat/dashboard-site-nav
Jun 23, 2026
Merged

feat: show site header (gnav) + footer on the dashboard#138
dosteinacher merged 1 commit into
mainfrom
feat/dashboard-site-nav

Conversation

@dosteinacher

Copy link
Copy Markdown
Collaborator

Adds the normal site navigation (and footer) to the analytics dashboard, so it matches the rest of culture-tecture / re-think.

Why it was missing

admin/claps-analytics.html is a standalone HTML file served outside AEM's page-rendering pipeline, so it never got the header/footer that the boilerplate injects on authored pages.

How

Reproduces exactly what regular pages do, but in a controlled way:

  • Imports loadBlock / loadFooter from lib-franklin.js and decorates a <header> (the gnav block, source /en/gnav) and <footer> (/footer).
  • Does not run the full scripts.js page pipeline — that would try to re-decorate the dashboard's bespoke markup (sections, buttons, blocks) and break the layout.
  • Loads /styles/styles.css (before the dashboard's own <style>, so the dashboard wins on conflicts) for nav/footer styling, and reveals the body (styles.css hides it until the boilerplate adds .appear, which we now do).

Verification

  • Main inline script passes node --check.
  • Verified locally (static server over the repo): styles.css + the gnav/footer blocks load without breaking the dashboard layout — title, KPI strip, tabs, and cards all render correctly, with the header bar reserved at top.
  • ⚠️ The nav content (/en/gnav.plain.html) is authored content behind SSO, so it 404s on my local server and can't be shown here — it will populate on the real domain. Please eyeball it once deployed to confirm the nav looks right; if the spacing/full-width needs tweaking against the real nav, that's a quick follow-up.

🤖 Generated with Claude Code

The dashboard is a standalone HTML file served outside the AEM page
pipeline, so it had no site chrome. Load the shared header (gnav, from
/en/gnav) and footer (/footer) exactly as regular pages do — by importing
lib-franklin's loadBlock/loadFooter and decorating <header>/<footer> —
without running the full page pipeline (which would re-decorate the
dashboard's custom markup).

Also pull in /styles/styles.css for the nav/footer styling (loaded before
the dashboard's own styles so the dashboard wins on conflicts) and reveal
the body, since styles.css hides it until the boilerplate's .appear class
which we don't run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Jun 23, 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

@dosteinacher
dosteinacher merged commit 4f4f050 into main Jun 23, 2026
2 of 4 checks passed
@dosteinacher
dosteinacher deleted the feat/dashboard-site-nav branch June 23, 2026 14:16
@dosteinacher
dosteinacher restored the feat/dashboard-site-nav branch July 22, 2026 07:07
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.

1 participant