feat(filters): add bilingual suggestions and value validation

Catalog forge events, actions, payload paths and known values with searchable English and Chinese descriptions. Match-value validation mirrors the server and only rejects inputs that cannot match.
This commit is contained in:
翅膀 committed 2026-10-17 05:01:23 +08:00
1 parent 7aa36f4dc2
commit a3e9ab26a7
4 files changed
+1397 -1

No files matched your search

+15
View File
@@ -283,6 +283,14 @@ 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",
"valid.tooLong": "Patterns longer than 200 characters never match",
"valid.regex": "Invalid regular expression",
"valid.number": "Comparison operators need a number",
"valid.event": "Event names use letters, digits and _ (or * ? wildcards, /regex/)",
"valid.eventName": "Event names use letters, digits and _",
"valid.branch": "Branch names cannot contain spaces or ~ ^ : \\ [",
"valid.branchLiteral":
"This operator compares text as-is: branch names never contain * ? [ ~ ^ : \\ or spaces",
"fragmentPreset.prBot": "PR by a bot",
"fragmentPreset.dependabot": "Dependabot PR",
"fragmentPreset.releasePublished": "Release published",
@@ -694,6 +702,13 @@ const zh: Dict = {
"routeEditor.errPath": "字段过滤需要路径",
"routeEditor.errValues": "至少需要一个值",
"routeEditor.errGroupEmpty": "分组至少需要一个条件",
"valid.tooLong": "超过 200 个字符的模式永远不会匹配",
"valid.regex": "无效的正则表达式",
"valid.number": "比较运算需要数字",
"valid.event": "事件名只能包含字母、数字和 _(也可用 * ? 通配符或 /正则/)",
"valid.eventName": "事件名只能包含字母、数字和 _",
"valid.branch": "分支名不能包含空格或 ~ ^ : \\ [",
"valid.branchLiteral": "该运算符按字面比较:分支名不会包含 * ? [ ~ ^ : \\ 或空格",
"fragmentPreset.prBot": "机器人提交的 PR",
"fragmentPreset.dependabot": "Dependabot PR",
"fragmentPreset.releasePublished": "发布 Release",
File diff suppressed because it is too large. Load diff