Skip to content

Conversation

@victorlin
Copy link
Member

@victorlin victorlin commented Dec 31, 2025

Description of proposed changes

The commit "Strip group name in resource list" (c7b4498) had the unintended side effect of removing the group name from filter options.

This is a follow-up that keeps the visual change while allowing group names to be used in filtering. It is accomplished by adding a resource-level property to control which name parts are displayed, using that to hide the first name part on the groups page.

Related issue(s)

Closes #1286

Checklist

@victorlin victorlin self-assigned this Dec 31, 2025
@nextstrain-bot nextstrain-bot temporarily deployed to nextstrain-s-victorlin--b2gytt December 31, 2025 21:38 Inactive
Copy link
Contributor

@joverlee521 joverlee521 left a comment

Choose a reason for hiding this comment

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

The group name filtering doesn't work in the test app, but I think that's due to there only being a single group in the test env. Worked as expected when I tested locally.

Edit: Yup, the group name filter does not work when there's only a single group since options filter out search options present in every resource.

The commit "Strip group name in resource list" (c7b4498) had the
unintended side effect of removing the group name from filter options.

This is a follow-up that keeps the visual change while allowing group
names to be used in filtering. It is accomplished by adding a
resource-level property to control which name parts are displayed, using
that to hide the first name part on the groups page.
@victorlin victorlin force-pushed the victorlin/filter-group-name branch from 8fa57bc to 7b8ffec Compare January 5, 2026 21:53
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--b2gytt January 5, 2026 21:54 Inactive
@victorlin victorlin merged commit 0849acd into master Jan 5, 2026
10 checks passed
@victorlin victorlin deleted the victorlin/filter-group-name branch January 5, 2026 23:26
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.

Show group name as a filter option in /groups

5 participants