Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

appview/settings: show warning when no verified email for notifications

author
Anirudh Oppiliappan
committer
Tangled
date (Jul 22, 2026, 1:01 PM +0300) commit 06e571c2 parent df61e385 change-id xlnmuumz
+13 -3
+7 -1
appview/pages/templates/user/settings/notifications.html
··· 160 160 <div class="flex flex-col gap-1"> 161 161 <span class="font-bold">Email notifications</span> 162 162 <div class="flex text-sm items-center gap-1 text-gray-500 dark:text-gray-400"> 163 - <span>Receive notifications via email in addition to in-app notifications.</span> 163 + <span>Receive digest emails for issue and pull request activity.</span> 164 164 </div> 165 + {{ if not .HasVerifiedEmail }} 166 + <div class="flex text-sm items-center gap-1 text-amber-600 dark:text-amber-400 mt-1"> 167 + {{ i "triangle-alert" "w-3.5 h-3.5 shrink-0" }} 168 + <span>You need a <a href="/settings/emails" class="underline">verified email address</a> to receive email notifications.</span> 169 + </div> 170 + {{ end }} 165 171 </div> 166 172 </div> 167 173 <label class="flex items-center gap-2">
+6 -2
appview/settings/settings.go
··· 290 290 return 291 291 } 292 292 293 + primaryEmail, emailErr := db.GetPrimaryEmail(s.Db, did) 294 + hasVerifiedEmail := emailErr == nil && primaryEmail.Verified 295 + 293 296 s.Pages.UserNotificationSettings(w, pages.UserNotificationSettingsParams{ 294 - BaseParams: pages.BaseParamsFromContext(r.Context()), 295 - Preferences: prefs, 297 + BaseParams: pages.BaseParamsFromContext(r.Context()), 298 + Preferences: prefs, 299 + HasVerifiedEmail: hasVerifiedEmail, 296 300 }) 297 301 } 298 302