Skip to content

[dashboard] unskip platform/plugins/private/links/public/components/editor tests#262904

Open
nreese wants to merge 21 commits intoelastic:mainfrom
nreese:issue_253303
Open

[dashboard] unskip platform/plugins/private/links/public/components/editor tests#262904
nreese wants to merge 21 commits intoelastic:mainfrom
nreese:issue_253303

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Apr 13, 2026

Closes #253303

Test skipped because it some times timed out (took over 5000ms). The test is slow because it renders a lazy loaded component. This PR resolves the lazy load by moving DashboardNavigationOptionsEditor into a package. Unfortunately, this required creating 3 packages, schema, common, and a components package.

The tests were originally added in #211041. #211041 fixed a bug but did not resolve the code smell that caused the bug. The problem is that options state is getting stored at 2 different levels in 2 different useStates. This PR resolves that code smell by removing LinkOption component and moving it into LinkEditor and then removing duplicated linkOptions state.

Original test run (with lazy load component). Notice how first test case takes over a second because lazy load component has to load.
Screenshot 2026-04-13 at 3 32 25 PM

This PR test run (with component in package - so no lazy loading needed).
Screenshot 2026-04-13 at 3 34 26 PM

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Apr 13, 2026

/ci

Comment thread src/platform/plugins/private/links/public/components/editor/link_editor.tsx Outdated
nreese and others added 6 commits April 13, 2026 15:49
This reverts commit 7091dd4.
…nk_editor.tsx

Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com>
@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Apr 13, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Apr 14, 2026

/ci

@elasticmachine
Copy link
Copy Markdown
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

History

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Apr 14, 2026

/ci

@nreese nreese marked this pull request as ready for review April 14, 2026 14:54
@nreese nreese requested a review from a team as a code owner April 14, 2026 14:54
@nreese nreese added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// label Apr 14, 2026
@nreese nreese added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.4.0 v9.5.0 labels Apr 14, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.4.0 v9.5.0

Projects

None yet

4 participants