From fbe6eff63691799d1e2d813c5e0839307b35510e Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Thu, 31 Jul 2025 07:57:22 +0200 Subject: [PATCH 1/2] fix: qa feedbacks --- .../copilot-applications/AlreadyMemberModal.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx b/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx index fcd960a9b..ffe85a614 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx @@ -31,7 +31,18 @@ const AlreadyMemberModal: FC = props => (
{`The copilot ${props.handle} is part of ${props.projectName} project with ${props.copilotApplication.existingMembership?.role} role.`} -
Click 'Confirm' to accept and complete this opportunity.
+ + { + props.copilotApplication.existingMembership + && ['copilot', 'manager'].includes(props.copilotApplication.existingMembership.role) + &&
Click 'Confirm' to accept and complete this opportunity.
+ } + + { + props.copilotApplication.existingMembership + && ['observer', 'customer'].includes(props.copilotApplication.existingMembership.role) + &&
Click 'Confirm' to accept by updating project role to 'Copilot' and complete this opportunity
+ }
From 82c5f6a8c8d02de971421febfc3bd294b5204dc5 Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Thu, 31 Jul 2025 08:04:42 +0200 Subject: [PATCH 2/2] fix: lint --- .../tabs/copilot-applications/AlreadyMemberModal.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx b/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx index ffe85a614..9b06737c4 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx @@ -33,15 +33,20 @@ const AlreadyMemberModal: FC = props => ( project with ${props.copilotApplication.existingMembership?.role} role.`} { - props.copilotApplication.existingMembership + props.copilotApplication.existingMembership && ['copilot', 'manager'].includes(props.copilotApplication.existingMembership.role) &&
Click 'Confirm' to accept and complete this opportunity.
} { - props.copilotApplication.existingMembership + props.copilotApplication.existingMembership && ['observer', 'customer'].includes(props.copilotApplication.existingMembership.role) - &&
Click 'Confirm' to accept by updating project role to 'Copilot' and complete this opportunity
+ && ( +
+ Click 'Confirm' to accept by updating project role to 'Copilot' + and complete this opportunity +
+ ) }