chore: keep notification provider type lists in one place

Aberta
#2,133 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@Wikid82 já está trabalhando nisso.

Desde 3/12/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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).

Linguagem predominante
Go
Estrelas
17
Forks
2
Merge médio
1h 42min
PRs com merge (30d)
173

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Wikid82/Charon

Todas as issues de Wikid82/Charon

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.