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

Feature/list component with checkboxes #2926

Merged

Conversation

walldenfilippa
Copy link
Contributor

@walldenfilippa walldenfilippa commented Jan 20, 2025

Description

image
image

Related Issue(s)

Verification/QA

  • Manual functionality testing

    • I have tested these changes manually
    • Creator of the original issue (or service owner) has been contacted for manual testing (or will be contacted when released in alpha)
    • No testing done/necessary
  • Automated tests

    • Unit test(s) have been added/updated
    • Cypress E2E test(s) have been added/updated
    • No automatic tests are needed here (no functional changes/additions)
    • I want someone to help me make some tests
  • UU/WCAG (follow these guidelines until we have our own)

    • I have tested with a screen reader/keyboard navigation/automated wcag validator
    • No testing done/necessary (no DOM/visual changes)
    • I want someone to help me perform accessibility testing
  • User documentation @ altinn-studio-docs

    • Has been added/updated
    • No functionality has been changed/added, so no documentation is needed
    • I will do that later/have created an issue
  • Support in Altinn Studio

    • Issue(s) created for support in Studio
    • This change/feature does not require any changes to Altinn Studio
  • Sprint board

    • The original issue (or this PR itself) has been added to the Team Apps project and to the current sprint board
    • I don't have permissions to do that, please help me out
  • Labels

    • I have added a kind/* label to this PR for proper release notes grouping
    • I don't have permissions to add labels, please help me out

@olemartinorg olemartinorg self-requested a review January 28, 2025 13:50
@olemartinorg olemartinorg self-assigned this Jan 28, 2025
@olemartinorg olemartinorg added the kind/product-feature Pull requests containing new features label Jan 28, 2025
Copy link
Contributor

@olemartinorg olemartinorg left a 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):

  1. 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.
  2. 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!)

@olemartinorg olemartinorg changed the base branch from main to feat/list-checkboxes February 6, 2025 10:30
@olemartinorg olemartinorg merged commit 52ccc87 into Altinn:feat/list-checkboxes Feb 6, 2025
6 of 7 checks passed
@olemartinorg
Copy link
Contributor

I merged this into feat/list-checkboxes instead of the main branch, so that I can take a look at the tests that were failing and create new ones for this functionality. Thanks for the contribution! 🙏

@paal2707 paal2707 mentioned this pull request Feb 13, 2025
19 tasks
paal2707 added a commit that referenced this pull request Feb 27, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/product-feature Pull requests containing new features
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants