Skip to content

Feature/project detail page - #52

Merged
dcl10 merged 3 commits into
mainfrom
feature/project-detail-page
May 21, 2026
Merged

Feature/project detail page#52
dcl10 merged 3 commits into
mainfrom
feature/project-detail-page

Conversation

@dcl10

@dcl10 dcl10 commented May 21, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a project detail page at /projects/[projectId] and wires up navigation so users can reach it from the projects list.

Navigation

  • "My Projects" in the left rail now navigates to /projects and highlights as active when on that route
  • Clicking a project card on the list page takes you to its detail page
  • The detail page has a ← Projects back link

Project detail page (/projects/[projectId])

  • Displays title, status badge (colour-coded by status), description, and a metadata row with team size, timeline, created-by, and relative date
  • Shows any proposed teams with member names and roles
  • Shows how many LLM analyses have previously been run

LLM analysis submission

  • "Submit for analysis" button dispatches POST /api/projects/{id}/recommendations to queue the project with the LLM worker
  • Shows a loading state during submission and inline success/error feedback
  • Disabled for TeamConfirmed and Closed projects; shows a 409 conflict message if analysis is already queued

API layer

  • ApiError class carries the HTTP status so server actions can handle specific codes (e.g. 409)
  • apiRequestNoContent helper for endpoints that return 202/204 with no body
  • fetchProject and triggerRecommendation functions added to lib/api/projects.ts
  • ProjectDetail, Team, TeamMembership, RecommendationRecord types added to lib/api/types.ts

Linked issues

(Optional) Screenshots

Screenshot 2026-05-21 at 16 39 03

dcl10 and others added 3 commits May 21, 2026 16:29
Add ApiError class with HTTP status, apiRequestNoContent helper for 202/204
responses, fetchProject and triggerRecommendation functions, and ProjectDetail
types (Team, TeamMembership, RecommendationRecord) matching backend shapes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Connect AppShell to usePathname and useRouter so the My Projects nav item
highlights on /projects and clicking it navigates there.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add /projects/[projectId] route showing project info, status badge, metadata,
and proposed teams. Includes a Submit for analysis button that queues the
project to the LLM worker via POST /api/projects/{id}/recommendations, with
loading state and inline success/error feedback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dcl10
dcl10 merged commit 2876a17 into main May 21, 2026
1 check passed
@dcl10
dcl10 deleted the feature/project-detail-page branch May 21, 2026 15:42
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