chore: fix biome cognitive complexity warnings #287

Merged
xingyue merged 1 commits from chore/fix-biome-complexity-warnings into main 2026-05-16 10:40:28 +00:00
Owner

Summary

  • Resolves 7 Biome noExcessiveCognitiveComplexity warnings so bun run check completes without warnings.
  • Extracts helpers in dashboard (thread-detail, workflow-detail, workflow-graph/use-layout) and workflow-register descriptor validation; behavior unchanged.
  • Removes a forbidden non-null assertion on queue.shift() in graph layout.

Test plan

  • bun run check (tsc + biome + log tags)
  • Dashboard smoke: thread detail graph node click scroll/highlight
  • Dashboard smoke: workflow detail schema table and graph layout render correctly
## Summary - Resolves 7 Biome `noExcessiveCognitiveComplexity` warnings so `bun run check` completes without warnings. - Extracts helpers in dashboard (`thread-detail`, `workflow-detail`, `workflow-graph/use-layout`) and `workflow-register` descriptor validation; behavior unchanged. - Removes a forbidden non-null assertion on `queue.shift()` in graph layout. ## Test plan - [x] `bun run check` (tsc + biome + log tags) - [ ] Dashboard smoke: thread detail graph node click scroll/highlight - [ ] Dashboard smoke: workflow detail schema table and graph layout render correctly
scottwei added 1 commit 2026-05-16 10:33:23 +00:00
Refactor dashboard graph/schema helpers and descriptor role validation
into smaller functions so bun run check passes without warnings.

Co-authored-by: Cursor <cursoragent@cursor.com>
xingyue merged commit 9584a86fb7 into main 2026-05-16 10:40:28 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#287