Signed-off-by: Seongmin Lee git@boltless.me
+5
appview/models/notifications.go
+5
appview/models/notifications.go
···
20
NotificationTypeIssueReopen NotificationType = "issue_reopen"
21
NotificationTypePullClosed NotificationType = "pull_closed"
22
NotificationTypePullReopen NotificationType = "pull_reopen"
23
)
24
25
type Notification struct {
···
63
return "git-pull-request-create"
64
case NotificationTypeFollowed:
65
return "user-plus"
66
default:
67
return ""
68
}
···
113
return prefs.PullCreated // same pref for now
114
case NotificationTypeFollowed:
115
return prefs.Followed
116
default:
117
return false
118
}
···
20
NotificationTypeIssueReopen NotificationType = "issue_reopen"
21
NotificationTypePullClosed NotificationType = "pull_closed"
22
NotificationTypePullReopen NotificationType = "pull_reopen"
23
+
NotificationTypeUserMentioned NotificationType = "user_mentioned"
24
)
25
26
type Notification struct {
···
64
return "git-pull-request-create"
65
case NotificationTypeFollowed:
66
return "user-plus"
67
+
case NotificationTypeUserMentioned:
68
+
return "message-square"
69
default:
70
return ""
71
}
···
116
return prefs.PullCreated // same pref for now
117
case NotificationTypeFollowed:
118
return prefs.Followed
119
+
case NotificationTypeUserMentioned:
120
+
return true // always notify on mention
121
default:
122
return false
123
}
+2
appview/pages/templates/notifications/fragments/item.html
+2
appview/pages/templates/notifications/fragments/item.html
History
14 rounds
1 comment
boltless.me
submitted
#13
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
pull request successfully merged
boltless.me
submitted
#12
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#11
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#10
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
1/3 failed, 2/3 running
expand
collapse
expand 0 comments
boltless.me
submitted
#9
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
1/3 failed, 2/3 timeout
expand
collapse
expand 0 comments
boltless.me
submitted
#8
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#7
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#6
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#5
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#4
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#3
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
1/3 failed, 1/3 timeout, 1/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#2
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
1/3 failed, 2/3 timeout
expand
collapse
expand 0 comments
boltless.me
submitted
#1
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 1 comment
boltless.me
submitted
#0
1 commit
expand
collapse
appview/models: add
NotificationTypeUserMentioned notif type
Signed-off-by: Seongmin Lee <git@boltless.me>
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.