Skip to content

UX: unify filters for colors, themes, and components #33863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

awesomerobot
Copy link
Member

I'd like to unify our admin filtering around a central component that achieves some simple styling. It looks like this:

image

This sort of filter has already been implemented in the AI plugin, for the plugin index, and for color palettes. These implementations haven't been all tied up into a single component yet.

In this PR I've put some stand-alone filters through the new AdminFilterControls component.

This includes:

  • Filtering by theme (when you have 8 or more themes). We didn't have a filter here yet, but it's useful in some extreme cases (including development!)

  • Filtering by color palette. This existed already, but now uses the shared component.

  • Filtering by component. We already had a filter here, but it wasn't using this new unified style. This was a little trickier because it's not unusual for sites to have many components, so we paginate and filter these server-side. I've added support for callbacks in AdminFilterControls so it can support either client or server based filtering.

image image image

@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label Jul 25, 2025
@onResetFilters={{this.onResetFilters}}
@loading={{this.loading}}
>
<LoadMore @action={{this.loadMore}} @rootMargin="0px 0px 250px 0px">
Copy link
Member Author

Choose a reason for hiding this comment

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

the theme component pagination is currently a little bouncy, this starts loading more pages earlier to avoid it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n PRs which update English locale files or i18n related code
Development

Successfully merging this pull request may close these issues.

1 participant