refactor(breadcrumbs): remove stale /newappeal inline no-op branch

This commit is contained in:
2026-04-09 15:22:36 +01:00
parent 61254e3942
commit 7d195ad906
3 changed files with 31 additions and 2 deletions
+25
View File
@@ -887,6 +887,31 @@ Follow-ups:
- Closure slice 3: resolve and guard remaining `/newappeal` inline edge branch treatment.
### CL-22541-Z3: breadcrumbs closure slice 3 — remove lingering `/newappeal` no-op inline branch
date: 2026-04-09
author: Cline
scope: `components/breadcrumbs.js`, `tests/phase22/breadcrumbs-route-map-structure.test.cjs`
type: change
rationale: Execute closure slice 3 by resolving the remaining inline `/newappeal` edge branch (a no-op render guard) and locking its removal with explicit structure coverage.
impact: Refactor/test hardening only; no runtime route/auth/session/API/EN-CY/a11y behavior change.
status: completed
Summary:
- Removed lingering no-op branch from breadcrumbs JSX:
- deleted `{isPath("/newappeal") && <></>}`
- Added structure guard assertion that `/newappeal` inline branch is absent.
Validation:
- `node tests/phase22/breadcrumbs-route-map-structure.test.cjs` -> pass (4/4).
- `node tests/phase22/index.test.cjs` -> pass (combined suite).
Follow-ups:
- Breadcrumb route-state extraction closure slices (1/2/3) complete.
### CL-00X: 22500 `components/elements/index.js` Phase 1 helper extraction
date: 2026-04-07