Skip to content

Edit Ticket Time Entries from the Timesheet Session Dropdown #869

Open

Description

@Dharp02

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.tsx edit modal.

Proposed Changes

1. Extract the ticket time edit dialog

  • Move the ticket-entry edit modal out of WorkWeek.tsx into a shared component (e.g. src/features/timers/TicketEntryEditDialog.tsx), including its approval gating and justification fields.
  • WorkWeek.tsx uses 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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions