chore: keep notification provider type lists in one place

Open
#2,133 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Wikid82 is already working on this.

Since Dec 3, 2026.

Assessment

This issue has not been assessed yet.

Description

backend frontend low

What

The list of provider types that use JSON templates is kept by hand in two places that differ: frontend/src/pages/Notifications.tsx:23-28 (supportsJSONTemplates, eight types) and backend/internal/services/notification_service.go:139-146 (same eight plus generic). The frontend supported-type list (SUPPORTED_NOTIFICATION_PROVIDER_TYPES) is likewise separate from the backend's isSupportedNotificationProviderType.

Severity

Low (maintenance: a new provider type has to be added in several places).

Suggested approach

Derive the frontend checks from one exported constant (or serve the lists from the backend), and add a test that keeps frontend and backend lists in step.

Found while planning the notification delivery fix (#2103, #2104, #2101).

Dominant language
Go
Stars
17
Forks
2
Avg merge
1h 42m
Merged PRs (30d)
173

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Wikid82/Charon

All issues in Wikid82/Charon

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.