Skip to content

Commit

Permalink
Merge pull request #17 from Swarthmore/require-remediation-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
devnoot authored Nov 18, 2024
2 parents 7b2f892 + 664befb commit 73addec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/components/field-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ export const fieldConfig: FieldConfig = {
},
{
name: 'remediationComments',
label: 'Remediation comments',
label: 'Remediation comments *',
type: 'string',
order: 90
order: 90,
extraInputProps: { required: true }
},
{
name: 'accessibilityFeatures',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const RemediationComments = ({ form }) => {
name='remediationComments'
render={({ field }) => (
<FormItem>
<FormLabel>Remediation Comments</FormLabel>
<FormLabel>Remediation Comments *</FormLabel>
<FormControl>
<Input placeholder='Remediation comments' {...field} />
</FormControl>
Expand Down
2 changes: 1 addition & 1 deletion app/components/metadata-form/schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const formSchema = z.object({
),
language: z.string().min(1),
partsRemediated: z.string().min(1),
remediationComments: z.string().optional(),
remediationComments: z.string().min(1),
remediationStatus: optionSchema.refine((data) =>
remediationStatusOptions.map((option) => option.value).includes(data.value)
),
Expand Down

0 comments on commit 73addec

Please sign in to comment.