Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(web): exclude anon_view from notification filter tabs
Richie McIlroyf4d6cff9eb09
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts b/apps/web/app/(org)/dashboard/_components/Notifications/Filter.tsindex 148578bc2..8e0955826 100644--- a/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts+++ b/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts@@ -1,6 +1,8 @@-import type { NotificationType } from "@/lib/Notification";+import type { Notification } from "@cap/web-api-contract";-export type FilterType = "all" | NotificationType;+type NotificationType = Notification["type"];++export type FilterType = "all" | Exclude<NotificationType, "anon_view">;export const Filters: Array<FilterType> = ["all",@@ -16,7 +18,6 @@ export const FilterLabels: Record<FilterType, string> = {reply: "Replies",view: "Views",reaction: "Reactions",- anon_view: "Views",};export const matchNotificationFilter = (