gsxdsm
e57db86a5c
FN-6029: restore board drop-check regression coverage
Restore Board drag-drop pre-check coverage by extracting the decision logic into a reusable helper.
- extract Board canDropTask rejection logic into a shared helper used by the component
- replace Lane-mocking coverage with direct helper tests for workflow, column, and capacity branches
- add regression cases for missing workflows, default-workflow fallback, same-column WIP drops, and cross-workflow occupancy handling
Files changed:
packages/dashboard/app/components/Board.tsx | 37 +--
.../__tests__/Board.canDropTask.test.tsx | 261 ++++++++++++---------
.../dashboard/app/components/boardCanDropTask.ts | 56 +++++
3 files changed, 218 insertions(+), 136 deletions(-)
Fusion-Task-Id: FN-6029
Fusion-Task-Lineage: cd71bbc5-0f97-49c3-9eef-0dd8221341c0
2026-06-08 13:32:58 -07:00
..
2026-06-08 10:33:17 -07:00
2026-05-31 20:05:32 -07:00
2026-06-08 13:32:58 -07:00
2026-06-08 13:32:58 -07:00
2026-06-07 23:12:04 -07:00
2026-05-31 20:05:32 -07:00
2026-06-08 13:32:58 -07:00
2026-06-06 06:59:25 -07:00
2026-05-31 20:05:32 -07:00
2026-05-31 20:05:32 -07:00
2026-05-28 21:23:48 -07:00
2026-06-07 23:56:25 -07:00