Skip to content

Revert "[EuiFlyoutMenu] Add pagination controls with previous/next buttons and counter" - #9725

Merged
weronikaolejniczak merged 1 commit into
mainfrom
revert-9722-flyout-pagination
Jun 18, 2026
Merged

weronikaolejniczak merged 1 commit into
mainfrom
revert-9722-flyout-pagination

Conversation

@paulinashakirova

Copy link
Copy Markdown

Reverts #9722

Need to fix docs.

Copilot AI review requested due to automatic review settings June 18, 2026 10:33
@paulinashakirova
paulinashakirova requested a review from a team as a code owner June 18, 2026 10:33
@weronikaolejniczak
weronikaolejniczak enabled auto-merge (squash) June 18, 2026 10:35

Copilot AI left a comment

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.

Pull request overview

Reverts the previously added EuiFlyoutMenu pagination feature (#9722), removing the related API surface, store support, tests, stories, docs, and changelog entry to restore the pre-9722 behavior.

Changes:

  • Removes flyoutMenuProps.pagination and the EuiFlyoutMenuPagination type, plus all related rendering/UI/styles and tests.
  • Removes flyout manager pagination support (setPagination, selector hook, reducer/action wiring) and related stories/tests/mocks.
  • Removes the pagination documentation include and deletes the standalone pagination MDX and upcoming changelog entry.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/website/docs/components/containers/flyout/_flyout_menu.mdx Removes the pagination docs include from the flyout menu docs page.
packages/website/docs/components/containers/flyout/_flyout_menu_pagination.mdx Deletes the pagination docs example page.
packages/eui/src/components/flyout/use_flyout_menu.ts Removes pagination from “menu has content” detection logic.
packages/eui/src/components/flyout/manager/types.ts Removes manager state/API typing for pagination.
packages/eui/src/components/flyout/manager/store.ts Removes store method for setting pagination.
packages/eui/src/components/flyout/manager/store.test.ts Removes store tests for setPagination.
packages/eui/src/components/flyout/manager/selectors.ts Removes useFlyoutPagination selector hook.
packages/eui/src/components/flyout/manager/reducer.ts Removes reducer handling for pagination actions.
packages/eui/src/components/flyout/manager/reducer.test.ts Removes reducer tests for pagination actions.
packages/eui/src/components/flyout/manager/index.ts Removes exports for pagination-related action/hook.
packages/eui/src/components/flyout/manager/hooks.ts Removes pagination hook re-export.
packages/eui/src/components/flyout/manager/flyout_sessions.stories.tsx Removes the cross-root pagination story/demo.
packages/eui/src/components/flyout/manager/flyout_managed.tsx Removes logic that merged store pagination with prop pagination and suppressed history/back UI.
packages/eui/src/components/flyout/manager/flyout_managed.test.tsx Updates mocks to remove useFlyoutPagination.
packages/eui/src/components/flyout/manager/actions.ts Removes pagination action type and action creator.
packages/eui/src/components/flyout/manager/mocks/index.ts Removes setPagination from mocked manager API.
packages/eui/src/components/flyout/index.ts Stops exporting EuiFlyoutMenuPagination.
packages/eui/src/components/flyout/flyout_menu.tsx Removes pagination prop/type and the pagination UI implementation.
packages/eui/src/components/flyout/flyout_menu.test.tsx Removes pagination behavior tests.
packages/eui/src/components/flyout/flyout_menu.styles.ts Removes pagination counter styling.
packages/eui/src/components/flyout/flyout_menu.stories.tsx Removes the pagination story example.
packages/eui/changelogs/upcoming/9722.md Deletes the upcoming changelog entry for the reverted feature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@weronikaolejniczak weronikaolejniczak added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Jun 18, 2026
@weronikaolejniczak
weronikaolejniczak merged commit 6c00d51 into main Jun 18, 2026
4 of 5 checks passed
@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

@weronikaolejniczak
weronikaolejniczak deleted the revert-9722-flyout-pagination branch June 18, 2026 10:43
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
3 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euipopover (1 difference)

StoryBeforeAfterDiff
playground desktop

euidatagrid (2 differences)

StoryBeforeAfterDiff
compact desktop
additional controls options desktop

@elasticmachine

elasticmachine commented Jun 18, 2026 •

Copy link
Copy Markdown
Collaborator

💔 Build Failed

Failed CI Steps

History

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
2 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euipopover (1 difference)

StoryBeforeAfterDiff
playground desktop

euidatagrid (1 difference)

StoryBeforeAfterDiff
additional controls options desktop

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

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants