Remove workspace header actions
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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:
|
||||
<Text type="secondary">所有项目的统一工作台,汇总项目动态、任务压力和知识资产。</Text>
|
||||
<Title heading={4}>工作台</Title>
|
||||
</div>
|
||||
<Space>
|
||||
<Button icon={<IconUserGroup />}>团队视图</Button>
|
||||
<Button type="primary" icon={<IconRight />}>进入重点项目</Button>
|
||||
</Space>
|
||||
</div>
|
||||
|
||||
<Row gutter={12} className="metric-row">
|
||||
|
||||
Reference in New Issue
Block a user