Skip to content

UXE-626: Add Via migration banner - #491

Merged
adamrasheed merged 3 commits into
stagingfrom
uxe-626-via-banner
Aug 6, 2026
Merged

UXE-626: Add Via migration banner#491
adamrasheed merged 3 commits into
stagingfrom
uxe-626-via-banner

Conversation

@adamrasheed

@adamrasheed adamrasheed commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a dismissible @leafygreen-ui/banner (warning variant) to the global page template, flagging that LeafyGreen is in maintenance mode and pointing new work at Via.
  • Dismissal is persisted in localStorage (mirrors the existing dark-mode-preference pattern) so returning visitors aren't re-shown it every visit.
  • Does not touch existing content yet — see cut-list proposal below, per the ticket's acceptance criteria ("confirm cut list with Design Systems team before deleting content").

Jira: https://jira.mongodb.org/browse/UXE-626

Screenshot

image image

Proposed cut list (for Design Systems review — nothing deleted in this PR)

Recommend cutting/archiving (LeafyGreen-component-specific, fully superseded by Via + its Storybook):

  • All Components docs (code docs, design docs, live examples) — the bulk of the site
  • All Patterns (Access Restriction Messages, AI Branding, Charts, Chat, Cloud Nav Layout, Control List, Date & Time, Empty State, End of Life, Feature Walls, Forms)
  • Foundations that are LG-implementation-specific: Grid, Tokens, Typography, Icon Creation, Figma Library 101

Keep-candidates worth a second look (may be brand/content-level, not LG-specific):

  • Copy: Grammar and Mechanics, Copy: Voice and Tone — writing guidelines, possibly system-agnostic
  • Accessibility — general guidance, may still be useful as a stub
  • /tools/writer — internal AI rewriting tool tied to copy voice/tone, not a component doc

Homepage: replace with a stub landing page — banner + short "we've moved to Via" blurb + links out, per acceptance criteria.

Internal/private pages (/internal, /private): low-value placeholders, not public-facing (gated), can likely stay as-is or be removed independent of the public cut list.

Note on the Via link

Banner links to https://via-storybook.ux-foundations.prod.corp.mongodb.com/, which is a corp.mongodb.com host — internal-only. mongodb.design is public, so external visitors will hit a dead link. Worth confirming whether that's acceptable for now or whether we need a public-facing landing page to point at instead.

Test plan

  • tsc --noEmit passes
  • eslint passes on changed files
  • Verified banner renders (dark + light mode) on homepage and a component page via local dev server
  • Verified dismiss persists across navigation via localStorage
  • Design Systems team confirms the cut list above

adamrasheed and others added 3 commits August 5, 2026 11:31
Adds a dismissible banner announcing the shift from LeafyGreen to Via,
linking out to the Via docs/Storybook. Content strip-down is deferred
pending Design Systems sign-off on the cut list (see UXE-626 for the
proposed list).
@adamrasheed
adamrasheed marked this pull request as ready for review August 6, 2026 19:06
@adamrasheed
adamrasheed requested review from Copilot and stephl3 August 6, 2026 19:06
Comment on lines +27 to +31
dismissible
onClose={() => {
localStorage.setItem(DISMISSED_KEY, 'true');
setDismissed(true);
}}

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.

do we want to make this non-dismissible?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@adamrasheed
adamrasheed added this pull request to the merge queue Aug 6, 2026
Merged via the queue into staging with commit 83b10e9 Aug 6, 2026
2 of 4 checks passed
@adamrasheed
adamrasheed deleted the uxe-626-via-banner branch August 6, 2026 20:05
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