fix(dashboard): Dashboard cards jump around during refresh (IW-175) #179
No reviewers
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!179
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-175"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes dashboard cards jumping around during auto-refresh, which caused users to accidentally click the wrong card when the UI updated mid-interaction.
Root cause: Cards were sorted by
lastSeenAttimestamp, which changed on every refresh cycle.Solution: Sort cards by Issue ID (alphabetical) for stable, predictable ordering.
Changes
Phase 1: Stable card positions during auto-refresh
listByActivitywithlistByIssueIdin ServerStatePhase 2: New worktrees appear at predictable location
findPredecessorhelper for positional insertiongenerateAdditionOobto use HTMXafterbegin/afterendfor correct placementPhase 3: Removed worktrees shift remaining cards predictably
Test Plan
Files Changed
.iw/core/model/ServerState.scalalistByIssueIdmethod.iw/core/test/ServerStateTest.scala.iw/core/test/WorktreeListSyncTest.scala🤖 Generated with Claude Code