Skip to content

Update how invalid input messages are displayed and handled #562

@juancwu

Description

@juancwu

Description

Currently invalid input error messages are shown in a big block on top of the application form. The invalid input messages should be shown right below the input itself.

Example of how we can update our wrapper components:

// Using chakra components
<Field.Root required={required} invalid={!!error}>
	<Field.Label>
		{label}
		{required && <Field.RequiredIndicator />}
	</Field.Label>
	<Input {...props} />
	<Field.HelperText>{description}</Field.HelperText>
	<Field.ErrorText>{error}</Field.ErrorText>
</Field.Root>

Blocked by

#563

Screenshots

How it is right now:

Image

How it should look like:

Image

Checklist

Before submitting this ticket, make sure this ticket:

  • Is labelled properly - if this is a refactor, add the label!
  • Has the correct project assigned to it.
  • Has an assigned milestone.

And lastly:

  • Once someone picks up this ticket, make sure to assign it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendRelated to the frontend of the project

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions