about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-04-21 12:07:55 -0500
committerGitHub <noreply@github.com>2025-04-21 12:07:55 -0500
commit0278c7a0b4827dc6f49a622233737b61c28bb27f (patch)
treee142770300f6e465f40071defb26e92bf347ba4b /src
parenta091def51205ceb53821442cebe4b9615e581252 (diff)
downloadvoidsky-0278c7a0b4827dc6f49a622233737b61c28bb27f.tar.zst
Make notifications clickable (#8251)
Diffstat (limited to 'src')
-rw-r--r--src/state/queries/notifications/types.ts8
-rw-r--r--src/view/com/notifications/NotificationFeedItem.tsx8
2 files changed, 10 insertions, 6 deletions
diff --git a/src/state/queries/notifications/types.ts b/src/state/queries/notifications/types.ts
index c96374eb8..b3a972394 100644
--- a/src/state/queries/notifications/types.ts
+++ b/src/state/queries/notifications/types.ts
@@ -1,7 +1,7 @@
 import {
-  AppBskyFeedDefs,
-  AppBskyGraphDefs,
-  AppBskyNotificationListNotifications,
+  type AppBskyFeedDefs,
+  type AppBskyGraphDefs,
+  type AppBskyNotificationListNotifications,
 } from '@atproto/api'
 
 export type NotificationType =
@@ -44,6 +44,8 @@ type OtherNotificationType =
   | 'quote'
   | 'follow'
   | 'feedgen-like'
+  | 'verified'
+  | 'unverified'
   | 'unknown'
 
 type FeedNotificationBase = {
diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx
index 1de0b67b3..a30aba7d8 100644
--- a/src/view/com/notifications/NotificationFeedItem.tsx
+++ b/src/view/com/notifications/NotificationFeedItem.tsx
@@ -102,7 +102,11 @@ let NotificationFeedItem = ({
         const urip = new AtUri(item.subjectUri)
         return `/profile/${urip.host}/post/${urip.rkey}`
       }
-    } else if (item.type === 'follow') {
+    } else if (
+      item.type === 'follow' ||
+      item.type === 'verified' ||
+      item.type === 'unverified'
+    ) {
       return makeProfileLink(item.notification.author)
     } else if (item.type === 'reply') {
       const urip = new AtUri(item.notification.uri)
@@ -390,7 +394,6 @@ let NotificationFeedItem = ({
         <StarterPack width={30} gradient="sky" />
       </View>
     )
-    // @ts-ignore TODO
   } else if (item.type === 'verified') {
     a11yLabel = hasMultipleAuthors
       ? _(
@@ -416,7 +419,6 @@ let NotificationFeedItem = ({
       <Trans>{firstAuthorLink} verified you</Trans>
     )
     icon = <VerifiedCheck size="xl" />
-    // @ts-ignore TODO
   } else if (item.type === 'unverified') {
     a11yLabel = hasMultipleAuthors
       ? _(