Skip to content

Enable the specification of alert types when creating or editing an alert subscription#1858

Merged
kiahna-tucker merged 120 commits intomainfrom
kiahna-tucker/notifications/view-and-set-alert-types
Apr 9, 2026
Merged

Enable the specification of alert types when creating or editing an alert subscription#1858
kiahna-tucker merged 120 commits intomainfrom
kiahna-tucker/notifications/view-and-set-alert-types

Conversation

@kiahna-tucker
Copy link
Copy Markdown
Member

@kiahna-tucker kiahna-tucker commented Jan 13, 2026

Issues

The issues directly below are completely resolved by this PR:
#1859

Changes

1859

The following features are included in this PR:

  • Replace the alert_subscriptions, Supabase endpoints that power notification-related views on the Settings tab of the Admin page with their GraphQL counterparts.

  • Virtualize the Organization Notifications table on the Settings tab of the Admin page.

  • Add an Alert Types form field to the alert subscriptions dialogs, which share a root component.

  • Update the UX of the alert subscriptions dialogs to allow for the creation or edit of a single subscription.

  • Enable the deletion of an existing alert subscription via the Update Notification Methods (edit) dialog.

NOTE: Please see corresponding issue(s) for the outline of base requirements addressed by this PR.

Tests

Manually tested

Approaches to testing are as follows:

  • Validate that an alert subscription can be created, updated, and deleted in the client.

  • Validate that the alert types array of a new alert subscription will be defaulted if unspecified.

  • Validate that the contents of the Alert Types table cells can be expanded and scrolled in Chrome, Edge, and Firefox. This functionality must be tested in Safari before this PR can be merged.

Playwright tests ran locally

  • Admin
  • Captures
  • Collections
  • HomePage
  • Login
  • Materialization

Screenshots

Table

Organization Notifications table | Default

pr_screenshot-1858-alert_subscriptions-table-default

Organization Notifications table | With more than ten rows

pr_screenshot-1858-alert_subscriptions-table-scrollable
pr_screenshot-1858-alert_subscriptions-table-scrolled

Organization Notifications table | Row with alert types chip list expanded

pr_screenshot-1858-alert_subscriptions-table-alert_types_expanded

Dialog

Configure Notification Methods dialog | Administrator of one prefix | Opened

pr_screenshot-1858-alert_subscriptions-dialog-configure-default

Configure Notification Methods dialog | Administrator of multiple prefixes | Opened

pr_screenshot-1858-alert_subscriptions-dialog-configure-default-multi_prefix

Configure Notification Methods dialog | Error alert displayed

pr_screenshot-1858-alert_subscriptions-dialog-configure-error_gql

Update Notification Methods dialog | Opened

pr_screenshot-1858-alert_subscriptions-dialog-update-default

Alert Types field | Menu expanded

pr_screenshot-1858-alert_subscriptions-table-alert_types_expanded

Fallback error alert | Subscription creation or modification failed

pr_screenshot-1858-alert_subscriptions-dialog-configure-error

Fallback error alert | Subscription deletion failed

pr_screenshot-1858-alert_subscriptions-dialog-update-error_generic

@kiahna-tucker kiahna-tucker added the change:planned This is a planned change label Jan 13, 2026
Comment thread src/components/tables/PrefixAlerts/Rows.tsx Outdated
Comment thread src/components/shared/ChipList/Wrapper.tsx Outdated
Comment thread src/components/admin/Settings/PrefixAlerts/useModifyAlertSubscription.ts Outdated
Comment thread src/components/admin/Settings/PrefixAlerts/EmailSelector.tsx Outdated
Comment thread src/components/admin/Settings/PrefixAlerts/EmailSelector.tsx Outdated
Comment thread src/components/admin/Settings/PrefixAlerts/Dialog/index.tsx Outdated
Copy link
Copy Markdown
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kiahna-tucker kiahna-tucker merged commit a084b4d into main Apr 9, 2026
7 checks passed
@kiahna-tucker kiahna-tucker deleted the kiahna-tucker/notifications/view-and-set-alert-types branch April 9, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:planned This is a planned change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants