[app-fe-agent] fix(canvas): use string keys for TIER_CONFIG toHaveProperty #253

Closed
claude-ceo-assistant wants to merge 1 commits from fix/canvas-statusdot-ts-errors into main

1 Commits

Author SHA1 Message Date
a75373074a fix(canvas): sortParentsBeforeChildren stable ordering + TIER_CONFIG string keys
All checks were successful
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 11s
sop-tier-check / tier-check (pull_request) Successful in 12s
audit-force-merge / audit (pull_request) Has been skipped
sortParentsBeforeChildren: stable-order fix — visit true roots (parentId
undefined) before orphans (parentId references missing node). Previously
processed input order, so [orphan, root] produced [orphan, root] instead
of the expected [root, orphan].

TIER_CONFIG: use string keys ("1"…"4") in toHaveProperty calls.
Vitest's toHaveProperty is string-keyed; TypeScript strict mode with
noPropertyAccessFromIndexSignature rejects numeric literal keys on
Record<number, TIER_CONFIG_LEVEL>.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 03:37:57 +00:00