@@ -11,7 +11,7 @@ import { useAuth } from '../../Utils/Auth';
11
11
import { WithID } from '../../Utils/WithID' ;
12
12
import { Body , Card , ContentWrapper , Header , Page , Title } from '../Layout' ;
13
13
import { ShortText } from './NewTextField' ;
14
- import { FieldContext , useFieldContext , Warning } from './Question' ;
14
+ import { FieldContext , Note , useFieldContext , Warning } from './Question' ;
15
15
import { TeamField } from './RequestInfoFields' ;
16
16
17
17
type RequestStub = { title : string ; teamId : number } ;
@@ -62,6 +62,8 @@ export function NewForm({
62
62
) ;
63
63
}
64
64
65
+ const requestObject = requests . get ( requestType ) ;
66
+
65
67
return (
66
68
< FieldContext . Provider value = { state } >
67
69
< ContentWrapper >
@@ -77,10 +79,20 @@ export function NewForm({
77
79
className = "space-y-8"
78
80
>
79
81
< Section title = "General information" >
80
- < ShortText q = "What should be this request called?" id = "Title" />
82
+ < ShortText
83
+ q = "Request Title"
84
+ id = "Title"
85
+ description = "A title for this request: simple, unique, and easy to search for"
86
+ />
81
87
< TeamField id = "TeamId" />
88
+ { requestObject ?. showMultipleSamplesNote ? (
89
+ < Note >
90
+ Please, combine samples into one request if the requested analysis follows
91
+ the same logic.
92
+ </ Note >
93
+ ) : null }
82
94
</ Section >
83
- { requests . get ( requestType ) ?. formComponent }
95
+ { requestObject ?. formComponent }
84
96
< div className = "h-0.5 w-full bg-gray-200" />
85
97
< div className = "flex justify-end flex-row w-full space-x-6 relative" >
86
98
{ children }
0 commit comments