Skip to content

feat(DataTable): support between filter in DataTable.Filters UI#223

Merged
IzumiSy merged 11 commits intomainfrom
support_between_filter_in_ui
May 1, 2026
Merged

feat(DataTable): support between filter in DataTable.Filters UI#223
IzumiSy merged 11 commits intomainfrom
support_between_filter_in_ui

Conversation

@IzumiSy
Copy link
Copy Markdown
Contributor

@IzumiSy IzumiSy commented Apr 30, 2026

Screen shots

Number

スクリーンショット 2026-05-01 10 59 03

Time

スクリーンショット 2026-05-01 10 59 32

Date

スクリーンショット 2026-05-01 11 00 08

DateTime

スクリーンショット 2026-05-01 10 59 55

@IzumiSy IzumiSy self-assigned this Apr 30, 2026
Base automatically changed from fix/temporal-filter-formats to main April 30, 2026 08:45
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 1, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@tailor-platform/app-shell@223
npm i https://pkg.pr.new/@tailor-platform/app-shell-sdk-plugin@223
npm i https://pkg.pr.new/@tailor-platform/app-shell-vite-plugin@223

commit: 7fe612e

@IzumiSy IzumiSy force-pushed the support_between_filter_in_ui branch from 65959d2 to e991156 Compare May 1, 2026 01:53
@IzumiSy IzumiSy changed the title Support between filter in DataTable.Filters UI Support between filter in DataTable.Filters UI May 1, 2026
@IzumiSy IzumiSy changed the title Support between filter in DataTable.Filters UI Support between filter in DataTable.Filters UI May 1, 2026
@IzumiSy IzumiSy marked this pull request as ready for review May 1, 2026 02:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds UI + value-shaping support for the between operator in DataTable.Filters so numeric and temporal filters can be edited/added as ranges.

Changes:

  • Adds between to numeric/temporal operator selector and introduces a shared BetweenInputGroup UI.
  • Updates add-filter draft validation/submission to support two-input range entry.
  • Extends Numeric/Temporal filter chip editors and adds tests + i18n labels for range fields.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
packages/core/src/components/data-table/toolbar.tsx Adds between operator UI/logic for Add Filter popover and chip editors; formats between values for chip labels.
packages/core/src/components/data-table/toolbar.test.tsx Adds regression tests for numeric/date between chip editing behavior.
packages/core/src/components/data-table/i18n.ts Adds labels for “From/To” and “Min/Max” used by the new range inputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/src/components/data-table/toolbar.test.tsx Outdated
Comment thread packages/core/src/components/data-table/toolbar.tsx
Comment thread packages/core/src/components/data-table/toolbar.tsx Outdated
Comment thread packages/core/src/components/data-table/toolbar.tsx
IzumiSy added 4 commits May 1, 2026 14:29
Replace synchronous getAllByDisplayValue with findAllByDisplayValue
to avoid flaky tests when popover content renders via portal on next tick.
Add aria-label attributes to each input so screen readers can
distinguish the min/max (from/to) fields.
Return undefined when either bound is missing in toAddFilterSubmittedValue,
preventing partial range objects that would cause GraphQL validation errors.
Add validity checks and disable Apply button when either bound is
invalid, consistent with TemporalFilterEditor behavior. Update test
to expect no addFilter call when only one bound is set.
@IzumiSy
Copy link
Copy Markdown
Contributor Author

IzumiSy commented May 1, 2026

/review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated by API Design Review for issue #223

Comment thread packages/core/src/components/data-table/toolbar.tsx Outdated
Comment thread packages/core/src/components/data-table/toolbar.tsx Outdated
- Fix TemporalFilterEditor.canCommit to reject partial ranges (matching NumericFilterEditor)
- Fix TemporalFilterEditor.handleCommit to use || guard and build complete {min, max} object
- Fix isAddFilterDraftValueValid to require both bounds non-empty for between operator
@IzumiSy IzumiSy changed the title Support between filter in DataTable.Filters UI feat(DataTable): support between filter in DataTable.Filters UI May 1, 2026
@IzumiSy IzumiSy merged commit c2b8856 into main May 1, 2026
4 checks passed
@IzumiSy IzumiSy deleted the support_between_filter_in_ui branch May 1, 2026 06:53
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