Skip to content

Conversation

@foxbunny
Copy link
Collaborator

@foxbunny foxbunny commented May 7, 2024

  • Add FormErrors component that lists fields with errors
  • Add selector to obtain a flat field list
  • Add message-box component to design system
  • Add id to PictureInput wrapper

@foxbunny foxbunny force-pushed the error-messages branch 2 times, most recently from a2d59c5 to ff7524e Compare May 7, 2024 07:24
@ThiefMaster
Copy link
Member

Anything missing here from your side, since this PR is still marked as Draft?

@foxbunny
Copy link
Collaborator Author

foxbunny commented Dec 3, 2024

I've just discovered that the email field is not hooked up to the final form validation. Instead it uses the browser's constraints validation. Fine by me, and I don't expect any accessibility issues here, but the error message won't appear in the list as a result.

@foxbunny
Copy link
Collaborator Author

foxbunny commented Dec 3, 2024

@ThiefMaster Does failure in the server-side validation cause the form state to update? I've noticed I don't get any errors for the email field when server-side validation fails. I can see the error message on the field, but not via the useFormState().

@foxbunny foxbunny marked this pull request as ready for review December 3, 2024 05:16
foxbunny and others added 6 commits December 9, 2024 09:55
- Add FormErrors component that lists fields with errors
- Add selector to obtain a flat field list
- Add message-box component to design system
- Add id to PictureInput wrapper <div>
- Add ids to more fields
- Fix checkbox id (remove -checkbox) suffix
- Allow ind-select to receive focus by calling its foucs() method
The fact that it is a custom component is an implementation detail.
@ThiefMaster
Copy link
Member

ThiefMaster commented Dec 9, 2024

There's a small regression: When you registered and view your registration, the dropdown to change your consent for the participant list is now much harder to see. I already fixed some other issues there (see my commit), but I have the feeling this needs to be little bit more visible - besides the dropdown arrow you barely notice that it's something clickable. Also, when it's open it's shifted a bit to the side.

Before:
image

After:
image
image

It seems like the border is missing for some reason until I click the field...

@foxbunny
Copy link
Collaborator Author

foxbunny commented Dec 9, 2024

It seems like the border is missing for some reason until I click the field...

The reason is that the CSS currently targets it when inside a .ui.field. This is because of the way SUI does styles. Very sad.

@ThiefMaster ThiefMaster added this to the v3.3 milestone Dec 9, 2024
@ThiefMaster ThiefMaster merged commit 2a69ba1 into indico:master Dec 9, 2024
9 checks passed
AjobK pushed a commit to AjobK/indico that referenced this pull request Dec 19, 2024
AjobK pushed a commit to AjobK/indico that referenced this pull request Jan 7, 2025
AjobK pushed a commit to AjobK/indico that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants