fix(dashboard): 大屏绘制独立页顶栏深色适配 + 修复卡 loading/重绘无数据

- 顶栏(dashboard-agent-topbar)深色下改深蓝(《深蓝色 UI 规范》卡片#122347/
  页面#0C1836/边框#1A2F5A/文字#C5CFE0),不再白底;仅作用于顶栏。
- init effect 始终并行拉输入 JSON 写入 inputRef,恢复历史后「重新绘制」/续问
  才有源数据,否则回退空 prompt 生成不出数据。
- 修复卡在「正在加载任务大屏…」:init effect 改为只依赖 [taskId]、start/
  hydrateTranscript 经 ref 读取、finally 无条件 setLoading(false),避免模型异步
  加载触发 cleanup 把首跑标记 cancelled 后 loading 永不置 false。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
董宏凯andClaude Opus 4.8 committed 2026-06-18 18:01:30 +08:00
1 parent 6a8f118ad0
commit bd5623ebc5
2 files changed
+58 -18

No files matched your search

+30
View File
@@ -626,6 +626,36 @@
background-attachment: fixed, fixed;
}
/* 「大屏绘制智能体」独立页顶栏(DashboardAgentPage,class=dashboard-agent-topbar)深色
* 适配:顶栏只为浅色写死了 slate/white 渐变,深色(.dark)下统一改深蓝(《深蓝色 UI 规范》
* 卡片底 #122347 / 页面底 #0C1836 / 边框 #1A2F5A / 字体 #C5CFE0),仅作用于顶栏内,
* 不影响下方大屏/聊天区。浅色不命中,原样式不变。 */
.dark .dashboard-agent-topbar {
background-image: linear-gradient(to right, #122347, #0c1836) !important;
border-color: #1a2f5a !important;
}
.dark .dashboard-agent-topbar .text-slate-900 {
color: #e8edf5 !important;
}
.dark .dashboard-agent-topbar
:is(.text-slate-700, .hover\:text-slate-700:hover) {
color: #c5cfe0 !important;
}
.dark .dashboard-agent-topbar :is(.text-slate-500, .text-slate-400) {
color: #6e88b0 !important;
}
.dark .dashboard-agent-topbar .bg-white {
background-color: #1a2f5a !important;
}
.dark .dashboard-agent-topbar
:is(.bg-slate-50, .hover\:bg-slate-50:hover) {
background-color: #0c1836 !important;
}
.dark .dashboard-agent-topbar
:is(.border-slate-100, .border-slate-200) {
border-color: #1a2f5a !important;
}
.workspace-panel {
border: 1px solid #f0d7d0;
background: #ffffff;