Skip to content

fix: [filter-chip] show the active operator - #1005

Open
rsbh wants to merge 1 commit into
mainfrom
fix/filter-chip-operator
Open

rsbh wants to merge 1 commit into
mainfrom
fix/filter-chip-operator

Conversation

@rsbh

@rsbh rsbh commented Nov 6, 2026

Copy link
Copy Markdown
Member

Summary

  • FilterChip seeded its operator from the first entry of its list, so a restored filter showed the wrong operator while the rows were filtered by the real one.

  • FilterChip takes an operation prop, the active operator by its value. A value the list does not have falls back to the first one.

  • DataTable and DataView pass the operator the query carries, so changing it in the chip and reading it back stay in step.

  • Tests cover the chip prop and a restored neq filter in both DataTable and DataView.

  • I have followed the pull request section of the contributing guide.

The chip seeded its operator from the first entry of its list, so a
restored filter rendered the wrong operator while the rows were filtered
by the real one. FilterChip now takes an operation prop, and DataTable
and DataView pass the operator the query carries.
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
apsara Ready Ready Preview Nov 6, 2026 7:39am UTC

@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b3f3ddf8-15d5-4c5e-9d36-15ae4a276d93
Commits

Reviewing files that changed from the base of the PR and between 9331d90 and c889278.

Files selected for processing: 8

  • apps/www/src/content/docs/components/filter-chip/index.mdx
  • apps/www/src/content/docs/components/filter-chip/props.ts
  • packages/react/components/data-table/__tests__/data-table.test.tsx
  • packages/react/components/data-table/components/filters.tsx
  • packages/react/components/data-view/__tests__/data-view.test.tsx
  • packages/react/components/data-view/components/filters.tsx
  • packages/react/components/filter-chip/__tests__/filter-chip.test.tsx
  • packages/react/components/filter-chip/filter-chip.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pkg-pr-new

pkg-pr-new Bot commented Nov 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@raystack/apsara@1005

commit: c889278

This branch was successfully deployed

1 active deployment
Preview — c8892784 Deployed Nov 6, 2026 by vercel[bot]
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.

1 participant