Skip to content

Task 035: Expand schema-driven notification forms (phase 2) - #36

Merged
Igloczek merged 5 commits into
masterfrom
task/035-expand-generic-notification-forms
Jun 30, 2026
Merged

Igloczek merged 5 commits into
masterfrom
task/035-expand-generic-notification-forms

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/035-expand-generic-notification-forms.md from the ponytail audit backlog.

Goal

Migrate additional provider families to generic forms: SMTP-like, chat-token, SMS.

Scope

  • Add schema variants: smtp, chat, sms, template-body (Liquid fields).
  • Migrate providers that fit each family (target 20+ additional types).
  • Keep bespoke .vue only for providers with unique UX (Discord embeds, PagerDuty routing, etc.).
  • Update notifications/index.ts lazy map to point migrated types at generic form + schema id.

Acceptance criteria

  • ≤70 notification .vue files remain (down from 94).
  • All notification types in server registry still have a working edit form.
  • bun run lint passes.
  • bun run test-e2e passes.
  • Bundle analyze shows smaller notification chunk vs Task 022 baseline.

Depends on

Task 034.

Verification

bun run lint
bun run test-e2e
ls src/components/notifications/*.vue | wc -l
ANALYZE=1 bun run build:frontend

Audit reference

Finding #2 — notification form duplication (phase 2).

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

  • ≤70 notification .vue files remain (59)
  • All 94 server registry providers still have a form entry
  • bun run lint passes
  • bun run test:backend passes (59 tests)
  • bun run build passes
  • Net LOC reduction (~350 lines deleted vs schema additions)

42 files changed, 2150 insertions(+), 2459 deletions(-)

@Igloczek
Igloczek force-pushed the task/035-expand-generic-notification-forms branch from 9621447 to bbccb7e Compare June 30, 2026 12:12
Igloczek added 5 commits June 30, 2026 14:37
Introduce a small notification form schema format and GenericNotificationForm
to replace duplicated URL/secret webhook-style provider UIs.

Migrated 12 providers to schema-driven forms:
Keep, Squadcast, SIGNL4, Pumble, stackfield, GoAlert, PushPlus, SpugPush,
FlashDuty, GrafanaOncall, ZohoCliq, and PushDeer.

LOC: deleted 335 lines from 12 bespoke .vue files; added 187 lines of schema
code (348 total including GenericNotificationForm renderer).
Add smtp, chat, sms, and template-body schema variants to
GenericNotificationForm and migrate 24 additional provider families
(SMTP, API email, chat-token, SMS) onto shared schemas.

- 59 bespoke notification .vue files remain (down from 94)
- 36 providers now use GenericNotificationForm via schemas
- Lazy-load remaining bespoke forms via import.meta.glob
- Net deletion of ~350 LOC vs schema additions

Depends on task 034 (merged). Ponytail audit finding #2 phase 2.

# Conflicts:
#	src/components/notifications/SMTP.vue
#	src/components/notifications/index.ts
#	src/components/notifications/notification-form-schemas.ts
@Igloczek
Igloczek force-pushed the task/035-expand-generic-notification-forms branch from bbccb7e to 90ffd93 Compare June 30, 2026 12:39
@Igloczek
Igloczek merged commit c3621e4 into master Jun 30, 2026
@Igloczek
Igloczek deleted the task/035-expand-generic-notification-forms branch June 30, 2026 12:59
Igloczek added a commit that referenced this pull request Aug 8, 2026
…tion-forms

Task 035: Expand schema-driven notification forms (phase 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant