refactor(decnet_web/Webhooks): wire shell + bump coverage floor

Webhooks.tsx: 642 -> 387 LOC. Page now composes FormRow + SecretModal
+ useWebhooks hook; toast policy is the only UI concern left in the
shell. Multi-select delete uses the hook's reload internally.
This commit is contained in:
2026-05-09 06:04:14 -04:00
parent 7408a04a90
commit 31f4c54c32
2 changed files with 57 additions and 313 deletions

View File

@@ -15,16 +15,15 @@ export default defineConfig({
include: ['src/**/*.{ts,tsx}'],
exclude: ['src/**/*.d.ts', 'src/test/**', 'src/main.tsx'],
// Baseline floors. Each refactor PR raises these; never lower.
// Phase 6 (PersonaGeneration trim): page shell down from 875 to
// 357 LOC. Lifted helpers, PersonaCard, PersonaEditor, and a
// usePersonaGeneration data hook (GET/PUT, global + topology
// endpoints). 18 new tests. Suite: 40 files, 190 tests,
// 20.83% lines / 16.3% branches.
// Phase 7 (Webhooks trim): page shell down from 642 to 387 LOC.
// Lifted helpers, FormRow, SecretModal, and a useWebhooks data
// hook (CRUD + test endpoint). 17 new tests. Suite: 43 files,
// 207 tests, 21.69% lines / 16.51% branches.
thresholds: {
lines: 20,
functions: 17,
lines: 21,
functions: 18,
branches: 16,
statements: 19,
statements: 20,
},
},
},