Skip to content

fix: use task uuid for row DOM IDs so hotkeys target the selected row - #485

Open
deev-narayan wants to merge 1 commit into
CCExtractor:mainfrom
deev-narayan:fix/duplicate-id-hotkeys
Open

deev-narayan wants to merge 1 commit into
CCExtractor:mainfrom
deev-narayan:fix/duplicate-id-hotkeys

Conversation

@deev-narayan

@deev-narayan deev-narayan commented Dec 3, 2026 •

Copy link
Copy Markdown

Description

  • Fixes: #(replace_with_the_issue_fixed)

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

@deev-narayan deev-narayan left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a bug where opening a task could sometimes show the wrong one when multiple tasks had the same ID (for example, two completed tasks with ID 0).

The issue was caused by the way the selected task was identified. When pressing Enter, c, or d, the app could pick the first matching row instead of the one actually highlighted.

I've fixed this by using each task's unique UUID instead of its numeric ID. This ensures the correct task is selected every time.

Also included:

  • Added regression tests to prevent this issue from happening again.
  • Updated existing tests to use the new UUID-based row IDs.
  • Verified that the Tasks test suite passes locally.

To test it: Load two completed tasks with ID 0, highlight the second one using ArrowDown, and press Enter or d. The second task should now open correctly.

This branch has not been deployed

No deployments
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