Q32: documents and knowledge appear in global search
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5c8233d258
commit
cb464c3ee4
5 files changed
+58
No files matched your search
@@ -27,6 +27,7 @@ export const zh: Record<string, string> = {
|
||||
"Advance": "推进",
|
||||
"Advanced": "高级",
|
||||
"Integrations": "集成密钥",
|
||||
"Document": "文档",
|
||||
"Applies to": "适用范围",
|
||||
"Category": "类别",
|
||||
"Content": "内容",
|
||||
|
||||
@@ -21,6 +21,8 @@ const LABELS: Record<SearchEntityType, string> = {
|
||||
provider: t("Provider"),
|
||||
social_account: t("Social"),
|
||||
scheduled_post: t("Post"),
|
||||
document: t("Document"),
|
||||
knowledge: t("Knowledge"),
|
||||
};
|
||||
|
||||
export function SearchDialog({
|
||||
@@ -142,6 +144,7 @@ function routeFor(entityType: SearchEntityType): RouteId {
|
||||
if (entityType === "file") return "files";
|
||||
if (entityType === "provider") return "settings";
|
||||
if (entityType === "social_account" || entityType === "scheduled_post") return "connectors";
|
||||
if (entityType === "document" || entityType === "knowledge") return "library";
|
||||
return "work";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user