feat(dashboard): polish risk and digital employee boards

This commit is contained in:
caoxiaozhu
2026-06-03 09:41:32 +08:00
parent 15006a05a7
commit 0d6327a990
11 changed files with 716 additions and 100 deletions

View File

@@ -89,3 +89,16 @@ test('digital employee dashboard renders enterprise dashboard panels with chart
assert.match(dailyChartComponent, /name: '业务产出'/)
assert.doesNotMatch(dashboardComponent, /hermes/i)
})
test('digital employee dashboard uses filled card layout for charts and rows', () => {
assert.match(dashboardComponent, /digital-chart-fill digital-trend-fill/)
assert.match(dashboardComponent, /digital-chart-fill digital-donut-fill/)
assert.match(dashboardComponent, /digital-chart-fill digital-bar-fill/)
assert.match(dashboardComponent, /digital-output-grid digital-card-fill/)
assert.match(dashboardComponent, /grid-auto-rows: minmax\(300px, auto\)/)
assert.match(dashboardComponent, /\.digital-work-trend-panel \{\s*grid-column: span 7/s)
assert.match(dashboardComponent, /\.digital-work-day-panel \{\s*grid-column: span 5/s)
assert.match(dashboardComponent, /\.digital-recent-panel \{\s*grid-column: span 12/s)
assert.match(dailyChartComponent, /height: 100%/)
assert.match(dailyChartComponent, /min-height: 280px/)
})