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
|
|
@ -13,6 +13,27 @@ import type { Announcement } from "@/contracts/types/announcement.types";
|
|||
* This file can be replaced with an API call in the future.
|
||||
*/
|
||||
export const announcements: Announcement[] = [
|
||||
{
|
||||
id: "2026-05-31-ai-automations",
|
||||
title: "Introducing AI Automations",
|
||||
description:
|
||||
"Turn prompts into hands-off AI agent workflows. Describe an automation in plain English and SurfSense builds it, run it on a schedule, or trigger it the moment a document lands in a folder. Automations work across Notion, Slack, Google Drive, Gmail, GitHub, Linear, Jira and more.",
|
||||
category: "feature",
|
||||
date: "2026-05-31T00:00:00Z",
|
||||
startTime: "2026-05-31T00:00:00Z",
|
||||
endTime: "2026-07-15T00:00:00Z",
|
||||
audience: "users",
|
||||
isImportant: true,
|
||||
spotlight: true,
|
||||
image: {
|
||||
src: "/announcements/automations.png",
|
||||
alt: "Connector tiles flowing into a central AI core that triggers scheduled and event-driven automations.",
|
||||
},
|
||||
link: {
|
||||
label: "See what's new",
|
||||
url: "/changelog",
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "announcement-1",
|
||||
title: "Introducing What's New",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue