Skip to content

Start a Timer From the Redmine Issue Page - #595

Merged
SarkarShubhdeep merged 2 commits into
fix/redmine-pin-limit-messagefrom
feat/redmine-issue-page-timer-594
Sep 29, 2026
Merged

SarkarShubhdeep merged 2 commits into
fix/redmine-pin-limit-messagefrom
feat/redmine-issue-page-timer-594

Conversation

@SarkarShubhdeep

Copy link
Copy Markdown
Collaborator

Closes #594

What

The Redmine issue page (/app/tickets/redmine/:id) gets a Start timer / Stop timer button in its header.

  • Start does what a start from the search suggestions does: if the issue isn't in your Tickets table it's pinned there, it's added to My Board if it isn't already on it, and the timer starts. Same toasts as the suggestions: "…and added to My Board", "…It's on My Board", or the pin-limit warning (Say When the Redmine Pin Limit Keeps an Issue Off the Table #588).
  • Stop timer shows while this issue's timer is running, however it was started. It follows the live running timer (useRunningTicket).
  • Clocked out: the server refuses the start and the page shows "Clock in to start a ticket timer." There is deliberately no clock-in prompt here. That flow is being fixed in Fix the Clock-In and Ticket Timer Flow From Start to Clock-Out #586, which will cover this page too.
  • After a start or stop, the page's Activity picks up the new session.

How

  • The pin → My Board → start steps move out of TicketsPage into src/features/tickets/startTicketTimer.ts, along with timerErrorMessage, the outcome type (was SuggestionTimerOutcome) and the outcome toast. TicketsPage, the suggestions and the issue page all call it; nothing is copied.
  • The issue page counts the issue as "already in the table" when it's assigned to you. It can't see watched issues, but pinning an already-shown issue is harmless: the server's pin is idempotent per issue.
  • TimerToggleButton takes an optional visible label for roomier spots like a page header. Existing icon-only uses are unchanged.

Stacked

Based on #588 (fix/redmine-pin-limit-message), which adds the pin-limit outcome this uses. Retarget to redmine-mvp2-part-b once #588 merges.

Testing

  • Unit: startTicketTimer.test.ts (13 tests): every outcome, pin cap, non-cap pin failure, board-add failure, refused start.
  • E2E (redmine/issue-detail.spec.ts): start and stop from the header; an issue not in the table gets pinned and added to My Board; pin limit; clocked out.
  • Re-ran redmine/search-suggestions and tickets/my-board to confirm the extraction changed nothing: 38 passed, 2 pre-existing tests flaky on page-load timeouts.
  • npm run lint, typecheck, format clean; release note added to 1.0.3.md.
  • Not yet done: a manual check against the real server while clocked out (the e2e test stubs that refusal).

🤖 Generated with Claude Code

The issue page gets a Start timer / Stop timer button in its header. A
start pins the issue into the Tickets table and puts it on My Board when
it isn't there yet, then times it, with the same toast as a start from
the search suggestions. Clocked out, the server's refusal shows "Clock in
to start a ticket timer."; the clock-in prompt is left to #586.

The pin -> My Board -> start steps move out of TicketsPage into
startTicketTimer, so both pages share them instead of copying.

Refs #594

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings September 28, 2026 21:44
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🗑️ Preview Environment Cleaned Up

The preview container for this PR has been deleted.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 28, 2026 21:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@SarkarShubhdeep
SarkarShubhdeep merged commit 8c39449 into fix/redmine-pin-limit-message Sep 29, 2026
4 of 5 checks passed
@SarkarShubhdeep SarkarShubhdeep self-assigned this Sep 29, 2026
@Dharp02
Dharp02 deleted the feat/redmine-issue-page-timer-594 branch November 2, 2026 17:39
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