fix(time): link the project work-item in the time-entries list (PMS-320) #168

Merged
longjacksonle merged 1 commit from fix/PMS-320-link-project-work-item into main 2026-06-15 22:46:29 +02:00

Implements PMS-320.

Problem

In the Time Entries list, the Work Item column links a ticket to its detail page (blue, clickable), but a project-linked entry renders as plain grey text, so users cannot click through to the project.

Change (src/pages/time.rs, TimeEntryListPage)

Mirror the ticket branch for projects: when e.project_id is Some(pid), render the label as a Link to Route::ProjectDetail { id: pid } (the existing /projects/:id route) with the same blue styling and the same stop_propagation, so clicking opens the project instead of the row's edit modal.

Verification

just pre-commit (pinned rust 1.94 = CI) passes: fmt, clippy -D warnings, cargo check --target wasm32-unknown-unknown, all 90 lib tests.

Acceptance criteria

  • A project-linked time entry shows the work item as a blue, clickable link that opens the project detail page.
  • Clicking the project link navigates to the project and does not also open the row's edit modal.
  • Ticket-linked and unlinked ("-") entries are unchanged.

🤖 Generated with Claude Code

Implements PMS-320. ## Problem In the Time Entries list, the Work Item column links a ticket to its detail page (blue, clickable), but a project-linked entry renders as plain grey text, so users cannot click through to the project. ## Change (`src/pages/time.rs`, `TimeEntryListPage`) Mirror the ticket branch for projects: when `e.project_id` is `Some(pid)`, render the label as a `Link` to `Route::ProjectDetail { id: pid }` (the existing `/projects/:id` route) with the same blue styling and the same `stop_propagation`, so clicking opens the project instead of the row's edit modal. ## Verification `just pre-commit` (pinned rust 1.94 = CI) passes: fmt, clippy `-D warnings`, `cargo check --target wasm32-unknown-unknown`, all 90 lib tests. ## Acceptance criteria - [x] A project-linked time entry shows the work item as a blue, clickable link that opens the project detail page. - [x] Clicking the project link navigates to the project and does not also open the row's edit modal. - [x] Ticket-linked and unlinked ("-") entries are unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(time): link the project work-item in the time-entries list (PMS-320)
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m0s
Create release / Create release from merged PR (pull_request) Has been skipped
dd90f6baf1
In the Time Entries list, the Work Item column linked a ticket to its detail page but rendered a project as plain grey text, so a project work item was not clickable. Mirror the ticket branch: when the entry is project-linked, render the label as a Link to Route::ProjectDetail (the existing /projects/:id route) with the same blue styling and the same stop_propagation, so clicking opens the project instead of the row's edit modal. Ticket-linked and unlinked entries are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
longjacksonle deleted branch fix/PMS-320-link-project-work-item 2026-06-15 22:46:29 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!168
No description provided.