feat(agent): support dynamic newOption in select and selectMulti metadata fields (#306)

* feat(webui): redesign select and multi-select metadata fields with search box and dynamic option creation

* fix(webui): stabilize select popover placement and preserve field visibility in store

* refactor(webui): enforce 2-row collapsed height and whitespace-pre-wrap on LongTextField

* feat(agent): support dynamic newOption in select and selectMulti metadata fields

* fix(metadata): address code review feedback on selectMulti item validation and WebUI option deduplication
This commit is contained in:
Yiling-J
2026-08-14 10:56:18 +08:00
committed by GitHub
parent 7acf736300
commit fc878775c2
11 changed files with 851 additions and 28 deletions
@@ -32,7 +32,9 @@ const SelectMultiField: React.FC<FieldProps<string[]>> = ({
opt.displayName.toLowerCase().includes(trimmedSearch.toLowerCase()),
)
const hasExactMatch = options.some(
(opt: SelectOption) => opt.displayName.trim().toLowerCase() === trimmedSearch.toLowerCase(),
(opt: SelectOption) =>
opt.displayName.trim().toLowerCase() === trimmedSearch.toLowerCase() ||
opt.id.toLowerCase() === trimmedSearch.toLowerCase(),
)
// Dynamic calculation for how many items fit in one line