Skip to content

fix: add name field to opportunity details for renaming#360

Open
Cy-fox wants to merge 2 commits intoneed4deed-org:developfrom
Cy-fox:fix/rename-opportunity-340
Open

fix: add name field to opportunity details for renaming#360
Cy-fox wants to merge 2 commits intoneed4deed-org:developfrom
Cy-fox:fix/rename-opportunity-340

Conversation

@Cy-fox
Copy link
Copy Markdown
Collaborator

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

Description

Adds an editable "Name" field to the Opportunity Details section so coordinators can rename an opportunity directly from the profile page. The field is shown in both display and edit mode, with validation and i18n support (EN/DE).

Related Issues

Closes #340

Changes

  • Add useUpdateOpportunityTitle hook (PATCH title field)
  • Add title to opportunityDetailsSchema with required validation
  • Add "Name" field to OpportunityDetailsEdit (first field, wired to mutation)
  • Add "Name" field to OpportunityDetailsDisplay
  • Add i18n keys opportunityName, saveSuccess, validation.opportunityNameRequired (EN + DE)
  • Fix pre-existing TS error in AgentContactDetails (representativerepresentatives[0])

@nadavosa
Copy link
Copy Markdown
Collaborator

Before this gets merged, please run yarn lint and yarn typecheck locally and fix any errors. We've added a CI check (#359) that will block merging if these fail.

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.

Opportunity profile - Rename opportunity

2 participants