fix: resolve "Unknown User" in admin panel #13

Merged
jason merged 1 commits from claude/quirky-golick into master 2026-03-13 07:30:44 -05:00
Owner

Summary

  • The admin panel was displaying "Unknown User" for all reports because the GET /api/reports Prisma query only included tasks but not the user relation
  • Added user: true to the include in the findMany call so report.user.name is populated

Test plan

  • Log in as an admin and verify the reports list shows correct user names instead of "Unknown User"
  • Verify non-admin users can still fetch their own reports normally

🤖 Generated with Claude Code

## Summary - The admin panel was displaying "Unknown User" for all reports because the `GET /api/reports` Prisma query only included `tasks` but not the `user` relation - Added `user: true` to the `include` in the `findMany` call so `report.user.name` is populated ## Test plan - [ ] Log in as an admin and verify the reports list shows correct user names instead of "Unknown User" - [ ] Verify non-admin users can still fetch their own reports normally 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason added 1 commit 2026-03-13 07:30:16 -05:00
jason merged commit b81a568592 into master 2026-03-13 07:30:44 -05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jason/wfh#13