Skip to content

Conversation

@chaimann
Copy link
Contributor

@chaimann chaimann commented Jun 5, 2025

Note

Split from #6228

Summary

Updates UI select component to allow including blank option. Drops support for passing options as html safe string, forcing choices to be an Array, and updates few places where options were still passed as strings.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

@codecov
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.95%. Comparing base (ffa13fc) to head (9e32dad).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6279      +/-   ##
==========================================
- Coverage   88.95%   88.95%   -0.01%     
==========================================
  Files         860      860              
  Lines       18423    18419       -4     
==========================================
- Hits        16388    16384       -4     
  Misses       2035     2035              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chaimann chaimann mentioned this pull request Jun 6, 2025
4 tasks
@chaimann chaimann force-pushed the admin-ui-select-include-blank branch 2 times, most recently from ddaabfb to 287cbdc Compare June 11, 2025 11:06
chaimann added 2 commits June 11, 2025 13:24
`choices` param is now forced to be an Array, as it will be easier to
include blank option in an array. Previously it implicitly allowed it to
be html safe string containing markup for options as well, but using
arrays is a lot easier.
Following the change in UI select component, forcing `choices` to be an
array, needed to change few store credit components passing their
options as a string.

Also removes blank option for currency selector, since there is a
default selected value, and currency cannot be blank, so there is no
reason to allow selecting a blank option there.
@chaimann chaimann force-pushed the admin-ui-select-include-blank branch from 287cbdc to 9e32dad Compare June 11, 2025 11:24
@chaimann chaimann marked this pull request as ready for review June 11, 2025 16:38
@chaimann chaimann requested a review from a team as a code owner June 11, 2025 16:38
@tvdeyen tvdeyen merged commit bbca5cc into solidusio:main Jun 27, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants