diff --git a/web/app/(commonLayout)/deployments/[appInstanceId]/access/page.tsx b/web/app/(commonLayout)/deployments/[appInstanceId]/access/page.tsx deleted file mode 100644 index 5fa2ff4225..0000000000 --- a/web/app/(commonLayout)/deployments/[appInstanceId]/access/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { AccessTab } from '@/features/deployments/detail/access-tab' - -export default async function InstanceDetailAccessPage({ params }: { - params: Promise<{ appInstanceId: string }> -}) { - const { appInstanceId } = await params - return -} diff --git a/web/features/deployments/detail/access-tab.tsx b/web/features/deployments/detail/access-tab.tsx deleted file mode 100644 index fe293baed0..0000000000 --- a/web/features/deployments/detail/access-tab.tsx +++ /dev/null @@ -1,17 +0,0 @@ -'use client' - -import { AccessChannelsSection } from './access-tab/channels-section' -import { DeveloperApiSection } from './access-tab/developer-api-section' -import { AccessPermissionsSection } from './access-tab/permissions-section' - -export function AccessTab({ appInstanceId }: { - appInstanceId: string -}) { - return ( -
- - - -
- ) -} diff --git a/web/features/deployments/detail/deployment-sidebar.tsx b/web/features/deployments/detail/deployment-sidebar.tsx index ce19e896f5..0be8008230 100644 --- a/web/features/deployments/detail/deployment-sidebar.tsx +++ b/web/features/deployments/detail/deployment-sidebar.tsx @@ -50,12 +50,6 @@ function VersionsIcon({ className }: TailwindNavIconProps) { function VersionsSelectedIcon({ className }: TailwindNavIconProps) { return } -function AccessIcon({ className }: TailwindNavIconProps) { - return -} -function AccessSelectedIcon({ className }: TailwindNavIconProps) { - return -} function SettingsIcon({ className }: TailwindNavIconProps) { return } @@ -67,7 +61,6 @@ const TABS: TabDef[] = [ { key: 'overview', icon: OverviewIcon, selectedIcon: OverviewSelectedIcon }, { key: 'deploy', icon: DeployIcon, selectedIcon: DeploySelectedIcon }, { key: 'versions', icon: VersionsIcon, selectedIcon: VersionsSelectedIcon }, - { key: 'access', icon: AccessIcon, selectedIcon: AccessSelectedIcon }, { key: 'settings', icon: SettingsIcon, selectedIcon: SettingsSelectedIcon }, ] diff --git a/web/features/deployments/detail/overview-tab.tsx b/web/features/deployments/detail/overview-tab.tsx index ccba8e2988..445dbabdae 100644 --- a/web/features/deployments/detail/overview-tab.tsx +++ b/web/features/deployments/detail/overview-tab.tsx @@ -219,7 +219,7 @@ function AccessStatusSection({ appInstanceId }: {
}> + diff --git a/web/features/deployments/detail/settings-tab.tsx b/web/features/deployments/detail/settings-tab.tsx index 064f1118cc..f51ba46fd9 100644 --- a/web/features/deployments/detail/settings-tab.tsx +++ b/web/features/deployments/detail/settings-tab.tsx @@ -17,6 +17,9 @@ import { useTranslation } from 'react-i18next' import { useRouter } from '@/next/navigation' import { consoleQuery } from '@/service/client' import { deployedRows } from '../utils' +import { AccessChannelsSection } from './access-tab/channels-section' +import { DeveloperApiSection } from './access-tab/developer-api-section' +import { AccessPermissionsSection } from './access-tab/permissions-section' type SettingsFormProps = { app: AppInstanceBasicInfo @@ -276,7 +279,10 @@ export function SettingsTab({ appInstanceId }: { appInstanceId: string }) { return ( -
+
+ + +
diff --git a/web/features/deployments/detail/tabs.ts b/web/features/deployments/detail/tabs.ts index 0627edfbcb..c03fa5ad8a 100644 --- a/web/features/deployments/detail/tabs.ts +++ b/web/features/deployments/detail/tabs.ts @@ -1,4 +1,4 @@ -export const INSTANCE_DETAIL_TAB_KEYS = ['overview', 'deploy', 'versions', 'access', 'settings'] as const +export const INSTANCE_DETAIL_TAB_KEYS = ['overview', 'deploy', 'versions', 'settings'] as const export type InstanceDetailTabKey = typeof INSTANCE_DETAIL_TAB_KEYS[number] diff --git a/web/features/deployments/list/instance-card.tsx b/web/features/deployments/list/instance-card.tsx index 3bd37cb91c..f403f4a144 100644 --- a/web/features/deployments/list/instance-card.tsx +++ b/web/features/deployments/list/instance-card.tsx @@ -17,7 +17,7 @@ import { useFormatTimeFromNow } from '@/hooks/use-format-time-from-now' import Link from '@/next/link' import { toAppMode } from '../utils' -const INSTANCE_CARD_MENU_TAB_KEYS = ['deploy', 'versions', 'access', 'settings'] satisfies InstanceDetailTabKey[] +const INSTANCE_CARD_MENU_TAB_KEYS = ['deploy', 'versions', 'settings'] satisfies InstanceDetailTabKey[] function getInstanceTabHref(appInstanceId: string, tabKey: InstanceDetailTabKey) { return `/deployments/${appInstanceId}/${tabKey}` diff --git a/web/i18n/en-US/deployments.json b/web/i18n/en-US/deployments.json index 097cf4ccaf..588f490ee1 100644 --- a/web/i18n/en-US/deployments.json +++ b/web/i18n/en-US/deployments.json @@ -269,13 +269,11 @@ "status.notDeployed": "Not deployed", "status.ready": "Ready", "subtitle": "Deploy and manage your apps across environments.", - "tabs.access.description": "API keys and run-time access for this instance.", - "tabs.access.name": "Access", "tabs.deploy.description": "Environments this instance is deployed to and their current releases.", "tabs.deploy.name": "Deploy", "tabs.overview.description": "Summary of this app instance across all environments.", "tabs.overview.name": "Overview", - "tabs.settings.description": "View source app metadata and backend-managed settings.", + "tabs.settings.description": "Access, API keys, metadata, and backend-managed settings.", "tabs.settings.name": "Settings", "tabs.versions.description": "All releases for this app. Deploy any release to an environment.", "tabs.versions.name": "Versions", diff --git a/web/i18n/zh-Hans/deployments.json b/web/i18n/zh-Hans/deployments.json index fc95ba4c5b..3331543225 100644 --- a/web/i18n/zh-Hans/deployments.json +++ b/web/i18n/zh-Hans/deployments.json @@ -269,13 +269,11 @@ "status.notDeployed": "未部署", "status.ready": "就绪", "subtitle": "在不同环境中部署和管理你的应用。", - "tabs.access.description": "该实例的 API 密钥和运行时访问设置。", - "tabs.access.name": "接入", "tabs.deploy.description": "该实例已部署的环境及其当前发布版本。", "tabs.deploy.name": "部署", "tabs.overview.description": "该应用实例在所有环境中的概览。", "tabs.overview.name": "概览", - "tabs.settings.description": "查看源应用元数据和后端托管设置。", + "tabs.settings.description": "管理接入、API Key、元数据和后端托管设置。", "tabs.settings.name": "设置", "tabs.versions.description": "此应用的所有发布版本,可将任一版本发布到环境。", "tabs.versions.name": "版本",