Skip to content

PM-1498 - support for opportunity title #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/apps/copilots/src/models/CopilotOpportunity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface CopilotOpportunity {
numHoursPerWeek: number,
numWeeks: number,
overview: string,
opportunityTitle: string,
paymentType: string,
otherPaymentType: string,
requiresCommunication: 'yes' | 'no',
Expand Down
1 change: 1 addition & 0 deletions src/apps/copilots/src/models/CopilotRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface CopilotRequest {
numHoursPerWeek: number,
numWeeks: number,
overview: string,
opportunityTitle: string,
paymentType: string,
otherPaymentType: string,
requiresCommunication: 'yes' | 'no',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
) }
<div className={styles.wrapper}>
<h1 className={styles.header}>
{opportunity?.projectName}
{opportunity?.opportunityTitle ?? opportunity?.projectName}
</h1>
<div className={styles.infoRow}>
<div className={styles.infoColumn}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const tableColumns: TableColumn<CopilotOpportunity>[] = [
propertyName: 'projectName',
renderer: (copilotOpportunity: CopilotOpportunity) => (
<div className={styles.title}>
{copilotOpportunity.projectName}
{copilotOpportunity.opportunityTitle}
</div>
),
type: 'element',
Expand Down
16 changes: 16 additions & 0 deletions src/apps/copilots/src/pages/copilot-request-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ const CopilotRequestForm: FC<{}> = () => {
<div className={styles.form}>
<form>
<h1 className={styles.heading}> Copilot Request </h1>

<p className={styles.subheading}>
Hi,
{' '}
Expand All @@ -262,6 +263,21 @@ const CopilotRequestForm: FC<{}> = () => {
Resolve the errors on the form before submitting
</p>
)}

<p className={styles.formRow}>Copilot Opportunity Title</p>
<InputText
dirty
type='text'
label='Title'
name='opportunityTitle'
placeholder='Enter a title for the opportunity'
value={formValues.opportunityTitle?.toString()}
onChange={bind(handleFormValueChange, this, 'opportunityTitle')}
error={formErrors.opportunityTitle}
tabIndex={0}
forceUpdateValue
/>

<p className={styles.formRow}>Select the project you want the copilot for</p>
<InputSelectReact
tabIndex={0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const CopilotRequestModal: FC<CopilotRequestModalProps> = props => {
<div>Project</div>
<div>{props.project?.name}</div>
</div>
<div className={styles.detailsLine}>
<div>Title</div>
<div>{props.request.opportunityTitle}</div>
</div>
<div className={styles.detailsLine}>
<div>Opportunity details</div>
<a
Expand Down
5 changes: 5 additions & 0 deletions src/apps/copilots/src/pages/copilot-requests/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ const CopilotRequestsPage: FC = () => {
},
type: 'element',
},
{
label: 'Title',
propertyName: 'opportunityTitle',
type: 'text',
},
{
label: 'Type',
propertyName: 'type',
Expand Down