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:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user