From e7deb627d8c7d2cae061c734baae91a79281af10 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Tue, 22 Jul 2025 00:03:03 +0300 Subject: [PATCH 1/2] PM-1498 - support for opportunity title --- .../copilots/src/models/CopilotOpportunity.ts | 1 + src/apps/copilots/src/models/CopilotRequest.ts | 1 + .../pages/copilot-opportunity-details/index.tsx | 2 +- .../src/pages/copilot-opportunity-list/index.tsx | 2 +- .../src/pages/copilot-request-form/index.tsx | 16 ++++++++++++++++ .../CopilotRequestModal.tsx | 4 ++++ .../src/pages/copilot-requests/index.tsx | 5 +++++ 7 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/apps/copilots/src/models/CopilotOpportunity.ts b/src/apps/copilots/src/models/CopilotOpportunity.ts index b53545377..5f3747061 100644 --- a/src/apps/copilots/src/models/CopilotOpportunity.ts +++ b/src/apps/copilots/src/models/CopilotOpportunity.ts @@ -15,6 +15,7 @@ export interface CopilotOpportunity { numHoursPerWeek: number, numWeeks: number, overview: string, + opportunityTitle: string, paymentType: string, otherPaymentType: string, requiresCommunication: 'yes' | 'no', diff --git a/src/apps/copilots/src/models/CopilotRequest.ts b/src/apps/copilots/src/models/CopilotRequest.ts index e295bda9b..f4b4bd381 100644 --- a/src/apps/copilots/src/models/CopilotRequest.ts +++ b/src/apps/copilots/src/models/CopilotRequest.ts @@ -13,6 +13,7 @@ export interface CopilotRequest { numHoursPerWeek: number, numWeeks: number, overview: string, + opportunityTitle: string, paymentType: string, otherPaymentType: string, requiresCommunication: 'yes' | 'no', diff --git a/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx b/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx index 644e8c8cb..120cf2155 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx @@ -194,7 +194,7 @@ const CopilotOpportunityDetails: FC<{}> = () => { ) }

- {opportunity?.projectName} + {opportunity?.opportunityTitle ?? opportunity?.projectName}

diff --git a/src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx b/src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx index 9c9bf4d3e..7f3be943d 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx @@ -25,7 +25,7 @@ const tableColumns: TableColumn[] = [ propertyName: 'projectName', renderer: (copilotOpportunity: CopilotOpportunity) => (
- {copilotOpportunity.projectName} + {copilotOpportunity.opportunityTitle}
), type: 'element', diff --git a/src/apps/copilots/src/pages/copilot-request-form/index.tsx b/src/apps/copilots/src/pages/copilot-request-form/index.tsx index ea0f14daa..07463b495 100644 --- a/src/apps/copilots/src/pages/copilot-request-form/index.tsx +++ b/src/apps/copilots/src/pages/copilot-request-form/index.tsx @@ -248,6 +248,7 @@ const CopilotRequestForm: FC<{}> = () => {

Copilot Request

+

Hi, {' '} @@ -262,6 +263,21 @@ const CopilotRequestForm: FC<{}> = () => { Resolve the errors on the form before submitting

)} + +

Copilot Opprotunity Ttitle

+ +

Select the project you want the copilot for

= props => {
Project
{props.project?.name}
+
+
Title
+
{props.request.opportunityTitle}
+
Opportunity details
{ }, type: 'element', }, + { + label: 'Title', + propertyName: 'opportunityTitle', + type: 'text', + }, { label: 'Type', propertyName: 'type', From 596ca361af03308ed012ceeff030f8eb9e821403 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Tue, 22 Jul 2025 00:07:51 +0300 Subject: [PATCH 2/2] typo --- src/apps/copilots/src/pages/copilot-request-form/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/copilots/src/pages/copilot-request-form/index.tsx b/src/apps/copilots/src/pages/copilot-request-form/index.tsx index 07463b495..ff96e1ed3 100644 --- a/src/apps/copilots/src/pages/copilot-request-form/index.tsx +++ b/src/apps/copilots/src/pages/copilot-request-form/index.tsx @@ -264,7 +264,7 @@ const CopilotRequestForm: FC<{}> = () => {

)} -

Copilot Opprotunity Ttitle

+

Copilot Opportunity Title