Skip to content

[Shared] Add @kbn/dashboards-selector package#233445

Merged
cesco-f merged 3 commits intoelastic:mainfrom
cesco-f:dashboards-combobox
Sep 1, 2025
Merged

[Shared] Add @kbn/dashboards-selector package#233445
cesco-f merged 3 commits intoelastic:mainfrom
cesco-f:dashboards-combobox

Conversation

@cesco-f
Copy link
Contributor

@cesco-f cesco-f commented Aug 29, 2025

This pull request introduces a new shared package, @kbn/dashboards-selector, to enable reuse of the combobox component. This component is currently used to link dashboards to rules, and it will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
Screenshot 2025-08-29 at 12 07 18

This update is necessary for the implementation of #233265.

@cesco-f cesco-f added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Aug 29, 2025
@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Aug 29, 2025
@cesco-f cesco-f changed the title [Shared] Created @kbn/dashboards-combobox package [Shared] Add @kbn/dashboards-combobox package Aug 29, 2025
@cesco-f cesco-f force-pushed the dashboards-combobox branch from b38c330 to 19e996c Compare August 29, 2025 10:08
@cesco-f cesco-f marked this pull request as ready for review August 29, 2025 10:08
@cesco-f cesco-f requested a review from a team as a code owner August 29, 2025 10:08
@rudolf rudolf requested a review from a team August 29, 2025 10:50
@cesco-f cesco-f force-pushed the dashboards-combobox branch 2 times, most recently from 35ebc88 to 620942c Compare August 29, 2025 11:54
@cesco-f cesco-f changed the title [Shared] Add @kbn/dashboards-combobox package [Shared] Add @kbn/dashboards package Aug 29, 2025
@@ -0,0 +1,48 @@
# `@kbn/dashboards`
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename this to something more specific? Maybe something like @kbn/dashboards-selector?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I had a hard time finding a good name 😂

package.json Outdated
"@kbn/dashboard-enhanced-plugin": "link:x-pack/platform/plugins/shared/dashboard_enhanced",
"@kbn/dashboard-markdown": "link:src/platform/plugins/shared/dashboard_markdown",
"@kbn/dashboard-plugin": "link:src/platform/plugins/shared/dashboard",
"@kbn/dashboards": "link:src/platform/packages/shared/dashboards",
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally, the new package lives under the dashboards folder, something like link:src/platform/packages/shared/dashboards/dashboard-selector or something like that. Then we have room for other dashboard packages in the same folder.

Copy link
Contributor Author

@cesco-f cesco-f Aug 29, 2025

Choose a reason for hiding this comment

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

Sorry, I didn't fully get what you said in that Slack thread, it should be good now.

@cesco-f cesco-f force-pushed the dashboards-combobox branch from 620942c to 905b332 Compare August 29, 2025 13:43
@cesco-f cesco-f changed the title [Shared] Add @kbn/dashboards package [Shared] Add @kbn/dashboards-selector package Aug 29, 2025
@cesco-f cesco-f force-pushed the dashboards-combobox branch from 905b332 to 1a845cf Compare August 29, 2025 13:46
@cesco-f cesco-f force-pushed the dashboards-combobox branch from 1a845cf to f26d53b Compare August 29, 2025 13:48
@cesco-f cesco-f requested a review from nickpeihl August 29, 2025 15:12
Copy link
Contributor

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

lgtm! just a nit about package type.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
apm 1973 1975 +2
datasetQuality 838 840 +2
discover 1399 1401 +2
infra 1534 1536 +2
ml 2504 2506 +2
monitoring 728 730 +2
observability 1400 1402 +2
slo 1242 1244 +2
synthetics 1350 1352 +2
transform 787 789 +2
triggersActionsUi 969 971 +2
uptime 871 873 +2
total +24

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/dashboards-selector - 7 +7

Async chunks

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

id before after diff
apm 2.6MB 2.6MB +218.0B
datasetQuality 436.7KB 436.9KB +218.0B
discover 1.1MB 1.1MB +218.0B
infra 1.0MB 1.0MB +218.0B
ml 5.4MB 5.4MB +209.0B
monitoring 631.0KB 631.2KB +218.0B
observability 1.3MB 1.3MB +217.0B
slo 970.0KB 970.2KB +218.0B
synthetics 1.0MB 1.0MB +212.0B
transform 622.2KB 622.4KB +218.0B
triggersActionsUi 1.5MB 1.5MB +220.0B
uptime 491.5KB 491.7KB +218.0B
total +2.5KB
Unknown metric groups

API count

id before after diff
@kbn/dashboards-selector - 7 +7

ESLint disabled line counts

id before after diff
@kbn/dashboards-selector - 1 +1

Total ESLint disabled count

id before after diff
@kbn/dashboards-selector - 1 +1

History

@cesco-f cesco-f merged commit d068a8a into elastic:main Sep 1, 2025
13 checks passed
@cesco-f cesco-f deleted the dashboards-combobox branch September 1, 2025 09:33
ymao1 pushed a commit to ymao1/kibana that referenced this pull request Sep 2, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
elastic#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
MichelLosier pushed a commit to MichelLosier/kibana that referenced this pull request Sep 2, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
elastic#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
kowalczyk-krzysztof pushed a commit to kowalczyk-krzysztof/kibana that referenced this pull request Sep 3, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
elastic#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:obs-ux-management PRs authored by the obs ux management team backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants