Skip to content

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

Merged
dcousens merged 3 commits intomainfrom
and-or-not-client-side-filters
Apr 9, 2026
Merged

AND, OR and NOT in client side conditional filters#9805
dcousens merged 3 commits intomainfrom
and-or-not-client-side-filters

Conversation

@emmatown
Copy link
Copy Markdown
Member

@emmatown emmatown commented Apr 9, 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 },
  },
}

@dcousens dcousens force-pushed the fix-client-side-filters branch 2 times, most recently from f954c2a to 429d0a7 Compare April 9, 2026 06:30
@dcousens dcousens force-pushed the and-or-not-client-side-filters branch from 066e789 to d110097 Compare April 9, 2026 06:39
Base automatically changed from fix-client-side-filters to main April 9, 2026 06:40
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dcousens <413395+dcousens@users.noreply.github.com>
Co-authored-by: Daniel Cousens <dcousens@users.noreply.github.com>
@dcousens dcousens force-pushed the and-or-not-client-side-filters branch from d110097 to 41392e3 Compare April 9, 2026 06:42
@dcousens dcousens force-pushed the and-or-not-client-side-filters branch from ca55f50 to f5c5673 Compare April 9, 2026 23:37
@dcousens dcousens enabled auto-merge (squash) April 9, 2026 23:39
@dcousens dcousens merged commit 6cf8974 into main Apr 9, 2026
51 checks passed
@dcousens dcousens deleted the and-or-not-client-side-filters branch April 9, 2026 23:46
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.

2 participants