Feature/project detail page - #52
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a project detail page at
/projects/[projectId]and wires up navigation so users can reach it from the projects list.Navigation
/projectsand highlights as active when on that route← Projectsback linkProject detail page (
/projects/[projectId])LLM analysis submission
POST /api/projects/{id}/recommendationsto queue the project with the LLM workerTeamConfirmedandClosedprojects; shows a 409 conflict message if analysis is already queuedAPI layer
ApiErrorclass carries the HTTP status so server actions can handle specific codes (e.g. 409)apiRequestNoContenthelper for endpoints that return 202/204 with no bodyfetchProjectandtriggerRecommendationfunctions added tolib/api/projects.tsProjectDetail,Team,TeamMembership,RecommendationRecordtypes added tolib/api/types.tsLinked issues
(Optional) Screenshots