Skip to content

fix(importer): stopped incorrect persisting error messages - #1102

Open
callumlewis05 wants to merge 1 commit into
CERNDocumentServer:masterfrom
callumlewis05:persistent-error-messages
Open

fix(importer): stopped incorrect persisting error messages#1102
callumlewis05 wants to merge 1 commit into
CERNDocumentServer:masterfrom
callumlewis05:persistent-error-messages

Conversation

@callumlewis05

@callumlewis05 callumlewis05 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

If preview was clicked before all fields had been filled the error messages would display and then persist even when the field had been filled but now disappear once the input is clicked on.

@callumlewis05
callumlewis05 requested a review from kpsherva August 3, 2026 11:42
@callumlewis05
callumlewis05 force-pushed the persistent-error-messages branch from 3328c40 to 9db07f4 Compare August 3, 2026 12:56

@kpsherva kpsherva left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we find ourselves adding more make-shift validation here, maybe it makes sense to add a library which handles a form out of the box, including validation.
I don't remember, do we have a rest API for this feature? is the backend validating the input? I assume you only fixed the frontend because of the state kept in the components, correct?

@callumlewis05

Copy link
Copy Markdown
Contributor Author

This change only edits how it visually looks, I do not think extra validation is needed as it is only from a drop down menu but the validation on clicking preview is ensuring that required fields are filled, which would then not disappear once the fields were being edited, though now returns to normal when the dropdown is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persistent error messages

2 participants