-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature/list component with checkboxes #2926
Feature/list component with checkboxes #2926
Conversation
…ippa/app-frontend-react into Feature/ListComponent
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.
Sorry for the long delay in reviewing this! 🫣 Overall, this looks very good! Thank you!! 🫶
There are a few things to consider when looking closely at the details (apart from the comments I wrote):
- When you uncheck a checkbox, the repeating group row will be deleted. If the user had put any more info in the repeatin group row, that info is now lost - this is what we made
AlertOnDelete
to warn the user against. Not a hard requirement for now, but something we might consider in the future. - Again, if you allow users to add more info in the repeating group row (which is not part of your use-case, but will be part of other use-cases), unchecking and then re-checking a checkbox will wipe extra data from the repeating group row. I hope to implement a solution for that, for example in Binde MultipleSelect/Checkboxes til en repeterende gruppe i datamodellen #1497.
(This is not something I expect you to fix, these are more like notes for myself for later!)
…T for data model bindings; simplify saveToList logic
…ippa/app-frontend-react into Feature/ListComponent
52ccc87
into
Altinn:feat/list-checkboxes
I merged this into |
* Feature/list component with checkboxes (#2926) Co-authored-by: Johanne Lie <joli@patentstyret.no> Co-authored-by: adamhaeger <adamgullerud@gmail.com> * Remove errors and bugs * Allowing 'integer' as a number type, fixing type issues in data model path validator * Fix validation message and config * Cypress test for list with checkboxes and changes to support only mandatory for bound values * Fix better tests * Refactor and cleanup * Refactor and cleanup * Refactor and cleanup * Fix caption on listSummary * Fix caption on listSummary * Refactor for readability * Fix error with tests after refactoring * Fix error with tests after refactoring * Fix error with tests after refactoring * Refactor --------- Co-authored-by: Filippa Wallden <143729834+walldenfilippa@users.noreply.github.com> Co-authored-by: Johanne Lie <joli@patentstyret.no> Co-authored-by: adamhaeger <adamgullerud@gmail.com> Co-authored-by: Ole Martin Handeland <git@olemartin.org>
Description
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/*
label to this PR for proper release notes grouping