fix(frontend): polish API key create dialog UX and align i18n

Map API key permissions to tenant roles in the UI, widen the create dialog,
and sync integrations.api locale strings across en-US, ko-KR, and ru-RU.
This commit is contained in:
wizardchen
2026-07-06 11:36:35 +08:00
committed by lyingbug
parent c65ffa3d9c
commit 3ace6e657f
5 changed files with 204 additions and 147 deletions
+9 -9
View File
@@ -5760,23 +5760,23 @@ export default {
apiKeys: 'API Keys',
apiKeysDesc: 'Create separate keys per integration and restrict operation permissions plus knowledge-base access.',
createApiKey: 'Create API Key',
createApiKeyDialogDesc: 'Set permissions and available knowledge bases.',
createApiKeyDialogDesc: 'Set the access role and available knowledge bases.',
noApiKeys: 'No API keys',
apiKeyName: 'Name',
apiKeyValue: 'API Key',
apiKeyNamePlaceholder: 'Example: MCP read-only access',
apiKeyNameRequired: 'Enter an API key name',
toggleApiKeyVisible: 'Show or hide API key',
apiKeyScopes: 'Permissions',
apiKeyScopeRequired: 'Select at least one permission',
apiKeyAccessRole: "Access role",
apiKeyAccessRoleHint: "Matches tenant member roles; requests are authorized by the selected role.",
accessRoleViewer: "Viewer",
accessRoleContributor: "Contributor",
accessRoleAdmin: "Admin",
accessRoleViewerDesc: "Query, search, and chat without modifying knowledge-base content.",
accessRoleContributorDesc: "Create, update, or delete knowledge-base content within the selected scope.",
accessRoleAdminDesc: "Manage tenant-level settings and integrations; cannot create, rotate, or delete API keys.",
apiKeyKnowledgeScope: 'Knowledge bases',
apiKeyKnowledgeScopePlaceholder: 'Leave empty to allow all knowledge bases',
scopeRead: 'Read',
scopeWrite: 'Write',
scopeAdmin: 'Admin',
scopeReadDesc: 'Query, search, and chat without changing knowledge-base content.',
scopeWriteDesc: 'Create, update, or delete knowledge-base content within the selected scope.',
scopeAdminDesc: 'Manage tenant-level settings; API keys cannot manage API keys.',
allKnowledgeBases: 'All knowledge bases',
createdAt: 'Created',
actions: 'Actions',