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

Improve the user experience of the form variable select/dropdown #4730

Merged

Conversation

sergei-maertens
Copy link
Member

Closes #4524
Closes #4675

I've cleaned up the commit history from the original PR

Changes

The variable dropdown now uses the react-select component. Allowing for searching within the options

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

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.56%. Comparing base (d0a504f) to head (72859d8).
Report is 13 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4730   +/-   ##
=======================================
  Coverage   96.56%   96.56%           
=======================================
  Files         746      746           
  Lines       25191    25191           
  Branches     3313     3313           
=======================================
  Hits        24325    24325           
  Misses        602      602           
  Partials      264      264           

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

Copy link
Member Author

@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 I've cleaned up the commit history since it went a bit wrong in #4675 😬

@robinmolen robinmolen force-pushed the feature/4524-react-select-in-variable-dropdown-cleaned-up branch from c611cef to 1b1d542 Compare October 9, 2024 08:40
@sergei-maertens sergei-maertens force-pushed the feature/4524-react-select-in-variable-dropdown-cleaned-up branch from 5aa0e67 to 7fc696a Compare October 11, 2024 09:21
@sergei-maertens sergei-maertens changed the title Feature/4524 react select in variable dropdown cleaned up Improve the user experience of the form variable select/dropdown Oct 11, 2024
@sergei-maertens sergei-maertens force-pushed the feature/4524-react-select-in-variable-dropdown-cleaned-up branch 3 times, most recently from 489f3c1 to 3937b7e Compare October 11, 2024 16:28
Copy link
Member Author

@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 I did some final polishing so we can finally wrap up this feature :)

@sergei-maertens sergei-maertens force-pushed the feature/4524-react-select-in-variable-dropdown-cleaned-up branch from 3937b7e to cf881a6 Compare October 11, 2024 16:51
* Ensure the variabels editor tabs and groups in variable dropdown use
  the same literals for component/user defined/static variables
* Switched markup/styling to CSS grid for better visual appearance when
  labels wrap
* Added stories for visual edge cases so that we have visual regression
  testing
* Re-organized the React component code a bit to avoid defining inline
  components
Attempted to make the code a bit easier/simpler, and clean up the
test helpers to use accessible queries.
@sergei-maertens sergei-maertens force-pushed the feature/4524-react-select-in-variable-dropdown-cleaned-up branch from cf881a6 to 72859d8 Compare October 11, 2024 17:50
@sergei-maertens sergei-maertens merged commit 97d32bc into master Oct 11, 2024
34 checks passed
@sergei-maertens sergei-maertens deleted the feature/4524-react-select-in-variable-dropdown-cleaned-up branch October 11, 2024 18:21
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.

Make a React dropdown out of the choose form variable-dropdown
2 participants