File tree Expand file tree Collapse file tree 7 files changed +29
-2
lines changed
copilot-opportunity-details Expand file tree Collapse file tree 7 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface CopilotOpportunity {
15
15
numHoursPerWeek : number ,
16
16
numWeeks : number ,
17
17
overview : string ,
18
+ opportunityTitle : string ,
18
19
paymentType : string ,
19
20
otherPaymentType : string ,
20
21
requiresCommunication : 'yes' | 'no' ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export interface CopilotRequest {
13
13
numHoursPerWeek : number ,
14
14
numWeeks : number ,
15
15
overview : string ,
16
+ opportunityTitle : string ,
16
17
paymentType : string ,
17
18
otherPaymentType : string ,
18
19
requiresCommunication : 'yes' | 'no' ,
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
194
194
) }
195
195
< div className = { styles . wrapper } >
196
196
< h1 className = { styles . header } >
197
- { opportunity ?. projectName }
197
+ { opportunity ?. opportunityTitle ?? opportunity ?. projectName }
198
198
</ h1 >
199
199
< div className = { styles . infoRow } >
200
200
< div className = { styles . infoColumn } >
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const tableColumns: TableColumn<CopilotOpportunity>[] = [
25
25
propertyName : 'projectName' ,
26
26
renderer : ( copilotOpportunity : CopilotOpportunity ) => (
27
27
< div className = { styles . title } >
28
- { copilotOpportunity . projectName }
28
+ { copilotOpportunity . opportunityTitle }
29
29
</ div >
30
30
) ,
31
31
type : 'element' ,
Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ const CopilotRequestForm: FC<{}> = () => {
248
248
< div className = { styles . form } >
249
249
< form >
250
250
< h1 className = { styles . heading } > Copilot Request </ h1 >
251
+
251
252
< p className = { styles . subheading } >
252
253
Hi,
253
254
{ ' ' }
@@ -262,6 +263,21 @@ const CopilotRequestForm: FC<{}> = () => {
262
263
Resolve the errors on the form before submitting
263
264
</ p >
264
265
) }
266
+
267
+ < p className = { styles . formRow } > Copilot Opportunity Title</ p >
268
+ < InputText
269
+ dirty
270
+ type = 'text'
271
+ label = 'Title'
272
+ name = 'opportunityTitle'
273
+ placeholder = 'Enter a title for the opportunity'
274
+ value = { formValues . opportunityTitle ?. toString ( ) }
275
+ onChange = { bind ( handleFormValueChange , this , 'opportunityTitle' ) }
276
+ error = { formErrors . opportunityTitle }
277
+ tabIndex = { 0 }
278
+ forceUpdateValue
279
+ />
280
+
265
281
< p className = { styles . formRow } > Select the project you want the copilot for</ p >
266
282
< InputSelectReact
267
283
tabIndex = { 0 }
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ const CopilotRequestModal: FC<CopilotRequestModalProps> = props => {
59
59
< div > Project</ div >
60
60
< div > { props . project ?. name } </ div >
61
61
</ div >
62
+ < div className = { styles . detailsLine } >
63
+ < div > Title</ div >
64
+ < div > { props . request . opportunityTitle } </ div >
65
+ </ div >
62
66
< div className = { styles . detailsLine } >
63
67
< div > Opportunity details</ div >
64
68
< a
Original file line number Diff line number Diff line change @@ -170,6 +170,11 @@ const CopilotRequestsPage: FC = () => {
170
170
} ,
171
171
type : 'element' ,
172
172
} ,
173
+ {
174
+ label : 'Title' ,
175
+ propertyName : 'opportunityTitle' ,
176
+ type : 'text' ,
177
+ } ,
173
178
{
174
179
label : 'Type' ,
175
180
propertyName : 'type' ,
You can’t perform that action at this time.
0 commit comments