Commit graph

8 commits

Author SHA1 Message Date
mac-agent
e5a6feb6f6 fix: clear stagger toast timers on unmount in AnnouncementToastProvider
Stagger setTimeout calls inside the for loop were never cleared on
component unmount, causing potential setState calls on unmounted
components when the user navigates away before all toasts fire.

Fixes #1094
2026-04-04 07:02:51 -04:00
likiosliu
3d762ccf62 fix: remove unnecessary "use client" from pure presentational components
These components only render JSX with props and don't use hooks,
event handlers, or browser APIs.
2026-03-26 11:50:39 +08:00
likiosliu
227fb014d4 fix: add noopener to window.open call in AnnouncementToastProvider
Closes #939
2026-03-25 22:09:55 +08:00
Anish Sarkar
f8b0e946ce chore: ran linting 2026-03-07 04:46:48 +05:30
Eric Lammertsma
e157ac9985 feat: refactor announcements page and layout to support sidebar slide-out functionality
- Replaced the existing announcement card and empty state components with imports from the new announcements directory.
- Introduced state management for the announcements sidebar in the LayoutDataProvider.
- Updated navigation items to handle announcements sidebar toggling.
- Integrated AnnouncementsSidebar into the LayoutShell for both mobile and desktop views.
- Enhanced sidebar handling to improve user experience when navigating announcements.
2026-03-03 13:09:29 -05:00
DESKTOP-RTLN3BA\$punk
634f6f24bf chore: linting 2026-02-20 22:44:56 -08:00
Eric Lammertsma
f777142017 refactor: made announcements time-bound and added audiences
- Added startTime and endTime properties to announcements for time-bound visibility.
- Introduced audience targeting to control who sees announcements (all, users, web_visitors).
- Updated related components and hooks to support new announcement features.
- Removed unused state tracking for dismissed announcements to streamline functionality.
2026-02-19 18:34:49 -05:00
DESKTOP-RTLN3BA\$punk
e9979dfa7d feat: added announcements 2026-02-12 16:12:45 -08:00