fix(projects): route-param titles + hide decorative Add Task (PMC-36) #30

Closed
David wants to merge 0 commits from feat/pmc-36-projects-ui into main
Owner

Summary

Closes PMC-36 (Projects UI). PMC-37 was closed in audit; PMC-38/PMC-40 land here as one commit; PMC-39 hides the unwired Add Task on the tasks page.

  • PMC-40: ProjectDetailPage uses Project {props.id} for the header and tab title instead of the hardcoded "Network Infrastructure Upgrade". Real names land when the projects module ships server-side.
  • PMC-38: Removes the dead Add Task button from ProjectDetailPage header per the F5 hide-decorative pattern (no onclick, server stub returns 501).
  • PMC-39: Same fix on ProjectTasksPage header.

Test plan

  • cargo check --features web clean
  • Visit /projects/foo -- title reads "Project foo"; no Add Task button
  • Visit /projects/foo/tasks -- title reads "Project foo - Tasks"; no Add Task button
  • View Tasks link still navigates to the tasks page

🤖 Generated with Claude Code

## Summary Closes PMC-36 (Projects UI). PMC-37 was closed in audit; PMC-38/PMC-40 land here as one commit; PMC-39 hides the unwired Add Task on the tasks page. - `PMC-40`: ProjectDetailPage uses `Project {props.id}` for the header and tab title instead of the hardcoded "Network Infrastructure Upgrade". Real names land when the projects module ships server-side. - `PMC-38`: Removes the dead Add Task button from ProjectDetailPage header per the F5 hide-decorative pattern (no onclick, server stub returns 501). - `PMC-39`: Same fix on ProjectTasksPage header. ## Test plan - [ ] `cargo check --features web` clean - [ ] Visit `/projects/foo` -- title reads "Project foo"; no Add Task button - [ ] Visit `/projects/foo/tasks` -- title reads "Project foo - Tasks"; no Add Task button - [ ] View Tasks link still navigates to the tasks page 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ProjectDetailPage hardcoded the title "Network Infrastructure Upgrade" so every project URL rendered the same header. Switch the title and tab title to "Project {props.id}" so navigation history reflects the route. Real project names will replace the bare id once the server's projects module ships.

The Add Task header button had no onclick and no server destination; per the F5 pattern (audit P1-05 "decorative detail-page buttons") hide it until the projects module lands so the affordance stops lying. Live wiring is tracked under PMC-39 alongside the other Add Task surface.

#PMC-40 State Done
#PMC-38 State Done
fix(projects): hide decorative Add Task on tasks page (PMC-39)
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 4s
Create release / Create release from merged PR (pull_request) Has been skipped
134947ed0b
ProjectTasksPage had a header Add Task button with no onclick and no destination (server projects module is still stubbed at 501). Per the F5 pattern, hide it until the server lands so the affordance stops promising a flow that doesn't exist. Also switches the page header to "Project {props.id} - Tasks" so it reflects the route.

#PMC-39 State Done
vas2000-work closed this pull request 2026-05-21 01:21:55 +02:00
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 4s
Required
Details
Create release / Create release from merged PR (pull_request) Has been skipped

Pull request closed

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!30
No description provided.