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

Wrapping array data fields in variable table #5097

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

robinmolen
Copy link
Contributor

Closes #5093

Changes

Displaying the array fields below the Use raw JSON input checkbox in the form variable table.

Screenshot 2025-02-10 at 17 14 50

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
  • Dockerfile/scripts

    • Updated the Dockerfile with the necessary scripts from the ./bin folder
  • Commit hygiene

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

@robinmolen robinmolen requested a review from vaszig February 10, 2025 16:16
@robinmolen robinmolen marked this pull request as ready for review February 10, 2025 16:16
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.74%. Comparing base (47c74d6) to head (e02b533).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5097   +/-   ##
=======================================
  Coverage   96.74%   96.74%           
=======================================
  Files         771      771           
  Lines       26636    26636           
  Branches     3467     3467           
=======================================
  Hits        25770    25770           
  Misses        605      605           
  Partials      261      261           

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

@@ -146,6 +151,7 @@ Field.propTypes = {
]),
fieldBox: PropTypes.bool,
disabled: PropTypes.bool,
extraModifiers: PropTypes.arrayOf(PropTypes.oneOf(['flex-wrap'])),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be this specific array?I mean, if we want to add something in the future we will have to update this as well, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is what we want. This ensures that we only allow this specific modifier to be used.

And indeed if we want to support more modifiers in the future, we will have to update this array. But it ensures that only expected values are used.

@robinmolen robinmolen merged commit a1a1b00 into master Feb 11, 2025
33 of 36 checks passed
@robinmolen robinmolen deleted the feature/5093-literal-value-input-for-array-data branch February 11, 2025 15:08
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.

Working with array's in user variables tab is not very nice
2 participants