Skip to content

[App Menu Standardization] Handle subitems popover test id#249182

Merged
kowalczyk-krzysztof merged 3 commits intoelastic:mainfrom
kowalczyk-krzysztof:feat/handle-popover-panel-testId
Jan 15, 2026
Merged

[App Menu Standardization] Handle subitems popover test id#249182
kowalczyk-krzysztof merged 3 commits intoelastic:mainfrom
kowalczyk-krzysztof:feat/handle-popover-panel-testId

Conversation

@kowalczyk-krzysztof
Copy link
Copy Markdown
Member

Summary

This PR fixes sub items with popovers not having their test id passed down to the panel.

Closes: https://github.com/elastic/kibana-team/issues/2650

@kowalczyk-krzysztof kowalczyk-krzysztof self-assigned this Jan 15, 2026
@kowalczyk-krzysztof kowalczyk-krzysztof requested a review from a team as a code owner January 15, 2026 12:34
@kowalczyk-krzysztof kowalczyk-krzysztof added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// labels Jan 15, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@kowalczyk-krzysztof kowalczyk-krzysztof changed the title Handle subitems popover test id [App Menu Standardization] Handle subitems popover test id Jan 15, 2026
@kowalczyk-krzysztof kowalczyk-krzysztof force-pushed the feat/handle-popover-panel-testId branch from 091e28d to 5d2f978 Compare January 15, 2026 12:38
@@ -46,7 +46,9 @@ export const AppMenuPopover = ({
onClose,
onCloseOverflowButton,
}: AppMenuContextMenuProps) => {
const panels = useMemo(
const [activePanelId, setActivePanelId] = useState<string>('0');
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.

is '0' a valid logical value here?

Copy link
Copy Markdown
Member Author

@kowalczyk-krzysztof kowalczyk-krzysztof Jan 15, 2026

Choose a reason for hiding this comment

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

Panel ids can have both string and number values. Since we're not allowing for setting them by users, we can keep them as one type and using strings seems easiest here to avoid type casting.

@kowalczyk-krzysztof kowalczyk-krzysztof force-pushed the feat/handle-popover-panel-testId branch from ee14e6f to 9fd31a8 Compare January 15, 2026 12:52
@kowalczyk-krzysztof kowalczyk-krzysztof enabled auto-merge (squash) January 15, 2026 12:58
@elasticmachine
Copy link
Copy Markdown
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #117 / dashboard app - group 6 dashboard snapshots compare controls snapshot in dark mode
  • [job] [logs] FTR Configs #117 / dashboard app - group 6 dashboard snapshots compare controls snapshot in dark mode

cc @kowalczyk-krzysztof

@kowalczyk-krzysztof kowalczyk-krzysztof merged commit 50140ed into elastic:main Jan 15, 2026
14 checks passed
@kowalczyk-krzysztof kowalczyk-krzysztof deleted the feat/handle-popover-panel-testId branch January 16, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants