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

Not show required radiobuttons when using code list #12448

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

standeren
Copy link
Contributor

Description

Remove error message that At least one checkbox/radiobutton is required when custom code list is enabled

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

@github-actions github-actions bot added area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. solution/studio/designer Issues related to the Altinn Studio Designer solution. labels Mar 6, 2024
@standeren standeren marked this pull request as ready for review March 6, 2024 09:52
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.51%. Comparing base (d0e8cfe) to head (355e41e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12448   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files        1274     1274           
  Lines       18496    18496           
  Branches     2293     2293           
=======================================
  Hits        16186    16186           
  Misses       2037     2037           
  Partials      273      273           

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

Copy link
Contributor

@lassopicasso lassopicasso left a comment

Choose a reason for hiding this comment

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

🚀

@standeren standeren merged commit 056a2df into main Mar 11, 2024
11 checks passed
@standeren standeren deleted the not-show-required-radiobuttons-when-using-code-list branch March 11, 2024 14:10
@@ -219,7 +219,9 @@ export function EditOptions<T extends SelectionComponentType>({
</StudioButton>
</div>
)}
{errorMessage && <ErrorMessage size='small'>{errorMessage}</ErrorMessage>}
{selectedOptionsType !== SelectedOptionsType.CodeList && errorMessage && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Vi må kunne stole på at errorMessage er riktig her. Er det noen grunn til å ikke gjøre denne sjekken et annet sted, @standeren?

nkylstad pushed a commit that referenced this pull request Mar 13, 2024
* Remove 'At least one radio required' error message when custom code list is enabled

* Adapt tests for checkboxes also
nkylstad pushed a commit that referenced this pull request Mar 13, 2024
* Remove 'At least one radio required' error message when custom code list is enabled

* Adapt tests for checkboxes also
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants