Skip to content

fix: ability to stop and save running hidden worklogs#16

Merged
devdorn merged 1 commit into
mainfrom
fix-stop-hidden-ticket-worklog
Jun 15, 2026
Merged

fix: ability to stop and save running hidden worklogs#16
devdorn merged 1 commit into
mainfrom
fix-stop-hidden-ticket-worklog

Conversation

@devdorn

@devdorn devdorn commented Jun 15, 2026

Copy link
Copy Markdown
Owner

This pull request enhances the user experience when stopping a timer on a hidden Jira ticket. The main improvement is that stopping a hidden timer now also saves the worklog to Jira, ensures a minimum logged time, and provides user feedback for unusually long sessions. The UI is updated to reflect this change and to show a loading state during the save process.

Timer and Worklog Handling

  • Added a new handleStopHiddenTimer function that saves the worklog to Jira (using addWorklog), ensures at least 1 minute is logged, warns the user if the session exceeds 8 hours, and removes any draft description from local storage. (src/components/TicketList.tsx, src/components/TicketList.tsxR109-R135)
  • Updated the stop button for hidden tickets to trigger handleStopHiddenTimer, display a loading state while saving, and change the button label to "Stop & Save". (src/components/TicketList.tsx, src/components/TicketList.tsxL560-R594)

State Management

  • Introduced a new stoppingHidden state variable to manage the loading indicator for the stop button. (src/components/TicketList.tsx, src/components/TicketList.tsxR44)

Imports

@devdorn devdorn requested a review from Copilot June 15, 2026 08:59
@devdorn devdorn merged commit 83c756b into main Jun 15, 2026
1 of 2 checks passed
@devdorn devdorn deleted the fix-stop-hidden-ticket-worklog branch June 15, 2026 09:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants