Skip to content

fix: track cursor by resource ID across all list views#75

Merged
larkly merged 1 commit intomainfrom
worktree-groovy-humming-flamingo
Mar 29, 2026
Merged

fix: track cursor by resource ID across all list views#75
larkly merged 1 commit intomainfrom
worktree-groovy-humming-flamingo

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Mar 29, 2026

Summary

  • Cursor now follows the same resource by ID (or Name for keypairs) instead of staying at the same row index when lists auto-refresh, re-sort, or items are added/removed
  • Fixes disorienting cursor jumps during navigation when tick-refresh causes re-sorting, and when returning from detail views after deletion
  • Applied consistently across all 9 list views: serverlist, volumelist, routerlist, lblist, imagelist, keypairlist, floatingiplist, networklist, secgroupview

Test plan

  • Select a resource in any list, wait for auto-refresh tick, verify cursor stays on the same resource
  • Change sort column/direction, verify cursor follows the resource
  • Delete a resource from a detail view, verify cursor stays at a valid position
  • Filter the server list while cursor is on a resource, verify cursor tracks correctly

… views

Prevents the cursor from jumping to a different resource when lists
auto-refresh, re-sort, or when items are added/removed.
@larkly larkly force-pushed the worktree-groovy-humming-flamingo branch from 5f7ce40 to 371fada Compare March 29, 2026 00:27
@larkly larkly merged commit 0b7bf98 into main Mar 29, 2026
@larkly larkly deleted the worktree-groovy-humming-flamingo branch March 29, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant