Skip to content

Comments

feat: add dismissable announcement banner#62

Open
tibisabau wants to merge 1 commit intoKodo-Robotics:mainfrom
tibisabau:feat/add-announcement-banner
Open

feat: add dismissable announcement banner#62
tibisabau wants to merge 1 commit intoKodo-Robotics:mainfrom
tibisabau:feat/add-announcement-banner

Conversation

@tibisabau
Copy link

Description

Added a dismissible announcement banner at the top of the LaunchMap visualizer to display important messages and updates. The banner shows "💬 Join our Discord" and can be dismissed by clicking the close button. The dismissal state is persisted using localStorage, ensuring the banner doesn't reappear once dismissed.

The implementation includes:

  • Banner HTML structure in the webview template
  • Styled with a light gradient background, rounded bottom edges, and subtle border
  • JavaScript logic to handle dismissal and localStorage persistence
  • Fixed positioning at the top with proper z-index layering

Closes #44.

Checklist if Applicable

  • The tests passed
  • Linting passed – npm run lint:js completed successfully
  • Documentation has been added
  • CHANGELOG.md has been updated

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.

Add Announcement Banner at the Top of Visualizer

1 participant