gitea/services/issue
Junsik Kong 0e629c545a
fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818)
This PR fixes a state de-synchronization bug with the issue stopwatch,
it resolves the issue by replacing the ambiguous `/toggle` endpoint
with two explicit endpoints: `/start` and `/stop`.

- The "Start timer" button now exclusively calls the `/start` endpoint.
- The "Stop timer" button now exclusively calls the `/stop` endpoint.

This ensures the user's intent is clearly communicated to the server,
eliminating the state inconsistency and fixing the bug.

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-25 07:22:58 +08:00
..
assignee.go Fix team permissions (#34827) 2025-06-24 21:24:09 +08:00
assignee_test.go Performance improvements for pull request list API (#30490) 2024-05-31 12:10:11 +00:00
comments.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
commit.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
commit_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2023-09-14 02:59:53 +00:00
content.go Prevent simultaneous editing of comments and issues (#31053) 2024-05-27 15:34:18 +00:00
issue.go Fix doctor deleting orphaned issues attachments (#34142) 2025-05-30 05:06:03 +00:00
issue_test.go Fix doctor deleting orphaned issues attachments (#34142) 2025-05-30 05:06:03 +00:00
label.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
label_test.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
main_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
milestone.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
milestone_test.go demilestone should not include milestone (#32923) 2024-12-25 05:52:46 +00:00
pull.go Fix wrong review requests when updating the pull request (#34286) 2025-04-28 22:57:56 +00:00
reaction.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
reaction_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
status.go fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818) 2025-06-25 07:22:58 +08:00
suggestion.go Rework suggestion backend (#33538) 2025-02-10 16:24:05 +00:00
suggestion_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
template.go refactor: remove redundant err declarations (#32381) 2024-10-30 19:36:24 +00:00