diff --git a/apps/senlinai-acro-react/scripts/visual-check.mjs b/apps/senlinai-acro-react/scripts/visual-check.mjs
index 77a1863..45fd731 100644
--- a/apps/senlinai-acro-react/scripts/visual-check.mjs
+++ b/apps/senlinai-acro-react/scripts/visual-check.mjs
@@ -34,6 +34,8 @@ const collectMetrics = async () => page.evaluate(() => {
const sidebar = document.querySelector('.channel-sidebar')
const stage = document.querySelector('.stage')
const inspector = document.querySelector('.inspector')
+ const workspaceActions = [...document.querySelectorAll('.workspace-page .overview-head .arco-btn')]
+ .map((button) => button.textContent?.trim())
const dashboard = document.querySelector('.dashboard-button')
const project = document.querySelector('.project-button')
const create = document.querySelector('.create-project')
@@ -76,6 +78,7 @@ const collectMetrics = async () => page.evaluate(() => {
channelSidebar: rect(sidebar),
stage: rect(stage),
inspector: rect(inspector),
+ workspaceActions,
dashboardButton: rect(dashboard),
dashboardButtonActive: dashboard?.classList.contains('active') ?? false,
projectButton: rect(project),
@@ -128,6 +131,9 @@ if (!metrics.dashboardButtonActive) failures.push('expected dashboard button to
if (metrics.projectButtonActive) failures.push('expected first project button not to be active on workspace landing page')
if (metrics.channelSidebar) failures.push(`expected workspace to hide channel sidebar, got ${JSON.stringify(metrics.channelSidebar)}`)
if (metrics.inspector) failures.push(`expected workspace to hide inspector, got ${JSON.stringify(metrics.inspector)}`)
+if (metrics.workspaceActions.some((text) => text?.includes('团队视图') || text?.includes('进入重点项目'))) {
+ failures.push(`expected workspace header actions to remove team view and focused project buttons, got ${JSON.stringify(metrics.workspaceActions)}`)
+}
if (!metrics.projectRail || !metrics.stage) {
failures.push(`missing workspace layout regions: rail=${JSON.stringify(metrics.projectRail)}, stage=${JSON.stringify(metrics.stage)}`)
} else {
diff --git a/apps/senlinai-acro-react/src/pages/workspace.tsx b/apps/senlinai-acro-react/src/pages/workspace.tsx
index d44dcbf..b2b58f6 100644
--- a/apps/senlinai-acro-react/src/pages/workspace.tsx
+++ b/apps/senlinai-acro-react/src/pages/workspace.tsx
@@ -5,8 +5,6 @@ import {
IconEmail,
IconFile,
IconRobot,
- IconRight,
- IconUserGroup,
} from '@arco-design/web-react/icon'
import { aiSessions, inbox, notes, projects, tasks } from './projects/project-data'
import type { Project } from './projects/project-types'
@@ -32,10 +30,6 @@ export function WorkspacePage({ onSelectProject }: { onSelectProject: (project: