Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(sidebar): mark channels as done or read from sidebar ctx menu (#2919)
Seamus73411606d5fc
diff --git a/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsx b/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsxindex 579172c975..018e97d3d5 100644--- a/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsx+++ b/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsx@@ -119,6 +119,7 @@ function ChannelGroupItem(props: {isSlim?: boolean;channelLetters?: string;}) {+ const notificationSource = useGlobalNotificationSource();const [isVisible, setIsVisible] = createSignal(!props.animate);onMount(() => {@@ -165,6 +166,14 @@ function ChannelGroupItem(props: {navigateToLatestNotification(true);};+ const markAllAsDone = () => {+ void notificationSource.bulkMarkAsDone(props.group.notifications);+ };++ const markAllAsRead = () => {+ void notificationSource.bulkMarkAsRead(props.group.notifications);+ };+const _openFullscreen = () => {const { params } = getChannelNotificationParams(latestNotification());globalSplitManager()?.createPopoverSplit({@@ -259,6 +268,8 @@ function ChannelGroupItem(props: {{/* FIXME: this doesn't work yet */}{/* <MenuItem text="Open fullscreen" onClick={openFullscreen} /> */}<MenuItem text="Open in current split" onClick={openInCurrentSplit} />+ <MenuItem text="Mark all as read" onClick={markAllAsRead} />+ <MenuItem text="Mark all as done" onClick={markAllAsDone} /></ContextMenuContent></ContextMenu.Portal></ContextMenu>