ghostguild-org/tests/server/api
Jennie Robinson Faber 92e7dae74c
Some checks failed
Test / vitest (push) Successful in 11m48s
Test / playwright (push) Failing after 9m50s
Test / visual (push) Failing after 9m19s
Test / Notify on failure (push) Successful in 2s
feat(admin): add restore dismissed alerts flow
Admins can now surface dismissed alert types without waiting for the
underlying data to change. Adds a collapsible "Restore dismissed"
section below the active alerts with per-type checkboxes.

- ALERT_METADATA map in adminAlerts.js as the single source of truth
  for slug → title/severity; detectors refactored to reference it
- GET /api/admin/alerts/dismissed returns this admin's dismissals
  joined with metadata (title, severity, dismissedAt)
- POST /api/admin/alerts/restore deletes dismissals by alertType[],
  returns the deleted count
- AdminAlertsPanel fetches both active + dismissed; stays visible
  when either is non-empty; checkboxes + "Restore selected" button
- adminAlertRestoreSchema validates the POST body against the enum
- Auth guards test covers both new routes
2026-04-08 12:22:35 +01:00
..
admin-alerts.test.js feat(admin): add restore dismissed alerts flow 2026-04-08 12:22:35 +01:00
admin-auth-guards.test.js feat(admin): add restore dismissed alerts flow 2026-04-08 12:22:35 +01:00
admin-role-patch.test.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00
auth-login.test.js feat: add testing infrastructure — Vitest, Playwright, CI, git hooks 2026-04-04 16:07:21 +01:00
auth-verify.test.js feat: add testing infrastructure — Vitest, Playwright, CI, git hooks 2026-04-04 16:07:21 +01:00
dev-endpoints.test.js merge: worktree-a11y-fixes into main 2026-04-05 22:05:00 +01:00
event-registration.test.js feat: add testing infrastructure — Vitest, Playwright, CI, git hooks 2026-04-04 16:07:21 +01:00
helcim-auth.test.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00
helcim-payment.test.js feat: add testing infrastructure — Vitest, Playwright, CI, git hooks 2026-04-04 16:07:21 +01:00
helcim-subscription.test.js feat: add testing infrastructure — Vitest, Playwright, CI, git hooks 2026-04-04 16:07:21 +01:00
members-create-response.test.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00
members-create.test.js Huge bunch of UI/UX improvements and tweaks! 2026-04-06 16:17:12 +01:00
members-profile-patch.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
upload-image.test.js feat: add testing infrastructure — Vitest, Playwright, CI, git hooks 2026-04-04 16:07:21 +01:00
validation-phase3.test.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00
validation.test.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00