Skip to content

[Search boost] Create the boost rule flyout - #306711

Draft
galaxxyz wants to merge 9 commits into
elastic:mainfrom
galaxxyz:search-boost-rule-flyout
Draft

galaxxyz wants to merge 9 commits into
elastic:mainfrom
galaxxyz:search-boost-rule-flyout

Conversation

@galaxxyz

Copy link
Copy Markdown
Contributor

Summary

Closes #303827

Note

Built on top of #306380 (project default flyout).

Adds the boost rule flyout to Search boost, in create and edit modes. It takes its data as props and reports actions through callbacks, and for now it only runs in Storybook. #303832 connects it to the API.

Screenshot 2026-11-20 at 14 34 49 Screenshot 2026-11-20 at 14 35 05

Checklist

Identify risks

Low. The flyout isn't wired into the app yet; it only runs in Storybook and unit tests. The Search boost plugin is also disabled by default (xpack.searchBoost.enabled: false).

galaxxyz and others added 9 commits November 20, 2026 03:34
Elasticsearch names the Vector DB indices profile "Default", so the UI should match instead of calling it "Performant". The i18n id is renamed to match the profile name.

Co-authored-by: Cursor <cursoragent@cursor.com>
… type

The project default flyout needs each type's managed profiles in cost
order, and the one to mark as the default. Expose both from
common/managed_profiles instead of keeping the list private. Indices have
no marked default, because their only managed profile is already labeled
"Default".
The Pick of name, isHidden and outrankedByRuleName accepted the same objects as BoostRuleMatch, since its other fields are optional. Using the type directly makes the props easier to read.

Co-authored-by: Cursor <cursoragent@cursor.com>
… card

The count badge that opens the matches popover is needed by the project default card and by the flyout footers. It counts only the matches the rule applies to and takes a function for its accessible label, so callers don't compute the count twice.

Co-authored-by: Cursor <cursoragent@cursor.com>
Shows what a rule or profile applies to above a flyout's buttons: the match count with its popover, the storage size and, for data streams, the boost timeline of the profile.

Co-authored-by: Cursor <cursoragent@cursor.com>
Lets users change the profile the default rule uses for a type. It offers the managed profiles in cost order, marks the one new projects start with, and has a custom option to pick one of the user's own profiles. The custom choice is kept when switching between options.

Closes elastic#304397.

Co-authored-by: Cursor <cursoragent@cursor.com>
Covers both types, custom and converted profiles, no custom profiles, and the flyout without its applies to footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the custom profile and "without applies to" stories, and name the converted profile story after what it shows: a built-in profile with no label or description listed for it.

Co-authored-by: Cursor <cursoragent@cursor.com>
Lets users create and edit a boost rule: name, boost profile, one index pattern or name with a preview of the indices or data streams it matches, and priority, with the project default flyout's "Applies to" footer. Name and index pattern validation lives in common/ so the profile flyout and the server routes can reuse it. Priority ties are reported the way Elasticsearch decides them.

Closes elastic#303827.

Co-authored-by: Cursor <cursoragent@cursor.com>
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown
Contributor
🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!
  • Click to trigger kibana-entity-store-performance-from-pr for this PR!
  • Click to trigger kibana-storybooks-from-pr for this PR!
  • Click to trigger kibana-static-checks for this PR!

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Search boost] Create the boost rule flyout

1 participant