Skip to content

feat: /dashboard/profile page for NGO users#690

Merged
need4deed merged 2 commits into
developfrom
feat/677-dashboard-profile-page
Jun 17, 2026
Merged

feat: /dashboard/profile page for NGO users#690
need4deed merged 2 commits into
developfrom
feat/677-dashboard-profile-page

Conversation

@nadavosa

Copy link
Copy Markdown
Collaborator

Summary

  • Creates src/app/[lang]/dashboard/profile/page.tsx — the missing route that caused a 404 when NGO users clicked Profile in the sidebar
  • Fixes useGetCurrentAgent to derive agentId from GET /user/me (which returns agentId since feat: include agentId in GET /user/me response be#692) instead of the non-existent GET /agent/me; then fetches the full agent via GET /agent/:id
  • Page shows a loading message while resolving, a "not set up" message if no agentId, and AgentProfileController when the agent is found — consistent with how /dashboard/agents/:id works
  • Also fixes useGetCurrentAgent for NewOpportunity, which previously couldn't pre-fill contact details because GET /agent/me never existed

Closes #677

Test plan

  • NGO user clicks Profile in sidebar → profile page loads with their agent profile
  • User with no agent linked → "not set up" message shown
  • Loading state shown briefly while fetching
  • New opportunity form pre-fills contact name/phone/email from agent representative

🤖 Generated with Claude Code

nadavosa and others added 2 commits June 17, 2026 09:59
Creates the missing profile page at /dashboard/profile. Fixes
useGetCurrentAgent to derive agentId from GET /user/me (which returns
agentId since BE PR #692) rather than the non-existent GET /agent/me,
then fetches the full agent via GET /agent/:id.

Closes #677

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@need4deed need4deed merged commit da2a844 into develop Jun 17, 2026
1 check passed
@need4deed need4deed deleted the feat/677-dashboard-profile-page branch June 17, 2026 09:09
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.

feat: /dashboard/profile page — NGO user sees their own organisation profile

2 participants