Skip to content

[Fleet] Implement new category/subcategory UI #147125

@kpollich

Description

@kpollich

Since the Elastic Package Spec now supports category/subcategory relationships, we need to make some UI adjustments in the Integrations application to support the new nested category structure.

Example categories API JSON: https://github.com/elastic/package-registry/blob/main/testdata/generated/categories.json

Implementation

  • Build a nested category/subcategory structure based on the parent_id and parent_title fields returned from the EPR packages API
  • When filtering to a category that contains subcategories, an additional level of filtering is displayed above the integrations grid
    • The first X amount (ordered by count of integrations) subcategories appear as clickable buttons in this list
    • A "see more" style button (see designs) is displayed for any remaining subcategories
      • We let the subcategories overflow on one row with a gradient depicting overflow. We would still need to calculate whether the "see more" button should be present or not in case there the number of subcategories is too few to depict overflow.
    • Clicking a subcategory filters the list of integrations down to only those that contain that subcategory
    • URL state is updated based on the selected category and subcategory
    • Only a single subcategory can be selected at a time - no additive filtering
  • Implement changes under feature flag (until all the new subcategories are added in epr)

Designs

image

Metadata

Metadata

Assignees

Labels

QA:ValidatedIssue has been validated by QATeam:FleetTeam label for Observability Data Collection Fleet team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions