Show Time Worked on Each Ticket and What Was Sent to Redmine

Aperta
#916 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@SarkarShubhdeep ci sta già lavorando.

Dal 2/12/2026.

  • #920 di @SarkarShubhdeep — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Overview

When ticket timers are on, members track their time against tickets — TimeHuddle tickets, and tickets carrying a GitHub or Redmine address. Today they see a per-ticket summary once, at clock-out, when the time is sent to Redmine, and there is no good place to look it up afterwards. A member who wants to know "which Redmine tickets did I work on Wednesday, for how long, and what was sent?" should be able to answer that from the places TimeHuddle already has: the ticket detail page, its timer button, its Activity card, and the timesheet. This issue reuses those places rather than adding a new screen.

Current State

  • timers.getTicketTotal returns the caller's total seconds on a ticket, and ticketApi.getTotal / timerApi.getTicketTotal wrap it in src/lib/api.ts, but no page shows it.
  • The ticket detail page's Activity card already lists the viewer's own timer sessions ("logged 1h 20m") and a carried issue's time entries from its source (src/features/tickets/detail/activityEntries.ts).
  • Redmine entries TimeHuddle pushed for the viewer are recorded in redmine_time_syncs (ticket, date, synced hours, Redmine time entry id) and are hidden from the Activity card because they already show as the viewer's own sessions.
  • The timesheet (PersonalTimesheetPanel, Dashboard → Me → Timesheet) lists shifts with their tickets; it doesn't say how long each ticket took or whether its time reached Redmine.
  • The ticket's Start button reads the same whether or not time has been logged on it.

Proposed Changes

1. Time badge in the ticket detail header
  • Show the viewer's total time on the ticket as a badge in the header row, from timers.getTicketTotal.
  • It updates when the viewer's timer on the ticket starts or stops (the page already listens for that).
2. Timer button shows there's time to continue
  • When the viewer has time logged on a ticket, its Start button reads as continuing that time (e.g. "Resume · 2h 10m") on the ticket detail page and in the Tickets list; starting it adds a new session to the same total, as today.
3. Activity card marks what was sent
  • Each of the viewer's sessions in the Activity card shows whether its day's time was sent to Redmine, with the hours sent and a link to the Redmine time entry (from redmine_time_syncs).
  • Check what's already shown here before adding to it; this may only need the "sent" marker.
4. Per-day view on the timesheet
  • On the timesheet, each shift lists its tickets with the time on each and, for tickets carrying a Redmine address, what was sent (hours, entry link) or that nothing was sent yet.
  • This answers "what did I work on Wednesday" from a date pick that already exists.

Acceptance Criteria

  • The ticket detail header shows the viewer's total time on that ticket and updates on start / stop
  • A ticket with time logged offers its timer as a continuation, showing the total, on the detail page and Tickets list
  • Activity card sessions show whether their time was sent to Redmine, with hours and a link to the entry
  • The timesheet shows time per ticket under each shift, and Redmine sent status for Redmine tickets
  • Works for TimeHuddle tickets and tickets carrying GitHub or Redmine addresses
  • Times are the viewer's own, as getTicketSessions / getTicketTotal are today
  • All new strings are externalized; durations use the existing formatDuration
  • Unit tests for any new builders; e2e for the header badge and the timesheet ticket rows

Out of Scope (for Now)

  • Seeing teammates' time on a ticket (admins already have the admin timesheet)
  • Editing or re-sending time already pushed to Redmine from these views
  • A new reports page or export
  • Behaviour when ticket timers are turned off for a team (#915)
Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
1g 16h
PR unite (30g)
47

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mieweb/timehuddle

Tutte le issue di mieweb/timehuddle

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.