Skip to content

AND, OR and NOT in client side conditional filters#9795

Open
emmatown wants to merge 2 commits intofix-client-side-filtersfrom
operators-in-client-side-filters
Open

AND, OR and NOT in client side conditional filters#9795
emmatown wants to merge 2 commits intofix-client-side-filtersfrom
operators-in-client-side-filters

Conversation

@emmatown
Copy link
Copy Markdown
Member

@emmatown emmatown commented Mar 27, 2026

This adds recursive AND, OR, and NOT support to Admin UI client-side conditional filters, including actionMode, fieldMode and isRequired

const isReportDisabled = {
  OR: [
    { hidden: { equals: true } },
    { reportedAt: { not: { equals: null } } },
  ],
} as const

ui: {
  itemView: {
    actionMode: { disabled: isReportDisabled },
  },
  listView: {
    actionMode: { disabled: isReportDisabled },
  },
}

@emmatown emmatown force-pushed the operators-in-client-side-filters branch from fc22c1c to ab8ed2c Compare March 27, 2026 00:20
@emmatown emmatown force-pushed the operators-in-client-side-filters branch from ab8ed2c to 0c9aacd Compare March 27, 2026 00:41
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dcousens <413395+dcousens@users.noreply.github.com>
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.

3 participants