Monorepo for Tangled tangled.org

appview/models: add NotificationTypeUserMentioned notif type #737

merged opened by boltless.me targeting master from feat/mentions
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m4jbido5pf22
+7
Diff #13
+5
appview/models/notifications.go
··· 20 20 NotificationTypeIssueReopen NotificationType = "issue_reopen" 21 21 NotificationTypePullClosed NotificationType = "pull_closed" 22 22 NotificationTypePullReopen NotificationType = "pull_reopen" 23 + NotificationTypeUserMentioned NotificationType = "user_mentioned" 23 24 ) 24 25 25 26 type Notification struct { ··· 63 64 return "git-pull-request-create" 64 65 case NotificationTypeFollowed: 65 66 return "user-plus" 67 + case NotificationTypeUserMentioned: 68 + return "at-sign" 66 69 default: 67 70 return "" 68 71 } ··· 113 116 return prefs.PullCreated // same pref for now 114 117 case NotificationTypeFollowed: 115 118 return prefs.Followed 119 + case NotificationTypeUserMentioned: 120 + return true // always notify on mention 116 121 default: 117 122 return false 118 123 }
+2
appview/pages/templates/notifications/fragments/item.html
··· 54 54 reopened a pull request 55 55 {{ else if eq .Type "followed" }} 56 56 followed you 57 + {{ else if eq .Type "user_mentioned" }} 58 + mentioned you 57 59 {{ else }} 58 60 {{ end }} 59 61 {{ end }}

History

14 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
1/3 failed, 2/3 running
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
1/3 failed, 1/3 timeout, 1/3 success
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 1 comment

can i suggest that we use the https://lucide.dev/icons/at-sign icon?

additionally: why not introduce a preference for mentions? users could choose to ignore mentions if need be.

1 commit
expand
appview/models: add NotificationTypeUserMentioned notif type
3/3 success
expand
expand 0 comments