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

PersonaGeneration.tsx: 875 -> 357 LOC. Page now composes the data
hook + PersonaCard + PersonaEditor; bulk-import helpers stay in
helpers.ts; toast policy is the only UI concern left in the shell.
This commit is contained in:
2026-05-09 05:48:16 -04:00
parent c1a65bf9a3
commit ac64329a13
2 changed files with 34 additions and 552 deletions

View File

@@ -15,16 +15,16 @@ 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 5 (MazeNET trim): page shell down from 980 to 715 LOC
// (already partially modular; lifted fullscreen, topology data
// plane, and context-menu builder into focused hooks).
// 16 new tests. Suite: 37 files, 172 tests,
// 19.49% lines / 14.67% branches.
// 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.
thresholds: {
lines: 19,
lines: 20,
functions: 17,
branches: 14,
statements: 18,
branches: 16,
statements: 19,
},
},
},