Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX improvements: modal registration forms for email and stuf #4742

Merged

Conversation

robinmolen
Copy link
Contributor

Closes #4686

Changes

The registration forms for Email and StUF-ZDS now use React components, instead of react-json-schema-form generated forms. This allows us to share styling and keep the styling uniform across forms. These changes also improve the user experience, by providing a simular form layout/logic as the other registration inline forms.

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

@robinmolen robinmolen linked an issue Oct 8, 2024 that may be closed by this pull request
@sergei-maertens sergei-maertens changed the title Feature/4686 modal registration forms for email and stuf UX improvements: modal registration forms for email and stuf Oct 31, 2024
@sergei-maertens sergei-maertens force-pushed the feature/4686-modal-registration-forms-for-email-and-stuf branch from 9c246fe to 7ab8561 Compare October 31, 2024 13:07
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (master@8f11d28). Learn more about missing BASE report.
Report is 19 commits behind head on master.

Files with missing lines Patch % Lines
...openforms/registrations/contrib/stuf_zds/plugin.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4742   +/-   ##
=========================================
  Coverage          ?   96.55%           
=========================================
  Files             ?      748           
  Lines             ?    25410           
  Branches          ?     3358           
=========================================
  Hits              ?    24535           
  Misses            ?      610           
  Partials          ?      265           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Otherwise it would be too easy for form designers to miss the option,
let's make it clear that at least one email address must be entered.
Similar to the case properties, we can put the payment update mappings
in a separate tab to de-clutter the UI. Next commit will then use
the existing VariableMapping component to manage the actual mappings.
…ping

Some code repetition, but at least we are now using consistent UI
components for mapping from/to form variables in various places.
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

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

@robinmolen nice work! I did some minor tweaks w/r to the layout and organization of elements, and one big rework for the StUF payment variable mappings - that one has been rewritten using the existing VariableMapping component UX. Please review that commit to see the changes :)

Created a generic component for the button-that-opens-modal with error
icon next to it, which renders the plugin-specific configuration form
inside. This puts the less elegant code in a nice isolated box instead
of spreading across the code base.
@sergei-maertens sergei-maertens merged commit 814eb7c into master Oct 31, 2024
34 checks passed
@sergei-maertens sergei-maertens deleted the feature/4686-modal-registration-forms-for-email-and-stuf branch October 31, 2024 19:55
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.

Updating the email and StUF-ZDS inline forms
2 participants