Skip to content

Conversation

@ssncferreira
Copy link
Contributor

Related to PR: #20900

(cherry picked from commit f8d9a80)

Users may not realize that task notifications are disabled by default.
To improve awareness, we show a warning alert on the Tasks page when all
task notifications are disabled.

**Alert visibility logic:**
- Shows when **all** task notification templates (Task Working, Task
Idle, Task Completed, Task Failed) are disabled
- Can be dismissed by the user, which stores the dismissal in the user
preferences API
- If the user later enables any task notification in Account Settings,
the dismissal state is cleared so the alert will show again if they
disable all notifications in the future

<img width="2980" height="1588" alt="Screenshot 2025-11-25 at 17 48 17"
src="/api/flow.js?q=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F%253Ca%2520href%3D"https://github.com/user-attachments/assets/316bf097-d9d2-4489-bc16-2987ba45f45c">https://github.com/user-attachments/assets/316bf097-d9d2-4489-bc16-2987ba45f45c"
/>

- Added a warning alert to the Tasks page when all task notifications
are disabled
- Introduced new `/users/{user}/preferences` endpoint to manage user
preferences (stored in `user_configs` table)
- Alert is dismissible and stores the dismissal state via the new user
preferences API endpoint
- Enabling any task notification in Account Settings clears the
dismissal state via the preferences API
- Added comprehensive Storybook stories for both TasksPage and
NotificationsPage to test all alert visibility states and interactions

Closes: coder/internal#1089
(cherry picked from commit f8d9a80)
@ssncferreira ssncferreira added the cherry-pick/v2.29 Needs to be cherry-picked to the 2.29 release branch label Nov 28, 2025
@david-fraley david-fraley merged commit 0bd0990 into release/2.29 Dec 1, 2025
35 of 39 checks passed
@david-fraley david-fraley deleted the ssncferreira/2.29-backport-20900 branch December 1, 2025 20:08
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cherry-pick/v2.29 Needs to be cherry-picked to the 2.29 release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants