Repository navigation
Open
Description
Overview
On the Timesheet tab, expanding a session shows the ticket time entries recorded during it (e.g. "Bench ticket 70: Add export · 1:48 PM – 1:51 PM · 3m"). Those rows are read-only — to correct a ticket's time, users have to leave the Timesheet and find the entry on the Clock page. The ticket rows in the session dropdown should offer the same edit action the Clock page has, using the same dialog and the same approval rules.
Current State
- Session rows in the Timesheet (
PersonalTimesheetPanel.tsx/TimesheetRow.tsx) can be edited via the session actions menu (clock in/out, breaks). - The expanded ticket rows under a session show title, start, end, duration and a "Ticket" badge, with no actions.
- Ticket time editing (duration, note, moving to another ticket, justification) lives only in the Clock page's
WorkWeek.tsxedit modal.
Proposed Changes
1. Extract the ticket time edit dialog
- Move the ticket-entry edit modal out of
WorkWeek.tsxinto a shared component (e.g.src/features/timers/TicketEntryEditDialog.tsx), including its approval gating and justification fields. WorkWeek.tsxuses the extracted component — no behavior change on the Clock page.
2. Edit action on Timesheet ticket rows
- Add an actions menu (or edit button) to each ticket row in the expanded session, matching the session row's actions column.
- It opens the shared dialog for that entry.
- After saving, both the Timesheet and the Clock page reflect the change (or show it as pending review).
3. Same rules everywhere
- The dialog follows the team's change requirements from Add Team Settings for Timesheet Change Requirements #868 (description / video / none).
- Pending change requests show on the ticket row the same way they do on the Clock page.
Acceptance Criteria
- Each ticket row in an expanded Timesheet session has an accessible edit action
- It opens the same dialog used on the Clock page (one component, no duplication)
- Saved or requested changes show on both Timesheet and Clock page
- Approval and justification follow the team's settings from Add Team Settings for Timesheet Change Requirements #868
- Clock page editing behaves exactly as before
- Keyboard and screen-reader access work for the new action
- Release note added
Out of Scope (for Now)
- Adding new ticket entries from the Timesheet
- Bulk editing multiple ticket rows
- Editing ticket rows in the admin timesheet view
Depends on #868.
Metadata
Metadata
Assignees
Labels
No labels
Activity