UXE-626: Add Via migration banner - #491
Merged
Merged
Conversation
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
marked this pull request as ready for review
August 6, 2026 19:06
stephl3
approved these changes
Aug 6, 2026
Comment on lines
+27
to
+31
| dismissible | ||
| onClose={() => { | ||
| localStorage.setItem(DISMISSED_KEY, 'true'); | ||
| setDismissed(true); | ||
| }} |
Collaborator
There was a problem hiding this comment.
do we want to make this non-dismissible?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@leafygreen-ui/banner(warning variant) to the global page template, flagging that LeafyGreen is in maintenance mode and pointing new work at Via.localStorage(mirrors the existing dark-mode-preference pattern) so returning visitors aren't re-shown it every visit.Jira: https://jira.mongodb.org/browse/UXE-626
Screenshot
Proposed cut list (for Design Systems review — nothing deleted in this PR)
Recommend cutting/archiving (LeafyGreen-component-specific, fully superseded by Via + its Storybook):
Componentsdocs (code docs, design docs, live examples) — the bulk of the sitePatterns(Access Restriction Messages, AI Branding, Charts, Chat, Cloud Nav Layout, Control List, Date & Time, Empty State, End of Life, Feature Walls, Forms)Keep-candidates worth a second look (may be brand/content-level, not LG-specific):
/tools/writer— internal AI rewriting tool tied to copy voice/tone, not a component docHomepage: 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 acorp.mongodb.comhost — 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 --noEmitpasseseslintpasses on changed fileslocalStorage