Skip to content

fix: rework filtering behaviour - #2413

Merged
Philipinho merged 2 commits into
mainfrom
fix/multi-select
Aug 25, 2026
Merged

Philipinho merged 2 commits into
mainfrom
fix/multi-select

Conversation

@salihudickson

Copy link
Copy Markdown
Collaborator

closes: #2407

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

Reworks view-filter editing with staged changes and multi-value choice filtering.

Changes:

  • Adds MultiSelect support for choice filters.
  • Adds Save/Cancel filter editing.
  • Updates filter condition editing behavior.
Suppressed comments (1)

apps/client/src/ee/base/components/views/view-filter-config.tsx:142

  • Clearing the last selected choice emits [], so Save persists an active any/none condition with an array value even though no choice is selected. The existing multi-person filter normalizes an empty selection to undefined (filter-person-input.tsx:69); use the same normalization here, otherwise an empty array can be evaluated as a real filter rather than an unset value.
          onChange={(values) => onChange(values)}

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +130 to +134
if (isMultiChoice(condition.op)) {
const { value } = condition;
const selected = (
Array.isArray(value) ? value : value ? [value] : []
).filter((id) => choices.some((c) => c.id === id));
@salihudickson

Copy link
Copy Markdown
Collaborator Author

@Philipinho I changed the filtering UX so users have to save changes before they apply. This slightly reduces unnecessary API calls and avoids UI flashes from the base component unmounting and remounting.

Not sure if you agree with this or if you prefer the way it was before?

@salihudickson salihudickson changed the title rework filtering behaviour fix(ee): rework filtering behaviour Aug 22, 2026
@salihudickson salihudickson changed the title fix(ee): rework filtering behaviour fix: rework filtering behaviour Aug 22, 2026
@Philipinho

Copy link
Copy Markdown
Member

LGTM!

@Philipinho
Philipinho merged commit 95cef61 into main Aug 25, 2026
5 checks passed
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.

Multi-select behaviour in filters (usability)

3 participants