Skip to content

feat(FR-2786): improve ModelCardV2 filter — typed filters, renderInput, BAISelect onSearch fix#7183

Open
agatha197 wants to merge 1 commit intomainfrom
04-30-feat_improve_modelcardv2_filter_typed_filters_renderinput_baiselect_onsearch_fix
Open

feat(FR-2786): improve ModelCardV2 filter — typed filters, renderInput, BAISelect onSearch fix#7183
agatha197 wants to merge 1 commit intomainfrom
04-30-feat_improve_modelcardv2_filter_typed_filters_renderinput_baiselect_onsearch_fix

Conversation

@agatha197
Copy link
Copy Markdown
Contributor

@agatha197 agatha197 commented Apr 30, 2026

Resolves #7185 (FR-2786)

Changes

Schema

  • ModelCardV2Filter.domainName/projectId: scalar → StringFilter/UUIDFilter
  • DeploymentRevisionPresetFilter.runtimeVariantId: UUIDUUIDFilter
  • useRuntimeParameterSchema: adapt filter call to new UUIDFilter shape

BAIGraphQLPropertyFilter

  • Add renderInput prop for custom filter input components (e.g. BAIStorageHostSelect)
  • Add Equals/NotEquals operator i18n keys across all 22 locales

BAISelect (bug fix)

  • Move onSearch from inside showSearch object to top-level prop
  • Fixes searchAction never firing — Ant Design v6 ignores onSearch inside showSearch, breaking server-side search in BAIStorageHostSelect

AdminModelCardListPage

  • Remove flattenGraphQLFilter; use server-side AND/OR/NOT via BAIGraphQLPropertyFilter
  • Add domainName (string) and storageHost (BAIStorageHostSelect) filter fields

ModelStoreListPageV2

  • Same server-side filter improvements
  • Remove hardcoded fixedOperator: iContains on name filter — show operator selector
  • Add domainName and storageHost filter fields

…ect onSearch fix

Schema changes:
- ModelCardV2Filter.domainName/projectId: scalar → StringFilter/UUIDFilter
- DeploymentRevisionPresetFilter.runtimeVariantId: UUID → UUIDFilter
- useRuntimeParameterSchema: adapt runtimeVariantId filter to UUIDFilter shape

BAIGraphQLPropertyFilter:
- Add renderInput support for custom filter inputs (e.g. BAIStorageHostSelect)
- Add Equals/NotEquals operator i18n keys across all 22 locales

BAISelect:
- Move onSearch from inside showSearch object to top-level prop
- Fixes searchAction never firing (Ant Design v6 ignores onSearch inside showSearch object)

AdminModelCardListPage:
- Remove flattenGraphQLFilter; use server-side AND/OR/NOT via BAIGraphQLPropertyFilter
- Add domainName (string) and storageHost (BAIStorageHostSelect) filter fields

ModelStoreListPageV2:
- Same server-side filter improvements
- Show operator selector for name filter (remove fixedOperator: iContains)
- Add domainName and storageHost filter fields
Copy link
Copy Markdown
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the size:L 100~500 LoC label Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Coverage report for ./packages/backend.ai-ui

St.
Category Percentage Covered / Total
🟢 Statements 81.87% 429/524
🟡 Branches 70.43% 362/514
🟡 Functions 76.86% 93/121
🟢 Lines 83.19% 391/470

Test suite run success

319 tests passing in 13 suites.

Report generated by 🧪jest coverage report action from 1fc8ae9

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
8.11% (-0% 🔻)
1859/22918
🔴 Branches
7.35% (+0% 🔼)
1187/16152
🔴 Functions
4.82% (+0.01% 🔼)
297/6162
🔴 Lines
7.88% (+0% 🔼)
1750/22201

Test suite run success

865 tests passing in 40 suites.

Report generated by 🧪jest coverage report action from 1fc8ae9

@agatha197 agatha197 changed the title feat: improve ModelCardV2 filter — typed filters, renderInput, BAISelect onSearch fix feat(FR-2786): improve ModelCardV2 filter — typed filters, renderInput, BAISelect onSearch fix Apr 30, 2026
@agatha197 agatha197 marked this pull request as ready for review April 30, 2026 08:38
@agatha197 agatha197 requested review from ironAiken2, nowgnuesLee and yomybaby and removed request for nowgnuesLee and yomybaby April 30, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(FR-2786): improve ModelCardV2 filter — typed filters, renderInput, BAISelect onSearch fix

1 participant