Commit Graph

2 Commits

Author SHA1 Message Date
Kelly Yang
22d32fee8c fix: address review feedback on TabSubgraphInputs drag-and-drop
- Fix stale index closures after reorder: watch promotionEntries and
  re-register drag handlers via nextTick so consecutive drags pass
  correct fromIndex/toIndex to movePromotion
- Replace `as number` type assertion with typeof guard per project guidelines
- Tighten cleanup test assertion to toHaveBeenCalledTimes(2) to verify
  both registered handlers are disposed on unmount
2026-04-20 21:12:22 -07:00
Kelly Yang
c3ef748119 test: add component tests for TabSubgraphInputs drag-and-drop setup
Covers the pragmatic-dnd integration added in the previous commit:
attach handlers per item on mount, cleanup on unmount, movePromotion
on drop, and no-op when dropping onto the same item.
2026-04-16 18:21:59 -07:00