feat(filters): add searchable creatable value inputs

Build a theme-aligned combobox on the shared reka-ui primitives. Rank stored keys before bilingual descriptions, allow validated custom values, and preserve unconfirmed multi-value drafts instead of silently committing them.
This commit is contained in:
翅膀 committed 2026-10-17 05:44:07 +08:00
1 parent a3e9ab26a7
commit 2ebce8495d
4 files changed
+653 -1

No files matched your search

+10
View File
@@ -283,6 +283,11 @@ const en: Dict = {
"routeEditor.errPath": "Field filters need a path",
"routeEditor.errValues": "Add at least one value",
"routeEditor.errGroupEmpty": "Group needs at least one condition",
"combo.empty": "No matches",
"combo.typeToAdd": "Type a value to add it",
"combo.useValue": "Use “{value}”",
"combo.remove": "Remove {value}",
"combo.pending": 'Not added yet: press Enter to add "{value}"',
"valid.tooLong": "Patterns longer than 200 characters never match",
"valid.regex": "Invalid regular expression",
"valid.number": "Comparison operators need a number",
@@ -702,6 +707,11 @@ const zh: Dict = {
"routeEditor.errPath": "字段过滤需要路径",
"routeEditor.errValues": "至少需要一个值",
"routeEditor.errGroupEmpty": "分组至少需要一个条件",
"combo.empty": "无匹配项",
"combo.typeToAdd": "输入内容后即可添加",
"combo.useValue": "使用“{value}”",
"combo.remove": "移除 {value}",
"combo.pending": "尚未添加:按回车添加“{value}”",
"valid.tooLong": "超过 200 个字符的模式永远不会匹配",
"valid.regex": "无效的正则表达式",
"valid.number": "比较运算需要数字",