fix: fetch and display connected opportunities on agent profile#1
Open
fix: fetch and display connected opportunities on agent profile#1
Conversation
the first deployment
Fix Opportunity card: Schedule need4deed-org#259
…ect-312 fix: redirect /event-page to Google Forms URL (need4deed-org#312)
ix: back button navigates to correct list page (need4deed-org#318)
…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)
…e-menu-from-registration-form 343: fixes menu in volunteer form
…h-to-hardcoded fix: switch to hardcoded
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
9b4813c to
7dc77e9
Compare
…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
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.
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:
AgentOpportunitiesnow fetches from the agent opportunities endpoint