Skip to content

Edit every time entry through the shared modal, with notes preview/edit tabs - #236

Merged
ramonski merged 1 commit into
masterfrom
feat/unify-time-entry-modal
Jul 8, 2026
Merged

Edit every time entry through the shared modal, with notes preview/edit tabs#236
ramonski merged 1 commit into
masterfrom
feat/unify-time-entry-modal

Conversation

@ramonski

@ramonski ramonski commented Jul 8, 2026

Copy link
Copy Markdown
Member

Context

Editing a clock/task time entry was inconsistent across the app. The Clocks table, customer view and projects already opened the shared TimeEntryDialog, but the timer sidebar (ClockList), the entries under a task card (kanban/ClockEntryRow) and the dashboard customer entries (DashboardView) each had their own ad-hoc inline edit form with a different subset of fields (e.g. the task-card row could only edit description + hours). The dialog's notes field was also a plain textarea, so links in notes were not clickable.

What changed

Every place a time entry appears now opens the same TimeEntryDialog:

  • clock/ClockList.tsx (timer sidebar) — removed the inline edit form; the pencil opens the dialog.
  • kanban/ClockEntryRow.tsx (task-card entries) — removed the description+hours-only inline edit; opens the full dialog.
  • dashboard/DashboardView.tsx (dashboard customer entries) — removed the inline edit form; opens the dialog.
  • clock/EntryRow.tsx (Clocks table) — dropped double-click-to-edit; the pencil still opens the dialog.

The dialog's notes field now uses the existing MarkdownEditor (Preview/Write tabs, preview first), so notes render with clickable links in view mode and switch to a plain text box to edit — the view/edit behaviour that was missing.

Quick actions (toggle invoiced, detach from task) are unchanged. Net −319 lines.

Acceptance

  • Editing a time entry from the Clocks table, timer sidebar, a task card, the dashboard, the customer view and projects all open the identical modal with identical fields.
  • The notes field shows a rendered Preview by default with a Write tab to edit; links are clickable in Preview.
  • No double-click-to-edit anywhere.
  • tsc and pnpm build pass.

…it tabs

Every clock/task time entry now opens the shared TimeEntryDialog to
edit, instead of ad-hoc inline forms with differing field coverage:

- Timer sidebar (ClockList): replaced its inline edit form.
- Task-card entries (kanban ClockEntryRow): replaced the
  description+hours-only inline edit with the full editor.
- Dashboard customer entries (DashboardView ClockEntryRow): replaced
  its inline edit form.
- Clocks table (EntryRow): dropped double-click-to-edit; the pencil
  still opens the dialog.

The dialog's notes field now uses MarkdownEditor (Preview/Write tabs,
preview first) so notes render with clickable links in view mode and
switch to a textarea to edit -- the view/edit behaviour that was
missing. Quick actions (toggle invoiced, detach) are unchanged.

Net: one modal, identical fields and behaviour across the sidebar,
task cards, dashboard, clocks table, customer view and projects.
@ramonski ramonski self-assigned this Jul 8, 2026
@ramonski
ramonski merged commit cb30b82 into master Jul 8, 2026
2 checks passed
@ramonski
ramonski deleted the feat/unify-time-entry-modal branch July 8, 2026 10:27
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.

1 participant