Make recent feedback submissions clickable to view details - #33
Conversation
Wrap each submission item in the personal dashboard's "Recent Submissions" list with a NuxtLink to /feedback/:id so users can click through to the full feedback detail page. Also adds a hover state for visual affordance. Removes completed todo from TODO.md. https://claude.ai/code/session_01Ng2yzvW4PC4BnZRav36GQn
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 819551b1d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| v-for="item in recentSubmissions" | ||
| :key="item.id" | ||
| class="flex items-center justify-between rounded-lg border p-3" | ||
| :to="`/feedback/${item.id}`" |
There was a problem hiding this comment.
Avoid linking personal submissions to team-only detail route
The new :to="/feedback/${item.id}" link is rendered only in the personal-dashboard branch (!hasOrganization), but that detail flow calls GET /api/feedback/:id, which enforces requireProjectAccess for authenticated users (server/api/feedback/[id]/index.get.ts) and returns 403 when the user is not a team member (server/utils/project-access.ts). For users in this branch (no org/team membership), clicking a recent submission now consistently lands on an access error instead of showing details, so the new navigation path is functionally broken for its target audience.
Useful? React with 👍 / 👎.
Summary
Made recent feedback submissions in the dashboard clickable by converting them to navigation links that route to the feedback detail page.
Changes
<div>elements to<NuxtLink>components/feedback/{id}route when clicking on a submissionhover:bg-muted transition-colors) to indicate clickabilityImplementation Details
NuxtLinkcomponent wraps the entire submission item, maintaining the existing layout and stylinghttps://claude.ai/code/session_01Ng2yzvW4PC4BnZRav36GQn