feat(tables): filter by cell value from the cell menu, sort from the column menu - #6719
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Adds Sort ascending / descending and Clear sort to the column header options menu, wired to the same URL sort params as the options bar, with the active direction highlighted on that column. Fixes filter panel drift when the filter is set outside the panel (view switch or cell filter): Reviewed by Cursor Bugbot for commit 01df1ee. Configure here. |
Greptile SummaryThe PR adds cell-value filtering from the cell context menu, column sorting controls in header menus, and filter-panel reseeding for externally replaced filters.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/table/query-builder/cell-filter.ts | Adds type-aware cell predicate construction and recursively replaces existing constraints on the selected column. |
| apps/sim/lib/table/query-builder/tests/cell-filter.test.ts | Covers scalar, empty, select, multi-select, JSON, and nested predicate-merging behavior. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/table.tsx | Centralizes external filter replacement, filter-panel reseeding, and reusable sort handlers. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/table-grid.tsx | Wires cell context filtering and active column-sort state into the grid menus. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/headers/workflow-group-meta-cell.tsx | Adds ascending, descending, and clear-sort items to sortable column option menus. |
Reviews (3): Last reviewed commit: "fix(tables): refuse cell-value filters o..." | Re-trigger Greptile
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
2 issues from previous reviews remain unresolved.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit e079fa4. Configure here.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 01df1ee. Configure here.

Summary
jsoncell (the server rejects the containment operators on that type, and a rejected predicate would stick in state and fail every later refetch) or an operator the column type rejects.Type of Change
Testing
validateStoragePredicate→buildPredicateClause) to confirm each predicate validates and compiles rather than 400-ing the rows query.bun run lint:check, andbun run check:audits(26 audits) pass.Checklist