Skip to content

fix: fetch and display connected opportunities on agent profile#1

Open
Cy-fox wants to merge 96 commits intodevelopfrom
fix/agent-opportunities-list-353
Open

fix: fetch and display connected opportunities on agent profile#1
Cy-fox wants to merge 96 commits intodevelopfrom
fix/agent-opportunities-list-353

Conversation

@Cy-fox
Copy link
Copy Markdown
Owner

@Cy-fox Cy-fox commented Apr 22, 2026

Closes need4deed-org#353

Description

The Opportunities section on the agent profile was a stub that always showed an empty state. It now fetches from the agent endpoint and renders each opportunity with its title, status, and a link to the opportunity profile.

Changes:

  • AgentOpportunities now fetches from the agent opportunities endpoint
  • Each opportunity shows its title, status, and a link to its profile page
  • Empty state is shown when the agent has no linked opportunities

arturasmckwcz and others added 30 commits March 31, 2026 10:16
…ect-312

fix: redirect /event-page to Google Forms URL (need4deed-org#312)
…k-button

Fix: back button navigates to correct list page (need4deed-org#318)
…nity-card

Fix: Opportunity card: Schedule- Date time selection in case of event type need4deed-org#259
…d4deed-org#132/landing-page-layout

🎨 move landing page layout w/ placeholders need4deed-org#132
…-english-303

fix: set English as default language and persist language choice (need4deed-org#303)
Several types were renamed or restructured in the SDK bump that merged
with develop, leaving the codebase in a broken state where tsc --noEmit
fails on every branch:

- AgentCard: use extracted `volunteerSearch` (not agent.volunteerSearch
  which doesn't exist on ApiAgentGetList)
- helpers (Agents): add fallback for volunteerSearch being undefined
- statusMaps: SDK enums (e.g. VolunteerStateEngagementType and
  AgentEngagementStatusType) share the same string values, making
  object-literal duplicate-key errors unavoidable; switch to
  Object.fromEntries so last-write-wins logic is preserved without
  compile errors
- AccompanyingDetails helpers: languageToTranslate is now number in SDK,
  convert to string for the form
- AgentContactDetails: representative → representatives[0] (field
  renamed to plural array in SDK)
- useUpdateAgentContact / useUpdateOrganizationDetails: ApiRepresentativePatch
  removed from SDK; use ApiRepresentativeGet (same shape for patching)
Remove the /home segment from the authenticated dashboard route:
- Delete dashboard/home/page.tsx
- dashboard/page.tsx now renders DashboardHome
- LoginController redirects to /dashboard after login
- DashboardRoutes.Home constant updated to /dashboard

Refs need4deed-org#304
…/fix/296/add-favicon

🐛 Add missing favicon.ico to fix i18next language log
…/fix/289/opportunity-card-skills-validation

fix: save button and checkbox uncheck in opportunity details (need4deed-org#289)
arturasmckwcz and others added 16 commits April 21, 2026 16:22
…e-menu-from-registration-form

343: fixes menu in volunteer form
Language purpose (GENERAL/TRANSLATION) was stripped from the form
data during submission, causing saved languages to lose their purpose
field. New languages default to GENERAL purpose.

Closes need4deed-org#367
SDK 0.0.76 adds accompanyingDetails to ApiOpportunityGetList, so the
local OpportunityWithAccompanyingDetails type extension is no longer
needed. Remove it and use ApiVolunteerOpportunityGetList directly.
Co-authored-by: Copilot <copilot@github.com>
…portunity-type-buttons

feat: add update opportunity type options and translations
…e-on-cards-398

Fix/accompanying date on cards 398
@Cy-fox Cy-fox force-pushed the fix/agent-opportunities-list-353 branch from 9b4813c to 7dc77e9 Compare April 23, 2026 08:56
DarrellRoberts and others added 13 commits April 23, 2026 12:54
…activities-function

need4deed-org#316: Add helper func to get activity titles from ids in Opp-List
… UTC

datetime-local input values are local time strings. Wrapping them in
new Date().toISOString() converts to UTC, causing appointment times to
display 2 hours early for UTC+2 users (CEST). Passing the value directly
matches how onetime_date_time is handled in the same file.

Closes need4deed-org#393

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tetime-utc-offset

fix: preserve local time for accomp_datetime (closes need4deed-org#393)
…tcode-accompanying-details

Fix: No ZIP/PLZ-code for Accompanying details need4deed-org#344
…orm-367

fix: preserve language purpose when saving volunteer profile
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.

Agent profile missing connected Volunteering Opportunities list

9 participants