[Controls] Hide Select All checkbox from single select controls#226311
[Controls] Hide Select All checkbox from single select controls#226311Zacqary merged 2 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
|
ThomThomson
left a comment
There was a problem hiding this comment.
Code only review, changes LGTM! Thanks for finding / fixing this!
| expect(getSelectAllCheckbox()).not.toBeChecked(); | ||
| }); | ||
|
|
||
| test('hides "Select all" checkbox if the control only allows single selections', async () => { |
There was a problem hiding this comment.
Great to see a test addition here!
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/16055243062 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Checkbox is not present in 8.x, canceling that backport |
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/16055963787 |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…tic#226311) ## Summary Controls configured to only allow a single selection <img width="278" alt="Screenshot 2025-07-02 at 3 55 32 PM" src="https://github.com/user-attachments/assets/193680b6-082e-4b89-b847-5803fe6c4cb6" /> Would still display a Select All checkbox and allow the user to select multiple options this way <img width="460" alt="Screenshot 2025-07-02 at 3 53 32 PM" src="https://github.com/user-attachments/assets/7d384015-63db-4a76-9449-35c377280e46" /> This PR hides Select All if the single selection option is chosen: <img width="459" alt="Screenshot 2025-07-02 at 3 53 42 PM" src="https://github.com/user-attachments/assets/01eae209-d358-4e94-a6e2-6c1d9fb60aa1" /> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit a3e5226)
…tic#226311) ## Summary Controls configured to only allow a single selection <img width="278" alt="Screenshot 2025-07-02 at 3 55 32 PM" src="https://github.com/user-attachments/assets/193680b6-082e-4b89-b847-5803fe6c4cb6" /> Would still display a Select All checkbox and allow the user to select multiple options this way <img width="460" alt="Screenshot 2025-07-02 at 3 53 32 PM" src="https://github.com/user-attachments/assets/7d384015-63db-4a76-9449-35c377280e46" /> This PR hides Select All if the single selection option is chosen: <img width="459" alt="Screenshot 2025-07-02 at 3 53 42 PM" src="https://github.com/user-attachments/assets/01eae209-d358-4e94-a6e2-6c1d9fb60aa1" /> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit a3e5226)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#226311) (#226466) # Backport This will backport the following commits from `main` to `9.1`: - [[Controls] Hide Select All checkbox from single select controls (#226311)](#226311) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Zac Xeper","email":"Zacqary@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-03T16:01:28Z","message":"[Controls] Hide Select All checkbox from single select controls (#226311)\n\n## Summary\n\nControls configured to only allow a single selection\n<img width=\"278\" alt=\"Screenshot 2025-07-02 at 3 55 32 PM\"\nsrc=\"https://github.com/user-attachments/assets/193680b6-082e-4b89-b847-5803fe6c4cb6\"\n/>\n\nWould still display a Select All checkbox and allow the user to select\nmultiple options this way\n<img width=\"460\" alt=\"Screenshot 2025-07-02 at 3 53 32 PM\"\nsrc=\"https://github.com/user-attachments/assets/7d384015-63db-4a76-9449-35c377280e46\"\n/>\n\nThis PR hides Select All if the single selection option is chosen:\n<img width=\"459\" alt=\"Screenshot 2025-07-02 at 3 53 42 PM\"\nsrc=\"https://github.com/user-attachments/assets/01eae209-d358-4e94-a6e2-6c1d9fb60aa1\"\n/>\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"a3e52260ae71434a8b278b60c9255ba7f51ebc71","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Dashboard","release_note:fix","Team:Presentation","loe:small","impact:high","backport:version","v9.1.0","v9.2.0"],"title":"[Controls] Hide Select All checkbox from single select controls","number":226311,"url":"https://github.com/elastic/kibana/pull/226311","mergeCommit":{"message":"[Controls] Hide Select All checkbox from single select controls (#226311)\n\n## Summary\n\nControls configured to only allow a single selection\n<img width=\"278\" alt=\"Screenshot 2025-07-02 at 3 55 32 PM\"\nsrc=\"https://github.com/user-attachments/assets/193680b6-082e-4b89-b847-5803fe6c4cb6\"\n/>\n\nWould still display a Select All checkbox and allow the user to select\nmultiple options this way\n<img width=\"460\" alt=\"Screenshot 2025-07-02 at 3 53 32 PM\"\nsrc=\"https://github.com/user-attachments/assets/7d384015-63db-4a76-9449-35c377280e46\"\n/>\n\nThis PR hides Select All if the single selection option is chosen:\n<img width=\"459\" alt=\"Screenshot 2025-07-02 at 3 53 42 PM\"\nsrc=\"https://github.com/user-attachments/assets/01eae209-d358-4e94-a6e2-6c1d9fb60aa1\"\n/>\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"a3e52260ae71434a8b278b60c9255ba7f51ebc71"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226311","number":226311,"mergeCommit":{"message":"[Controls] Hide Select All checkbox from single select controls (#226311)\n\n## Summary\n\nControls configured to only allow a single selection\n<img width=\"278\" alt=\"Screenshot 2025-07-02 at 3 55 32 PM\"\nsrc=\"https://github.com/user-attachments/assets/193680b6-082e-4b89-b847-5803fe6c4cb6\"\n/>\n\nWould still display a Select All checkbox and allow the user to select\nmultiple options this way\n<img width=\"460\" alt=\"Screenshot 2025-07-02 at 3 53 32 PM\"\nsrc=\"https://github.com/user-attachments/assets/7d384015-63db-4a76-9449-35c377280e46\"\n/>\n\nThis PR hides Select All if the single selection option is chosen:\n<img width=\"459\" alt=\"Screenshot 2025-07-02 at 3 53 42 PM\"\nsrc=\"https://github.com/user-attachments/assets/01eae209-d358-4e94-a6e2-6c1d9fb60aa1\"\n/>\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"a3e52260ae71434a8b278b60c9255ba7f51ebc71"}}]}] BACKPORT--> Co-authored-by: Zac Xeper <Zacqary@users.noreply.github.com>
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…tic#226311) ## Summary Controls configured to only allow a single selection <img width="278" alt="Screenshot 2025-07-02 at 3 55 32 PM" src="https://github.com/user-attachments/assets/193680b6-082e-4b89-b847-5803fe6c4cb6" /> Would still display a Select All checkbox and allow the user to select multiple options this way <img width="460" alt="Screenshot 2025-07-02 at 3 53 32 PM" src="https://github.com/user-attachments/assets/7d384015-63db-4a76-9449-35c377280e46" /> This PR hides Select All if the single selection option is chosen: <img width="459" alt="Screenshot 2025-07-02 at 3 53 42 PM" src="https://github.com/user-attachments/assets/01eae209-d358-4e94-a6e2-6c1d9fb60aa1" /> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Summary
Controls configured to only allow a single selection

Would still display a Select All checkbox and allow the user to select multiple options this way

This PR hides Select All if the single selection option is chosen:

Checklist