Skip to content

Adapt page analytics layout and links - #14

Merged
thebuilder merged 1 commit into
mainfrom
agent/adapt-page-analytics-layout
Jul 18, 2026
Merged

Adapt page analytics layout and links#14
thebuilder merged 1 commit into
mainfrom
agent/adapt-page-analytics-layout

Conversation

@thebuilder

Copy link
Copy Markdown
Owner

Summary

  • reorder the Flags card after the other page analytics breakdowns
  • center Flags at half width on wide desktops, pair it with Operating systems in the two-column layout, and restore full width on narrow screens
  • link the page analytics site context directly to the resolved page URL while preserving the site-root link on global analytics
  • add regression coverage for Flags ordering and document URL linking

Why

Removing the Pages card from document-scoped analytics changed CSS Grid auto-placement, leaving the remaining cards visually unbalanced. The Flags card also stretched too far on wide screens and wasted an available grid cell at the intermediate breakpoint. Separately, the header displayed the current hostname but always linked to the site root even though the resolved document route was already available.

Impact

Page analytics now uses the available space more intentionally across desktop, tablet, and mobile widths. Editors can also open the exact page they are reviewing directly from its analytics header.

Verification

  • corepack pnpm build
  • corepack pnpm test -- src/analytics/analytics-components.test.ts (105 tests passed)
  • git diff --check

@thebuilder
thebuilder marked this pull request as ready for review July 18, 2026 18:29
@thebuilder
thebuilder merged commit 548123a into main Jul 18, 2026
3 checks passed
@thebuilder
thebuilder deleted the agent/adapt-page-analytics-layout branch July 18, 2026 18:33
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