kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[Links] Migrate Links panel to the React embeddable framework

Open nickpeihl opened this issue 5 months ago • 7 comments

Fixes #174970

Summary

Migrates the legacy Links embeddable to the React embeddable framework.

Additionally, the new embeddable factory now resolves the dashboards info prior to rendering the Links component. Prior to this change, the DashboardLinkComponent would be responsible for asynchronously loading dashboards info and rendering a loading icon. This change reduces the complexity of the DashboardLinkComponent as the resolved state is now passed in as props.

nickpeihl avatar Mar 13 '24 18:03 nickpeihl

/ci

nickpeihl avatar Apr 23 '24 19:04 nickpeihl

/ci

nickpeihl avatar Apr 23 '24 19:04 nickpeihl

/ci

nickpeihl avatar Apr 26 '24 16:04 nickpeihl

/ci

nickpeihl avatar Apr 26 '24 16:04 nickpeihl

Pinging @elastic/kibana-presentation (Team:Presentation)

elasticmachine avatar Apr 26 '24 18:04 elasticmachine

/ci

nickpeihl avatar Apr 26 '24 18:04 nickpeihl

:green_heart: Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
embeddable 138 139 +1
links 130 126 -4
total -3

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
embeddable 463 468 +5
links 57 4 -53
total -48

Async chunks

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

id before after diff
links 23.0KB 34.9KB +11.9KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
dashboard 12 11 -1
links 6 0 -6
total -7

Page load bundle

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

id before after diff
embeddable 70.1KB 70.3KB +248.0B
links 33.8KB 25.1KB -8.7KB
total -8.4KB
Unknown metric groups

API count

id before after diff
embeddable 573 578 +5
links 57 4 -53
total -48

History

  • :broken_heart: Build #207942 failed 6e2c83f915714ece533fd1bee62fce3d6358e9c7
  • :green_heart: Build #207625 succeeded fb45d4590bf45d17dfa2c3d369d8c84a0c1bcec6
  • :broken_heart: Build #207583 failed b5b240d33cda3a961dd84b266242915fc1bce030
  • :yellow_heart: Build #206631 was flaky 920f143c3e856232b907a295c7e579df7961c66d
  • :broken_heart: Build #206464 failed 124e91dcb0fe968975a7d0208d04e21d25d9b2f8

To update your PR or re-run it, just comment with: @elasticmachine merge upstream

kibana-ci avatar May 06 '24 15:05 kibana-ci

Note for reviewers: This currently has a bug where by-reference Links panels do not apply dynamic panel sizes because the attributes are only loaded in the buildEmbeddable method. This will be fixed when https://github.com/elastic/kibana/pull/182523 lands.

nickpeihl avatar May 07 '24 18:05 nickpeihl