feat(site-nav): add sticky /sunset announcement bar to the nav header - #1806
Conversation
|
@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Motivation and Context
FIX #
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR adds a sticky announcement banner to the top of the site navigation header to inform visitors that SurfSense is transitioning to a local app, with a link directing them to the
/sunsetannouncement page. The banner can be toggled via an environment variable (NEXT_PUBLIC_TOP_ANNOUNCEMENT_ENABLED), supports dismissal via localStorage with versioning to allow future announcements to resurface, and is designed to stick together with the existing navigation header as a single unit to avoid stacking issues.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_web/.env.examplesurfsense_web/lib/env-config.tssurfsense_web/components/ui/icons.tsxsurfsense_web/components/homepage/top-announcement-bar.tsxsurfsense_web/components/site/site-nav.tsxsurfsense_web/components/site/site-shell.tsx