Skip to content

Resolve issue with spaces list displaying "no match" text on load#255654

Merged
eokoneyo merged 3 commits intoelastic:mainfrom
eokoneyo:chore/resolve-255554
Mar 9, 2026
Merged

Resolve issue with spaces list displaying "no match" text on load#255654
eokoneyo merged 3 commits intoelastic:mainfrom
eokoneyo:chore/resolve-255554

Conversation

@eokoneyo
Copy link
Copy Markdown
Contributor

@eokoneyo eokoneyo commented Mar 3, 2026

Summary

Closes #255554

Fixes the issue where on loading the spaces selector, the user would get presented the text "No spaces match". This happened because of how the space selector component was structured.

Now all content is gated behind a loading state, since we want to definitely display the available space if this screen is presented to the user, and it's only till the request to get the user's space resolves that we will display any content, this approach prevents the situation where the user is presented some false message that they have no spaces initially.

Note for reviewers

  • The space selector component has been refactored from class component to functional component
  • This change adopts react query for fetching the space list for the user.
  • Unit tests for the space selector component has been migrated from enzyme to RTL
@eokoneyo eokoneyo self-assigned this Mar 3, 2026
@eokoneyo eokoneyo added release_note:fix Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// labels Mar 3, 2026
@eokoneyo
Copy link
Copy Markdown
Contributor Author

eokoneyo commented Mar 3, 2026

/ci

@eokoneyo eokoneyo marked this pull request as ready for review March 3, 2026 07:57
@eokoneyo eokoneyo requested a review from a team as a code owner March 3, 2026 07:57
@eokoneyo eokoneyo requested a review from azasypkin March 3, 2026 07:57
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@eokoneyo eokoneyo changed the title resolve issue with spaces list displaying no match on load Mar 3, 2026
@eokoneyo eokoneyo added the backport:all-open Backport to all branches that could still receive a release label Mar 3, 2026
@eokoneyo eokoneyo force-pushed the chore/resolve-255554 branch 2 times, most recently from 5d53076 to 679022b Compare March 3, 2026 08:25
@eokoneyo
Copy link
Copy Markdown
Contributor Author

eokoneyo commented Mar 5, 2026

@elasticmachine merge upstream

{renderListFilterControls()}
<Fragment>
{isLoading ? (
<EuiLoadingSpinner size="xl" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix! Space Selector definitely looks better now, but I see that the loading spinner isn't centered, is it something we can fix as well?

Screen.Recording.2026-03-06.at.13.06.35.mov
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Definitely... I'll make some changes for this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Resolved in 36a8584 (this PR)

spaces_loader_centered.mov
@eokoneyo eokoneyo force-pushed the chore/resolve-255554 branch 2 times, most recently from 9f2a403 to 36a8584 Compare March 6, 2026 17:51
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 6, 2026

Caution

Review failed

The head commit changed during the review from 9f2a403 to 36a8584.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • 🛠️ Update Documentation: Commit on current branch
  • 🛠️ Update Documentation: Create PR

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

@eokoneyo eokoneyo force-pushed the chore/resolve-255554 branch from 36a8584 to 1b8c7e9 Compare March 6, 2026 19:49
@eokoneyo
Copy link
Copy Markdown
Contributor Author

eokoneyo commented Mar 9, 2026

@elasticmachine merge upstream

@eokoneyo eokoneyo requested a review from azasypkin March 9, 2026 08:56
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout: [ security / entity_store ] plugin / local-serverless-security_complete - Entity Store Logs Extraction with pagination (max 5 docs per page) - Should extract properly extract host with pagination

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
spaces 238 239 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
spaces 223.6KB 223.0KB -595.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
spaces 26.7KB 26.7KB -31.0B

History

cc @eokoneyo

Copy link
Copy Markdown
Contributor

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

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

Code LGTM with one minor nit. Tested locally, works as expected, thanks!

/>
);
};
const onViewModeChange = useCallback((viewMode: ViewMode) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: I believe we can just use setCurrentViewMode as onChange handler directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True... I think I'd rather leave it as is, it reads better in my opinion

@eokoneyo eokoneyo merged commit 1be1053 into elastic:main Mar 9, 2026
18 checks passed
@eokoneyo eokoneyo deleted the chore/resolve-255554 branch March 9, 2026 13:33
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3

https://github.com/elastic/kibana/actions/runs/22855934519

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts
9.2 Backport failed because of merge conflicts
9.3 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 255654

Questions ?

Please refer to the Backport tool documentation

DennisKo pushed a commit to DennisKo/kibana that referenced this pull request Mar 9, 2026
…astic#255654)

## Summary

Closes elastic#255554

Fixes the issue where on loading the spaces selector, the user would get
presented the text "No spaces match". This happened because of how the
space selector component was structured.

Now all content is gated behind a loading state, since we want to
definitely display the available space if this screen is presented to
the user, and it's only till the request to get the user's space
resolves that we will display any content, this approach prevents the
situation where the user is presented some false message that they have
no spaces initially.

_Note for reviewers_

- The space selector component has been refactored from class component
to functional component
- This change adopts react query for fetching the space list for the
user.
- Unit tests for the space selector component has been migrated from
enzyme to RTL

<!--
### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
eokoneyo added a commit to eokoneyo/kibana that referenced this pull request Mar 10, 2026
…astic#255654)

## Summary

Closes elastic#255554

Fixes the issue where on loading the spaces selector, the user would get
presented the text "No spaces match". This happened because of how the
space selector component was structured.

Now all content is gated behind a loading state, since we want to
definitely display the available space if this screen is presented to
the user, and it's only till the request to get the user's space
resolves that we will display any content, this approach prevents the
situation where the user is presented some false message that they have
no spaces initially.

_Note for reviewers_

- The space selector component has been refactored from class component
to functional component
- This change adopts react query for fetching the space list for the
user.
- Unit tests for the space selector component has been migrated from
enzyme to RTL

<!--
### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 1be1053)

# Conflicts:
#	x-pack/platform/plugins/shared/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap
@eokoneyo
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.3
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

eokoneyo added a commit to eokoneyo/kibana that referenced this pull request Mar 10, 2026
…astic#255654)

## Summary

Closes elastic#255554

Fixes the issue where on loading the spaces selector, the user would get
presented the text "No spaces match". This happened because of how the
space selector component was structured.

Now all content is gated behind a loading state, since we want to
definitely display the available space if this screen is presented to
the user, and it's only till the request to get the user's space
resolves that we will display any content, this approach prevents the
situation where the user is presented some false message that they have
no spaces initially.

_Note for reviewers_

- The space selector component has been refactored from class component
to functional component
- This change adopts react query for fetching the space list for the
user.
- Unit tests for the space selector component has been migrated from
enzyme to RTL

<!--
### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 1be1053)

# Conflicts:
#	x-pack/platform/plugins/shared/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap
eokoneyo added a commit that referenced this pull request Mar 11, 2026
…ad (#255654) (#256981)

# Backport

This will backport the following commits from `main` to `9.2`:
- [Resolve issue with spaces list displaying "no match" text on load
(#255654)](#255654)

<!--- Backport version: 10.2.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Eyo O.
Eyo","email":"7893459+eokoneyo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-03-09T13:33:16Z","message":"Resolve
issue with spaces list displaying \"no match\" text on load
(#255654)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/255554\n\nFixes the issue where
on loading the spaces selector, the user would get\npresented the text
\"No spaces match\". This happened because of how the\nspace selector
component was structured.\n\nNow all content is gated behind a loading
state, since we want to\ndefinitely display the available space if this
screen is presented to\nthe user, and it's only till the request to get
the user's space\nresolves that we will display any content, this
approach prevents the\nsituation where the user is presented some false
message that they have\nno spaces initially.\n\n_Note for
reviewers_\n\n- The space selector component has been refactored from
class component\nto functional component\n- This change adopts react
query for fetching the space list for the\nuser.\n- Unit tests for the
space selector component has been migrated from\nenzyme to
RTL\n\n\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1be1053112521429480a79b4eba6029bad7164a3","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.4.0"],"title":"Resolve
issue with spaces list displaying \"no match\" text on
load","number":255654,"url":"https://github.com/elastic/kibana/pull/255654","mergeCommit":{"message":"Resolve
issue with spaces list displaying \"no match\" text on load
(#255654)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/255554\n\nFixes the issue where
on loading the spaces selector, the user would get\npresented the text
\"No spaces match\". This happened because of how the\nspace selector
component was structured.\n\nNow all content is gated behind a loading
state, since we want to\ndefinitely display the available space if this
screen is presented to\nthe user, and it's only till the request to get
the user's space\nresolves that we will display any content, this
approach prevents the\nsituation where the user is presented some false
message that they have\nno spaces initially.\n\n_Note for
reviewers_\n\n- The space selector component has been refactored from
class component\nto functional component\n- This change adopts react
query for fetching the space list for the\nuser.\n- Unit tests for the
space selector component has been migrated from\nenzyme to
RTL\n\n\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1be1053112521429480a79b4eba6029bad7164a3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/255654","number":255654,"mergeCommit":{"message":"Resolve
issue with spaces list displaying \"no match\" text on load
(#255654)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/255554\n\nFixes the issue where
on loading the spaces selector, the user would get\npresented the text
\"No spaces match\". This happened because of how the\nspace selector
component was structured.\n\nNow all content is gated behind a loading
state, since we want to\ndefinitely display the available space if this
screen is presented to\nthe user, and it's only till the request to get
the user's space\nresolves that we will display any content, this
approach prevents the\nsituation where the user is presented some false
message that they have\nno spaces initially.\n\n_Note for
reviewers_\n\n- The space selector component has been refactored from
class component\nto functional component\n- This change adopts react
query for fetching the space list for the\nuser.\n- Unit tests for the
space selector component has been migrated from\nenzyme to
RTL\n\n\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1be1053112521429480a79b4eba6029bad7164a3"}}]}]
BACKPORT-->
eokoneyo added a commit that referenced this pull request Mar 11, 2026
…ad (#255654) (#256980)

# Backport

This will backport the following commits from `main` to `9.3`:
- [Resolve issue with spaces list displaying "no match" text on load
(#255654)](#255654)

<!--- Backport version: 10.2.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Eyo O.
Eyo","email":"7893459+eokoneyo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-03-09T13:33:16Z","message":"Resolve
issue with spaces list displaying \"no match\" text on load
(#255654)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/255554\n\nFixes the issue where
on loading the spaces selector, the user would get\npresented the text
\"No spaces match\". This happened because of how the\nspace selector
component was structured.\n\nNow all content is gated behind a loading
state, since we want to\ndefinitely display the available space if this
screen is presented to\nthe user, and it's only till the request to get
the user's space\nresolves that we will display any content, this
approach prevents the\nsituation where the user is presented some false
message that they have\nno spaces initially.\n\n_Note for
reviewers_\n\n- The space selector component has been refactored from
class component\nto functional component\n- This change adopts react
query for fetching the space list for the\nuser.\n- Unit tests for the
space selector component has been migrated from\nenzyme to
RTL\n\n\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1be1053112521429480a79b4eba6029bad7164a3","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.4.0"],"title":"Resolve
issue with spaces list displaying \"no match\" text on
load","number":255654,"url":"https://github.com/elastic/kibana/pull/255654","mergeCommit":{"message":"Resolve
issue with spaces list displaying \"no match\" text on load
(#255654)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/255554\n\nFixes the issue where
on loading the spaces selector, the user would get\npresented the text
\"No spaces match\". This happened because of how the\nspace selector
component was structured.\n\nNow all content is gated behind a loading
state, since we want to\ndefinitely display the available space if this
screen is presented to\nthe user, and it's only till the request to get
the user's space\nresolves that we will display any content, this
approach prevents the\nsituation where the user is presented some false
message that they have\nno spaces initially.\n\n_Note for
reviewers_\n\n- The space selector component has been refactored from
class component\nto functional component\n- This change adopts react
query for fetching the space list for the\nuser.\n- Unit tests for the
space selector component has been migrated from\nenzyme to
RTL\n\n\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1be1053112521429480a79b4eba6029bad7164a3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/255654","number":255654,"mergeCommit":{"message":"Resolve
issue with spaces list displaying \"no match\" text on load
(#255654)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/255554\n\nFixes the issue where
on loading the spaces selector, the user would get\npresented the text
\"No spaces match\". This happened because of how the\nspace selector
component was structured.\n\nNow all content is gated behind a loading
state, since we want to\ndefinitely display the available space if this
screen is presented to\nthe user, and it's only till the request to get
the user's space\nresolves that we will display any content, this
approach prevents the\nsituation where the user is presented some false
message that they have\nno spaces initially.\n\n_Note for
reviewers_\n\n- The space selector component has been refactored from
class component\nto functional component\n- This change adopts react
query for fetching the space list for the\nuser.\n- Unit tests for the
space selector component has been migrated from\nenzyme to
RTL\n\n\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1be1053112521429480a79b4eba6029bad7164a3"}}]}]
BACKPORT-->
qn895 pushed a commit to qn895/kibana that referenced this pull request Mar 11, 2026
…astic#255654)

## Summary

Closes elastic#255554

Fixes the issue where on loading the spaces selector, the user would get
presented the text "No spaces match". This happened because of how the
space selector component was structured.

Now all content is gated behind a loading state, since we want to
definitely display the available space if this screen is presented to
the user, and it's only till the request to get the user's space
resolves that we will display any content, this approach prevents the
situation where the user is presented some false message that they have
no spaces initially.

_Note for reviewers_

- The space selector component has been refactored from class component
to functional component
- This change adopts react query for fetching the space list for the
user.
- Unit tests for the space selector component has been migrated from
enzyme to RTL

<!--
### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release release_note:fix Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v9.2.7 v9.3.2 v9.4.0

4 participants