Skip to content

Improve mobile UX consistency and accessibility - #1870

Merged
David Pine (IEvangelist) merged 7 commits into
mainfrom
ievangelist-mobile-ux-consistency
Oct 13, 2026
Merged

David Pine (IEvangelist) merged 7 commits into
mainfrom
ievangelist-mobile-ux-consistency

Conversation

@IEvangelist

@IEvangelist David Pine (IEvangelist) commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Improve mobile navigation, reading, and catalogs across aspire.dev while preserving the site's identity, content, and desktop information architecture.

  • Use the 34px On this page scale for secondary controls, with 12px horizontal page-action padding and natural grouped wrapping. Keep primary calls to action larger and code-copy glyphs at 16px.
  • Make announcement links ordinary underlined text, with a separate dismiss column that cannot overlap the copy. Preserve dismissal, expiry, and reduced-motion behavior.
  • Show page hierarchy as one conventional wrapping breadcrumb trail: underlined ancestor links and a plain current page, without a back arrow or page-selector-like dropdown. The in-page TOC is unchanged.
  • Balance headings and wrap technical identifiers at meaningful boundaries without changing their text. Match integration-card code borders to surrounding light-theme controls.
  • Match Hub search to other fields on every viewport: 34px on phone/coarse layouts and 48px on desktop. Glossary topic/alphabet filters and equivalent API filters share the 34px control scale.
  • Preserve dedicated API search, keyboard/focus behavior, accessible filter disclosure, bounded menus, client-side navigation cleanup, and contained API/table scrolling.
  • Fix production rich-doc link styling and native Pagefind/catalog padding parity, and update the broader CI contracts to use real mobile-menu navigation rather than hidden desktop-only controls.

Current screenshots

65 mobile captures and 8 desktop checks replace the earlier screenshots. They include final Hub/glossary size comparisons, 320px and doubled-text cases, and expanded controls. Fonts, transitions, visible images, and filter results were settled before capture. Click an image for its full-size view.

Homepage

Homepage, 390px light

Documentation
Documentation landing First-app tutorial
Documentation landing, 390px light First-app tutorial, 390px light
CLI installation CLI reference
CLI installation, 390px light CLI reference, 390px light
Integrations, dashboard, and deployment
Integrations landing Integration gallery
Integrations landing, 390px light Integration gallery, 390px light
Redis integration guide Dashboard landing
Redis integration guide, 390px light Dashboard landing, 390px light

Deployment landing, 390px light

Community and media
Community landing Live videos
Community landing, 390px light Live videos, 390px light
Contributors Acknowledgements
Contributors, 390px light Acknowledgements, 390px light

Conference page, 390px light

Catalogs and resource hub
Samples Sample details
Samples, 390px light Sample details, 390px light
Container images Hub with matched search height
Container images, 390px light Hub, 390px light
Resource browser Glossary with matched filter heights
Resource browser, 390px light Glossary, 390px light

Long glossary title, 390px light

Localization and supporting pages
Release notes Translation dashboard
Release notes, 390px light Translation dashboard, 390px light
404 German tutorial
404, 390px light German tutorial, 390px light

Japanese tutorial, 390px light

API reference
C# index C# package
C# index, 390px light C# package, 390px light
C# type C# members
C# type, 390px light C# members, 390px light
TypeScript index TypeScript module
TypeScript index, 390px light TypeScript module, 390px light
TypeScript type TypeScript member
TypeScript type, 390px light TypeScript member, 390px light
Expanded controls
Site menu Documentation menu
Site menu, 390px light Documentation menu, 390px light
API sidebar Open menu
API sidebar, 390px light Open menu, 390px light
Share menu Resource filters
Share menu, 390px light Resource filters, 390px light
API versions Sample tags
API versions, 390px light Sample tags, 390px light
Footer preferences Language preferences
Footer preferences, 390px light Language preferences, 390px light
Contained translation table Long API parameters
Contained translation table, 390px light Long API parameters, 390px light

Release navigation, 390px light

Conventional page hierarchy

Complete wrapping breadcrumb trail, 390px light

Dark theme
Homepage Integration gallery
Homepage, 390px dark Integration gallery, 390px dark
API members Resource browser
API members, 390px dark Resource browser, 390px dark

Site menu, 390px dark

Narrow phones
Homepage CLI installation
Homepage, 320px light CLI installation, 320px light
API parameter types Translation table
API parameter types, 320px light Translation table, 320px light

CLI code-copy control, 320px light

Code and long labels
Compact code-copy control Longest integration name
Compact code-copy control, 390px light Longest integration name, 390px light
Enlarged text
Banner at 200% text Documentation at 200% text
Banner at 200% text, 390px Documentation at 200% text, 390px
Desktop checks
Homepage Documentation
Homepage, 1440px light Documentation, 1440px light
API members Homepage dark
API members, 1440px light Homepage, 1440px dark
Final matched search and filter sizes
Resource Hub mobile dark Glossary mobile dark
Resource Hub, 390px dark Glossary, 390px dark
Resource Hub desktop light Glossary desktop light
Resource Hub, 1440px light Glossary, 1440px light
Resource Hub desktop dark Glossary desktop dark
Resource Hub, 1440px dark Glossary, 1440px dark

Third-party links and affiliations

None. Existing third-party destinations are preserved.

Validation

Commands run from src\frontend:

  • pnpm exec vitest run --config vitest.config.ts - passed: 1,024 tests in 78 files; 1 intentionally skipped, against the updated CI base.
  • pnpm lint - passed, including Astro synchronization, skill-digest verification, and complete ESLint checking.
  • pnpm exec playwright test gallery-search-contract.spec.ts dev-glossary.spec.ts dev-layout.spec.ts --workers=2 --reporter=list --grep 'Hub search and glossary filters|glossary toolbar|typography and glossary controls|full-size search input geometry|integration query, facets' - passed: 16 tests; 2 intentionally skipped, confirming common Hub/Browse/Glossary/API sizing across phone, tablet, and desktop.
  • pnpm exec vitest run --config vitest.config.ts tests\unit\search-presentation.vitest.test.ts tests\unit\custom-components.vitest.test.ts tests\unit\navigation-theme.vitest.test.ts - passed: 130 tests in 3 files after the final sizing adjustment.
  • pnpm exec playwright test mobile-ux.spec.ts --workers=2 --reporter=list --grep 'breadcrumbs show|integration-card code borders|secondary controls match' - passed: 9 tests, checking conventional hierarchy, 12px action padding, and matching light-theme code borders.
  • pnpm exec playwright test mobile-ux.spec.ts api-search-contract.spec.ts dev-glossary.spec.ts dev-grain.spec.ts dev-layout.spec.ts dev-browse.spec.ts gallery-search-contract.spec.ts site-search.spec.ts deployment-navigation.spec.ts custom-components.spec.ts homepage.spec.ts ui-regressions.spec.ts --workers=3 --reporter=list --grep 'API full-size input visual parity|glossary toolbar|grain is fine|Dev Hub uses consistent|typography and glossary|share content alignment|sidebar zero matches|native Pagefind input presentation|same-deployment navigation|changed deployment|missing deployment|samples grid hydrates|history returns focus|localized navigation|section 08 pairs|compact editorial rhythm|docs search survives|docs reading hierarchy|aligns the scroll|breadcrumbs show|secondary controls match|integration-card code borders|mobile controls and content' - 77 passed; 8 skipped; 11 failed initially. All failures were corrected and verified below; no tests were disabled.
  • pnpm exec playwright test custom-components.spec.ts dev-layout.spec.ts dev-glossary.spec.ts site-search.spec.ts --workers=2 --reporter=list --grep 'samples grid hydrates|typography and glossary|glossary toolbar|Dev Hub uses consistent|docs search survives' - passed: 16 tests; 2 intentionally skipped, confirming corrected disclosure, navigation, and responsive-loop behavior.
  • pnpm exec tsc --noEmit --pretty false - not clean: 239 existing diagnostics. Comparison with the prior verified baseline found 239 before and after, with no introduced diagnostics.

No local production build was run, in accordance with repository guidance. Production search is a CI/preview check. Physical iPhone, Android, and Safari checks were unavailable; browser emulation is not device or accessibility certification.

CI repairs

Correct production JSX-link underline scoping, Pagefind/catalog padding parity, stale responsive assertions, hidden mobile-menu/sample-tag interactions, and scroll-to-top geometry. The grain check retains strict decoded interior pixels and all texture statistics; the prior mismatch was only three outer-border pixels. The homepage editorial-height budget excludes its independently changing announcement.

The updated base also had a failing dashboard-persistence test after its documentation correctly moved the writable volume to /home/app. Preserve the upstream example and correct only its two stale test expectations. The feature branch was merged with current main, not rebased or replaced.

Full remote production validation is tracked in the final CI run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The global badge rule removes the environment identifier from every desktop layout.

1 open finding
What changed in this PR

Improves responsive usability and accessibility across navigation, documentation components, catalogs, API references, and translation views.

Changes:

  • Introduces a shared mobile menu, responsive breadcrumbs, and consistent touch-target/type tokens.
  • Improves overflow, contrast, focus handling, and client-navigation lifecycle behavior.
  • Adds broad unit/E2E regression coverage and patches page-action dropdown behavior.
File Description
src/​frontend/​tests/​unit/​custom-components.vitest.test.ts Tests media labels and breadcrumbs.
src/​frontend/​tests/​e2e/​ui-regressions.spec.ts Updates responsive UI assertions.
src/​frontend/​tests/​e2e/​mobile-ux.spec.ts Adds mobile accessibility regression matrix.
src/​frontend/​tests/​e2e/​live-status.spec.ts Opens live controls through mobile menu.
src/​frontend/​tests/​e2e/​live-embeds.spec.ts Updates mobile live navigation.
src/​frontend/​tests/​e2e/​live-accessibility.spec.ts Covers menu-based live controls.
src/​frontend/​tests/​e2e/​helpers.ts Adds mobile-menu test helper.
src/​frontend/​tests/​e2e/​dev-layout.spec.ts Updates header and action-menu expectations.
src/​frontend/​tests/​e2e/​dev-browse.spec.ts Updates breadcrumbs and touch sizing tests.
src/​frontend/​tests/​e2e/​cookie-consent.spec.ts Supports menu-based video navigation.
src/​frontend/​tests/​e2e/​api-cross-language-navigation.spec.ts Extends navigation timeout.
src/​frontend/​src/​styles/​site.css Adds responsive layout and touch styles.
src/​frontend/​src/​styles/​search-controls.css Enlarges mobile search controls.
src/​frontend/​src/​styles/​glossary-term.css Targets unique action dropdown classes.
src/​frontend/​src/​styles/​dev-hub.css Updates dropdown targeting.
src/​frontend/​src/​styles/​aspire-brand.css Defines shared typography and sizing tokens.
src/​frontend/​src/​styles/​api-reference.css Improves API wrapping and contrast.
src/​frontend/​src/​content/​docs/​community/​videos.mdx Documents mobile live-navigation behavior.
src/​frontend/​src/​content/​docs/​community/​thanks.mdx Adds coarse/mobile spacing.
src/​frontend/​src/​content/​docs/​community/​contributor-guide.mdx Documents responsive design conventions.
src/​frontend/​src/​components/​YouTubeEmbed.astro Adds fallback iframe label.
src/​frontend/​src/​components/​TwitchEmbed.astro Adds fallback iframe label.
src/​frontend/​src/​components/​TopicHero.astro Improves wrapping, sizing, and contrast.
src/​frontend/​src/​components/​starlight/​Sidebar.astro Adds shared mobile links.
src/​frontend/​src/​components/​starlight/​Search.astro Uses shared metadata sizing.
src/​frontend/​src/​components/​starlight/​PageTitle.astro Improves action wrapping and dropdown sizing.
src/​frontend/​src/​components/​starlight/​PageFrame.astro Adds mobile navigation on all layouts.
src/​frontend/​src/​components/​starlight/​MobileSiteLinks.astro Implements shared mobile destinations.
src/​frontend/​src/​components/​starlight/​MobileMenuToggle.astro Implements accessible menu lifecycle.
src/​frontend/​src/​components/​starlight/​Header.astro Simplifies and measures compact header.
src/​frontend/​src/​components/​starlight/​Footer.astro Enlarges compact footer controls.
src/​frontend/​src/​components/​starlight/​Banner.astro Enlarges banner dismissal target.
src/​frontend/​src/​components/​SessionGrid.astro Improves filter readability and contrast.
src/​frontend/​src/​components/​SampleGrid.astro Adds accessible tag disclosure.
src/​frontend/​src/​components/​SampleCard.astro Improves text and link sizing.
src/​frontend/​src/​components/​QuickStartJourney.astro Uses body-text token.
src/​frontend/​src/​components/​PivotSelector.astro Enlarges selector controls.
src/​frontend/​src/​components/​LiveVideosTabs.astro Uses readable body sizing.
src/​frontend/​src/​components/​LivePip.astro Restores focus to a visible control.
src/​frontend/​src/​components/​LicenseBadge.astro Adds focus and touch sizing.
src/​frontend/​src/​components/​LearnMore.astro Allows long labels to wrap.
src/​frontend/​src/​components/​Integrations.astro Improves toggle sizing and wrapping.
src/​frontend/​src/​components/​IntegrationCard.astro Removes title clipping.
src/​frontend/​src/​components/​IconLinkCard.astro Allows card-title wrapping.
src/​frontend/​src/​components/​home/​HomeTestimonials.astro Uses metadata sizing token.
src/​frontend/​src/​components/​home/​HomeHero.astro Improves mobile text sizing.
src/​frontend/​src/​components/​FooterSocials.astro Enlarges social touch targets.
src/​frontend/​src/​components/​FooterPreferences.astro Enlarges preference controls.
src/​frontend/​src/​components/​FeatureShowcase.astro Uses readable body sizing.
src/​frontend/​src/​components/​dev-center/​ResourceBrowser.astro Makes pagination wrap and scale.
src/​frontend/​src/​components/​dev-center/​BrowseDropdown.astro Enlarges coarse-pointer controls.
src/​frontend/​src/​components/​CustomSelect.astro Improves mobile option sizing and wrapping.
src/​frontend/​src/​components/​CTABanner.astro Improves CTA text and wrapping.
src/​frontend/​src/​components/​ContainerImages.astro Uses metadata sizing token.
src/​frontend/​src/​components/​CapabilityGrid.astro Uses readable body sizing.
src/​frontend/​src/​components/​Breadcrumb.astro Adds parent-link and full-trail layouts.
src/​frontend/​src/​components/​AppHostBuilder.astro Enlarges editor controls.
src/​frontend/​src/​components/​api-reference/​VersionFilter.astro Improves filter sizing and contrast.
src/​frontend/​src/​components/​api-reference/​TypeHero.astro Uses API contrast token.
src/​frontend/​src/​components/​api-reference/​PolyglotAttributePanel.astro Prevents metadata overflow.
src/​frontend/​src/​components/​api-reference/​MemberOverviewList.astro Allows identifiers to wrap.
src/​frontend/​src/​components/​api-reference/​MemberCardBase.astro Constrains long signatures.
src/​frontend/​src/​components/​api-reference/​MemberCard.astro Wraps long member names.
src/​frontend/​src/​components/​api-reference/​InpageSearch.astro Enlarges mobile search controls.
src/​frontend/​src/​components/​api-reference/​DocContent.astro Improves link visibility and contrast.
src/​frontend/​src/​components/​api-reference/​ApiSearchBar.astro Uses shared small-text tokens.
src/​frontend/​pnpm-workspace.yaml Registers page-actions patch.
src/​frontend/​pnpm-lock.yaml Records patched dependency hash.
src/​frontend/​patches/​[email protected] Fixes action menus and copy lifecycle.
src/​frontend/​lunaria/​styles.css Contains and labels translation tables.
src/​frontend/​lunaria/​renderer.config.ts Wraps file status in a focusable region.
src/​frontend/​astro.config.mjs Registers navigation overrides.
Files not reviewed (1)
  • src/frontend/pnpm-lock.yaml: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/frontend/src/styles/site.css Resolved
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1870. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1870 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
David Pine (IEvangelist) marked this pull request as draft October 12, 2026 11:41
@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review October 13, 2026 12:46

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good when testing with testing with Responsive Design Mode in Firefox.

@IEvangelist
David Pine (IEvangelist) merged commit 68e5026 into main Oct 13, 2026
19 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the ievangelist-mobile-ux-consistency branch October 13, 2026 16:50
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.

3 participants