Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

Resourceadm: refactor frontend validation for resource form + add error summary #12996

Closed mgunnerud closed 1 week ago

mgunnerud commented 1 week ago

Description

In the AboutResourcePage component, validation of resource is done by the fields themselves. This means that there is no way to know how many (if any) errors there are without calling the backend validation service. The validation code should be refactored so validation can be run for all fields in one function, and the errors prop drilled down to the components. This will make it possible to also show an ErrorSummary component with all the validation errors.

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response