Skip to content

fix(tasks): use uuid instead of id for dialog open condition#272

Merged
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:fix/271-dialog-flicker-issue
Dec 12, 2025
Merged

fix(tasks): use uuid instead of id for dialog open condition#272
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:fix/271-dialog-flicker-issue

Conversation

@ShivaGupta-14
Copy link
Copy Markdown
Contributor

Description

Taskwarrior assigns id=0 to all completed and deleted tasks since they are removed from the active task list. Using task.id for the dialog's open condition caused multiple dialogs to open simultaneously when clicking on any non-pending task, resulting in flickering and blackout.

Replaced _selectedTask?.id === task.id with
_selectedTask?.uuid === task.uuid since uuid is unique for every task regardless of status.

Fixes: #271

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

Video:

Screen.Recording.2025-12-12.at.2.41.55.AM.mov

Taskwarrior assigns id=0 to all completed and deleted tasks since they
are removed from the active task list. Using task.id for the dialog's
open condition caused multiple dialogs to open simultaneously when
clicking on any non-pending task, resulting in flickering and blackout.

Replaced _selectedTask?.id === task.id with
_selectedTask?.uuid === task.uuid since uuid is unique for every
task regardless of status.

Fixes: CCExtractor#271
@github-actions
Copy link
Copy Markdown

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

@its-me-abhishek its-me-abhishek merged commit 1504ede into CCExtractor:main Dec 12, 2025
5 checks passed
@ShivaGupta-14 ShivaGupta-14 deleted the fix/271-dialog-flicker-issue branch December 12, 2025 16:23
ShivaGupta-14 added a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
…ctor#272)

Taskwarrior assigns id=0 to all completed and deleted tasks since they
are removed from the active task list. Using task.id for the dialog's
open condition caused multiple dialogs to open simultaneously when
clicking on any non-pending task, resulting in flickering and blackout.

Replaced _selectedTask?.id === task.id with
_selectedTask?.uuid === task.uuid since uuid is unique for every
task regardless of status.

Fixes: CCExtractor#271
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.

Task dialog flickers/blacks out when opening completed or deleted tasks

2 participants