Skip to content

Staging sync: shared toolbar filtering across data grids#182

Merged
VibhavSetlur merged 2 commits intoModelSEED:stagingfrom
VibhavSetlur:staging
May 5, 2026
Merged

Staging sync: shared toolbar filtering across data grids#182
VibhavSetlur merged 2 commits intoModelSEED:stagingfrom
VibhavSetlur:staging

Conversation

@VibhavSetlur
Copy link
Copy Markdown
Collaborator

Summary

  • Syncs latest VibhavSetlur:staging into ModelSEED:staging.
  • Introduces a shared toolbar/grid filtering flow used across user and reference data tables.

Included commits

  • 6898d17 feat(filtering): add reusable toolbar filtering hook with OR-aware model evaluation
  • a0f3b94 refactor(toolbar): adopt shared filter hook across user/reference data grids

Key changes

  • Added useToolbarGridFiltering hook to centralize quick-search + column-filter behavior.
  • Extended grid filtering logic to honor OR/AND logic consistently.
  • Integrated shared filtering flow into genomes/media/jobs/models/RAST table pages.
  • Updated DataControlHeader apply behavior for synchronized toolbar-originated updates.
  • Added unit coverage for filtering helper behavior.

Files touched

  • lib/hooks/useToolbarGridFiltering.ts
  • lib/api/biochem.ts
  • components/layout/DataControlHeader.tsx
  • components/build-model/PatricGenomesTable.tsx
  • components/build-model/RastGenomesTable.tsx
  • app/(reference-data)/genomes/page.tsx
  • app/(reference-data)/genomes/Annotations/page.tsx
  • app/(reference-data)/list-media/page.tsx
  • app/(user-data)/my-jobs/page.tsx
  • app/(user-data)/my-models/page.tsx
  • app/(user-data)/myMedia/page.tsx
  • tests/unit/utils/gridFiltering.test.ts

Validation

  • Typecheck: npx tsc --noEmit
  • Branch sync verified (staging == origin/staging)

Made with Cursor

VibhavSetlur and others added 2 commits May 5, 2026 13:45
…del evaluation

Introduces a shared `useToolbarGridFiltering` hook to unify DataGrid toolbar filter behavior across client-filtered pages while guarding against Community DataGrid truncation callbacks. Extends biochem/grid filter helpers to honor `logicOperator` (AND/OR) and threads operator awareness into PATRIC local filtering, with dedicated unit coverage validating OR semantics, quick-search behavior, and combined filter evaluation.

Co-authored-by: Cursor <cursoragent@cursor.com>
…a grids

Migrates genomes, media, jobs, model, and RAST table pages to `useToolbarGridFiltering` so toolbar quick-search and column filters behave consistently in local/grid-backed contexts while preserving pagination reset semantics. Updates `DataControlHeader` quick-search application to tag toolbar-originated updates and keep grid quick-filter state synchronized after server-style apply callbacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings May 5, 2026 18:46
@VibhavSetlur VibhavSetlur merged commit 4748623 into ModelSEED:staging May 5, 2026
5 of 6 checks passed
@VibhavSetlur VibhavSetlur review requested due to automatic review settings May 5, 2026 19:10
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