Skip to content

feat(reading): polish nav, hub-page heroes, sidebar feedback, h2 counters#11453

Open
jd wants to merge 1 commit into
mainfrom
devs/jd/worktree-design/pass-c-reading-experience-polish--b39618f6
Open

feat(reading): polish nav, hub-page heroes, sidebar feedback, h2 counters#11453
jd wants to merge 1 commit into
mainfrom
devs/jd/worktree-design/pass-c-reading-experience-polish--b39618f6

Conversation

@jd
Copy link
Copy Markdown
Member

@jd jd commented May 11, 2026

Four small UX fixes for day-2 readers — users already in the docs
looking for information.

  • Lower the top-nav breakpoint from 87em (1392px) to 68em (1088px)
    so the 5 nav buttons (Dashboard, Slack, Discussions, Changelog,
    Status) are visible at typical laptop widths. The previous
    breakpoint dated from when the navbar carried a logo eating the
    horizontal space; the logo now lives in the left sidebar.

  • Hub-page light heroes: /merge-queue, /ci-insights, /test-insights
    H1s now render in their product accent color (teal / purple /
    orange). Driven by a new optional hubAccent: true frontmatter
    field on the docs schema; PageContent.astro reads it and adds a
    hero-accent class to the auto-rendered H1. CSS hooks the class
    into the existing --section-accent custom property. No new copy,
    no screenshots, no CTAs — just an accent on the title.

  • Right-sidebar page-actions cluster: the right column now hosts a
    PageFeedback widget beneath the table of contents, giving the
    sidebar a purpose on short doc pages. PageFeedback is mirrored,
    not moved — the article-footer copy still renders for users on
    viewports below 82em (where the right sidebar is hidden), with a
    CSS rule on MainLayout hiding the footer copy when the sidebar
    is visible. PageMeta's existing Edit-on-GitHub link stays as the
    single source of truth (no duplication).

  • Drop the global h2 auto-numbering. The CSS counter that prefixed
    every h2 with 1., 2., 3. is deleted. The pattern was an Astro
    Starlight inheritance that doesn't fit reference / conceptual
    pages; sequential pages can author explicit numbering inline. The
    homepage h2s' class="no-counter" opt-outs are removed since the
    rule they overrode is gone. Stale counter-increment: none guards
    in changelog and api-reference styles also removed.

Copilot AI review requested due to automatic review settings May 11, 2026 12:47
@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 11, 2026 12:47 Failure
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 11, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify mergify Bot requested a review from a team May 11, 2026 12:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR applies “reading experience” UX polish across the docs site by adjusting responsive navigation behavior, adding optional hub-page title accent styling, relocating page actions to the right sidebar, and removing inherited global H2 auto-numbering.

Changes:

  • Lowered the header nav breakpoint so primary nav buttons remain visible at typical laptop widths.
  • Added optional hubAccent frontmatter to render hub-page H1 titles using the existing section accent color.
  • Moved the page feedback widget into the right sidebar and removed global H2 auto-numbering (plus related opt-out CSS).

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/styles/index.css Adds hero-accent H1 styling and removes global H2 numbering CSS.
src/styles/api-reference.css Removes API-reference-specific overrides that were only needed for global numbering.
src/pages/changelog/index.astro Removes changelog heading numbering overrides now made unnecessary.
src/pages/changelog/[slug].astro Removes changelog detail heading numbering overrides now made unnecessary.
src/layouts/MainLayout.astro Stops rendering PageFeedback in the footer slot and updates RightSidebar props.
src/content/docs/test-insights.mdx Enables hubAccent on Test Insights hub page.
src/content/docs/merge-queue.mdx Enables hubAccent on Merge Queue hub page.
src/content/docs/index.mdx Removes no-counter classes from homepage H2s since global numbering is removed.
src/content/docs/ci-insights.mdx Enables hubAccent on CI Insights hub page.
src/content.config.ts Extends docs schema with optional hubAccent boolean.
src/components/RightSidebar/RightSidebar.astro Adds page-actions cluster (feedback + edit link) beneath the ToC.
src/components/PageContent/PageContent.astro Applies hero-accent class to the auto-rendered H1 when hubAccent is set.
src/components/Header/Header.astro Lowers the breakpoint at which nav buttons are hidden.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/layouts/MainLayout.astro
Comment thread src/components/RightSidebar/RightSidebar.astro Outdated
@jd jd force-pushed the devs/jd/worktree-design/pass-c-reading-experience-polish--b39618f6 branch from 057ea7f to b10bec4 Compare May 11, 2026 14:16
@jd
Copy link
Copy Markdown
Member Author

jd commented May 11, 2026

Revision history

# Type Changes Reason Date
1 initial 057ea7f 2026-05-11 14:16 UTC
2 content 057ea7f → b10bec4 2026-05-11 14:16 UTC
3 content b10bec4 → a780ad6 2026-05-11 14:49 UTC
4 content a780ad6 → 0de5e2b 2026-05-11 14:54 UTC
5 rebase 0de5e2b → f9ea28b 2026-05-11 20:59 UTC

@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 11, 2026 14:16 Failure
@jd jd force-pushed the devs/jd/worktree-design/pass-c-reading-experience-polish--b39618f6 branch from b10bec4 to a780ad6 Compare May 11, 2026 14:49
@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 11, 2026 14:49 Failure
@jd jd marked this pull request as ready for review May 11, 2026 14:50
@jd jd force-pushed the devs/jd/worktree-design/pass-c-reading-experience-polish--b39618f6 branch from a780ad6 to 0de5e2b Compare May 11, 2026 14:54
@mergify mergify Bot deployed to Mergify Merge Protections May 11, 2026 14:55 Active
sileht
sileht previously approved these changes May 11, 2026
@mergify mergify Bot requested a review from a team May 11, 2026 16:53
JulianMaurin
JulianMaurin previously approved these changes May 11, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 11, 2026

Merge Queue Status

This pull request spent 1 hour 13 minutes 47 seconds in the queue, including 2 minutes 51 seconds running CI.

Waiting for
  • schedule=Mon-Fri 09:00-17:30[Europe/Paris]
All conditions

Reason

The pull request #11453 has been manually updated

Hint

If you want to requeue this pull request, you can post a @mergifyio queue comment.

mergify Bot added a commit that referenced this pull request May 11, 2026
@mergify mergify Bot added the queued label May 11, 2026
…ters

Four small UX fixes for day-2 readers — users already in the docs
looking for information.

- Lower the top-nav breakpoint from 87em (1392px) to 68em (1088px)
  so the 5 nav buttons (Dashboard, Slack, Discussions, Changelog,
  Status) are visible at typical laptop widths. The previous
  breakpoint dated from when the navbar carried a logo eating the
  horizontal space; the logo now lives in the left sidebar.

- Hub-page light heroes: /merge-queue, /ci-insights, /test-insights
  H1s now render in their product accent color (teal / purple /
  orange). Driven by a new optional `hubAccent: true` frontmatter
  field on the docs schema; PageContent.astro reads it and adds a
  `hero-accent` class to the auto-rendered H1. CSS hooks the class
  into the existing `--section-accent` custom property. No new copy,
  no screenshots, no CTAs — just an accent on the title.

- Right-sidebar page-actions cluster: the right column now hosts a
  PageFeedback widget beneath the table of contents, giving the
  sidebar a purpose on short doc pages. PageFeedback is mirrored,
  not moved — the article-footer copy still renders for users on
  viewports below 82em (where the right sidebar is hidden), with a
  CSS rule on MainLayout hiding the footer copy when the sidebar
  is visible. PageMeta's existing Edit-on-GitHub link stays as the
  single source of truth (no duplication).

- Drop the global h2 auto-numbering. The CSS counter that prefixed
  every h2 with 1., 2., 3. is deleted. The pattern was an Astro
  Starlight inheritance that doesn't fit reference / conceptual
  pages; sequential pages can author explicit numbering inline. The
  homepage h2s' `class="no-counter"` opt-outs are removed since the
  rule they overrode is gone. Stale `counter-increment: none` guards
  in changelog and api-reference styles also removed.

Change-Id: Ib39618f6b4e3fc79ade43934a3d5db6faad6a551
@jd jd changed the title feat(reading): pass C reading-experience polish feat(reading): polish nav, hub-page heroes, sidebar feedback, h2 counters May 11, 2026
@jd jd force-pushed the devs/jd/worktree-design/pass-c-reading-experience-polish--b39618f6 branch from 0de5e2b to f9ea28b Compare May 11, 2026 20:59
@mergify mergify Bot dismissed stale reviews from sileht and JulianMaurin May 11, 2026 21:00

Pull request has been modified.

@mergify mergify Bot deployed to Mergify Merge Protections May 11, 2026 21:00 Active
@mergify mergify Bot removed the queued label May 11, 2026
@mergify mergify Bot requested a review from a team May 11, 2026 21:03
@mergify mergify Bot requested a review from a team May 12, 2026 05:36
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 12, 2026

Merge Queue Status

Waiting for any of
  • check-success = test-broken-links
  • label = ignore-broken-links
All merge conditions
Required conditions to stay in the queue
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • deployment-success = Mergify Merge Protections [📌 queue requirement]
  • any of [📌 queue -> configuration change requirements]:
    • -mergify-configuration-changed
    • check-success = Configuration changed
  • any of [🔀 queue conditions]:
    • all of [📌 queue conditions of queue rule default]:
      • author != dependabot[bot]
      • author != mergify-ci-bot
      • all of [🛡 Merge Protections rule Enforce conventional commit]:
        • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:
      • all of [🛡 Merge Protections rule 👀 Review Requirements]:
        • any of:
          • #approved-reviews-by >= 2
          • author = dependabot[bot]
          • author = mergify-ci-bot
      • all of [🛡 Merge Protections rule 📕 PR description]:
        • body ~= (?ms:.{48,})
      • all of [🛡 Merge Protections rule 🔎 Reviews]:
        • #changes-requested-reviews-by = 0
        • #review-requested = 0
        • #review-threads-unresolved = 0
      • all of [🛡 Merge Protections rule 🤖 Continuous Integration]:
        • all of:
          • check-success = build
          • check-success = lint
          • check-success = test
          • any of:
            • check-success = test-broken-links
            • label = ignore-broken-links
          • any of:
            • check-success=Cloudflare Pages
            • -head-repo-full-name~=^Mergifyio/
    • all of [📌 queue conditions of queue rule automated updates]:
      • any of:
        • author = dependabot[bot]
        • author = mergify-ci-bot
      • all of [🛡 Merge Protections rule Enforce conventional commit]:
        • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:
      • all of [🛡 Merge Protections rule 👀 Review Requirements]:
        • any of:
          • #approved-reviews-by >= 2
          • author = dependabot[bot]
          • author = mergify-ci-bot
      • all of [🛡 Merge Protections rule 📕 PR description]:
        • body ~= (?ms:.{48,})
      • all of [🛡 Merge Protections rule 🔎 Reviews]:
        • #changes-requested-reviews-by = 0
        • #review-requested = 0
        • #review-threads-unresolved = 0
      • all of [🛡 Merge Protections rule 🤖 Continuous Integration]:
        • all of:
          • check-success = build
          • check-success = lint
          • check-success = test
          • any of:
            • check-success = test-broken-links
            • label = ignore-broken-links
          • any of:
            • check-success=Cloudflare Pages
            • -head-repo-full-name~=^Mergifyio/
    • all of [📌 queue conditions of queue rule hotfix]:
      • label = hotfix
      • all of [🛡 Merge Protections rule Enforce conventional commit]:
        • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:
      • all of [🛡 Merge Protections rule 👀 Review Requirements]:
        • any of:
          • #approved-reviews-by >= 2
          • author = dependabot[bot]
          • author = mergify-ci-bot
      • all of [🛡 Merge Protections rule 📕 PR description]:
        • body ~= (?ms:.{48,})
      • all of [🛡 Merge Protections rule 🔎 Reviews]:
        • #changes-requested-reviews-by = 0
        • #review-requested = 0
        • #review-threads-unresolved = 0
      • all of [🛡 Merge Protections rule 🤖 Continuous Integration]:
        • all of:
          • check-success = build
          • check-success = lint
          • check-success = test
          • any of:
            • check-success = test-broken-links
            • label = ignore-broken-links
          • any of:
            • check-success=Cloudflare Pages
            • -head-repo-full-name~=^Mergifyio/

mergify Bot added a commit that referenced this pull request May 12, 2026
@mergify mergify Bot added the queued label May 12, 2026
mergify Bot added a commit that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

5 participants