mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
feat(announcements): enhance AnnouncementCard and add spotlight feature
- Added image support to the AnnouncementCard component for improved visual presentation of announcements. - Introduced a spotlight feature in the announcement types to allow critical announcements to be displayed in a blocking dialog until acknowledged. - Updated AnnouncementToastProvider to skip spotlight announcements to prevent duplicate notifications. - Included a new AI automation announcement with an image in the announcements data for demonstration purposes.
This commit is contained in:
parent
0ae30839aa
commit
ec0342faa2
7 changed files with 154 additions and 2 deletions
|
|
@ -35,6 +35,20 @@ export interface Announcement {
|
|||
audience: AnnouncementAudience;
|
||||
/** If true, the user will see a toast notification for this announcement */
|
||||
isImportant: boolean;
|
||||
/**
|
||||
* If true, this announcement is shown in a blocking spotlight dialog that the
|
||||
* user must explicitly acknowledge ("Got it"). Until acknowledged it keeps
|
||||
* reappearing; once acknowledged it never shows again. Spotlight announcements
|
||||
* are skipped by the lightweight toast provider to avoid double notifications.
|
||||
*/
|
||||
spotlight?: boolean;
|
||||
/** Optional head/banner image shown at the top of the announcement */
|
||||
image?: {
|
||||
/** Image source (public path or absolute URL) */
|
||||
src: string;
|
||||
/** Accessible alt text */
|
||||
alt: string;
|
||||
};
|
||||
/** Optional CTA link */
|
||||
link?: {
|
||||
label: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue