-
Notifications
You must be signed in to change notification settings - Fork 33
Bind List/MultipleSelect/Checkboxes to a repeating group #3236
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
Conversation
Co-authored-by: Johanne Lie <joli@patentstyret.no> Co-authored-by: adamhaeger <adamgullerud@gmail.com>
# Conflicts: # src/layout/List/ListComponent.tsx
…datory for bound values
# Conflicts: # src/layout/List/ListComponent.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should go the extra mile to support varying depths of properties inside these rows, so that we can support any data model instead of apps having to tailor their data model to our functionality. We don't currently have any such limitations elsewhere in the product (at least that I know), and these limitations in List
was previously removed in #3136.
We can also team up to pair-program the rest of this, if you want, or if my suggestions were unclear. 🙌
…t/Multiselect and Checkboxes
…t/Multiselect and Checkboxes
…ucing looping to only loop the array once (not twice, once to get the index and another time to get the object)
… for the others). I messed up here, thinking that I could make valueBindings an array - but keys matter in List (though they don't matter in the other components).
# Conflicts: # src/language/texts/en.ts # src/language/texts/nb.ts # src/language/texts/nn.ts
…jest preview on, as the class names change when you turn on that feature (and will cause the tests to fail). Since jest preview is off on the github runner, we have to update them with preview off and commit that instead.
…ation. Had to open up a few protected methods to do this, but I think that's fine.
…aries (which it is right now, so that's wrong)
The failing test (in Other than that, most issues seem to be resolved now, but I found that there is no support for this 'group' functionality in Checkboxes + MultipleSelect when shown in Summary + Summary2. I added those components to the component library app, but I didn't start implementing summary support. List has it already, so there should be at least one source there for inspiration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving now, pending tests for summaries. 🙌 Good job! 🚀
|
Description
Bind List/MultipleSelect/Checkboxes to a list of Objects/a repeating group.
Added a group, checked and deletionStrategy property to the List/MultipleSelect/Checkboxes, to support saving to a list of Objects and to support toggling soft deletion.
Related Issue(s)
Verification/QA
Manual functionality testing
Automated tests
UU/WCAG (follow these guidelines until we have our own)
User documentation @ altinn-studio-docs
Support in Altinn Studio
Sprint board
Labels
kind/*
andbackport*
label to this PR for proper release notes grouping