Compare commits

...

6 Commits

Author SHA1 Message Date
姚章浩 e8bfdbbc06 docs(changelog): 记录工作台界面优化开发快照 0.1.375
build / build (push) Failing after 1m41s
为什么:本仓每个面向使用者的变更都要在 CHANGELOG 留开发快照段,版本号按
基线 tag 后的提交数推导(5e850e9 为 0.1.369,本轮 6 个提交后为 0.1.375)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:10:28 +08:00
姚章浩 ef3c1fbf84 fix(web): 侧栏环境标注改为云测试环境
为什么:平台已迁到云测试主机,侧栏底部仍硬编码「本地治理环境」,会让人误以为
操作的是本机旧栈。

改了什么:文案改为「云测试环境」,用例同时断言不再出现旧文案。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:09:43 +08:00
姚章浩 2da96da592 feat(web): 问答流水立即同步改为次按钮并对齐页面边距
为什么:「立即同步」会让后台入队写同步作业,却与只读的「查询」同为蓝色实心主按钮,
容易误点;问答页左边缘比其他模块多缩进 8px,切换页面时标题会跳。

改了什么(同步的启用条件、调用与状态提示不变):
- 「查询」用全站主按钮色;「立即同步」加 qa-sync-action,改为白底钴蓝描边次按钮;
  「本周」悬停不再被主按钮悬停规则染色。
- 查询区、结果区改为与其他模块一致的圆角卡片 + 极轻投影;焦点改为统一光晕。
- 页头改用共享 .page-header(h2→h1,每页一个 h1);横向边距统一 24px,
  纵向保留原有紧凑密度;删掉被后文覆盖、从未生效的重复 padding/gap。
- 问答区硬编码蓝/灰映射回令牌;修正从未定义的 --danger-ink。

验证:typecheck、vitest 全量通过(含 96px 按钮宽度断言);浏览器只读核对
查询=实心钴蓝、立即同步=白底描边,执行一次查询(GET)台账正常;未点击立即同步。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:09:43 +08:00
姚章浩 10182b027e feat(web): 来源与目录批量条按选中高亮并换用线性图标
为什么:「对内/对外/禁止导入」是三块实心色按钮挤在右上角,「已选 N 项」缩在
禁止导入下面;没选中时整条也一样抢眼,📁/📄 emoji 与工作台风格不协调。

改了什么(策略按钮的启用条件、调用与确认不变):
- 批量条:「全选当前页」后紧跟「已选 N 项」,策略按钮归入一组(role=group);
  只有选中后整条才浅钴蓝高亮。
- 策略按钮改为浅底语义色描边,与表格内策略徽标同色同形。
- 📁/📄 换成 CSS mask 线性图标;文件夹名改为深色正文、悬停变钴蓝。
- 表头/单元格字号统一(11→12.5px),行悬停底色;页头接入共享 .page-header。
- 删除重复的列宽规则与被后文覆盖的禁止导入样式(同一含义只留一份),
  目录区硬编码蓝/灰映射回令牌。

验证:typecheck、vitest 全量通过(App 用例按新 h1 标记更新);浏览器只读核对
勾选→高亮/已选 1 项、取消→恢复中性、文件格式筛选展开;未点击任何策略按钮。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:09:43 +08:00
姚章浩 060872a144 feat(web): 解析监控标明筛选范围并收拢筛选与批量条
为什么:顶部「失败 35」是全部任务口径,下方表格默认只看「未结束」,常常为空;
两者范围不同却没有任何提示,「已选 0 项」的批量条也常亮蓝色,像有待办动作。

改了什么(筛选项、接口参数、重试权限与确认流程均不变):
- 指标卡口径(全部任务口径/最近 1 小时/当前)改成徽标;文件处理标题旁显示
  「当前筛选 N 项 · 本页 M 项」,分页写明「当前筛选共 N 项」「第 x / y 页」。
- 「清除筛选(N)」显示已生效筛选数(默认的未结束也算一项),无筛选时禁用;
  「仅当前绑定」改为可见按下态的切换片;时间范围展开为浮层,不再挤乱筛选行。
- 批量条只有选中后才高亮;禁用的主按钮改为中性灰,不再像"加载中"。
- 表格行距收紧、状态改为圆点徽标、选中行左侧标记;来源名限两行并保留完整 title;
  页头接入共享 .page-header。

验证:typecheck、vitest 全量通过;浏览器只读核对范围说明与分页总数一致、
时间浮层、详情抽屉 Esc 关闭、服务状态展开、1920/1024/390 宽度无横向溢出,
全程浏览器侧拦截非 GET 请求(0 条)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:08:49 +08:00
姚章浩 0f7b8987b4 feat(web): 全站改用越疆配色并统一模块页头
为什么:测试机工作台要长时间盯着看。原配色是深色侧栏 + 三种"主按钮"
(全局深藏青、监控页蓝、问答页黑),各模块页头字号/边距/是否装卡片各不相同;
另有一处真缺陷:全局 button:hover:not(:disabled) 特异性高于 .nav-item:hover,
悬停导航时被刷成白底,选中项文字几乎看不见。

改了什么:
- 色板改取越疆官网 dobot.cn:品牌钴蓝 #0039C8 为全站唯一强调/主操作色,
  文字与底色改为不带蓝紫偏色的中性灰(用户反馈紫色费眼);卡片细边 + 极轻投影。
- 侧栏改为明亮底,选中项浅钴蓝底 + 钴蓝字;悬停规则补 :not(:disabled) 修复白底。
  导航字号/点击区保持 16px / 44px(沿用 8d44d54 的放大决定)。
- 新增唯一一份 .page-header / .page-title / .page-subtitle;版本记录、系统设置、
  发布管理接入(版本记录页头不再装卡片),删掉各自重复的标题字号规则;
  page-shell 改为 max-width,模块自己的 1800/1500 上限终于生效。
- 版本记录、系统设置、问答同步状态里的硬编码蓝/石板灰映射回令牌;顺带修正
  6 个从未定义的变量(--border/--card/--accent/--brand 等)——它们此前只靠
  回退值或干脆不生效。

不改业务语义、权限、确认流程与接口调用。
验证:npm run typecheck、vitest 全量(110 文件 / 568 用例)通过;浏览器只读核对
导航悬停色、六个模块页头左缘/字号/字重一致。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:07:44 +08:00
18 changed files with 617 additions and 382 deletions
+20
View File
@@ -1,5 +1,25 @@
# Changelog # Changelog
## 开发快照 0.1.375(工作台界面:越疆配色、页头统一与筛选批量条)
### Changed
- 全站配色改取越疆官网:品牌钴蓝 #0039C8 为唯一强调与主操作色,文字与底色改为中性灰,
侧栏改为明亮底;卡片细边 + 极轻投影。只改前端样式,业务语义、权限、确认流程与接口不变。
- 六个模块页头统一(标题/说明/右侧操作位置与字号一致,左边缘对齐)。
- 解析监控:指标卡口径改为徽标,文件处理标明「当前筛选 N 项 · 本页 M 项」,清除筛选显示
已生效筛选数,时间范围改为浮层,批量条只在选中后高亮。
- 来源与目录:「已选 N 项」紧跟全选,策略按钮改为浅底语义色并只在选中后高亮整条,
📁/📄 换为线性图标。
- 问答流水:会触发后台写入的「立即同步」改为描边次按钮,与只读「查询」区分。
- 侧栏底部环境标注由「本地治理环境」改为「云测试环境」。
### Fixed
- 悬停侧栏导航时被全局按钮悬停样式刷成白底、选中项文字几乎不可见。
- 若干样式引用了从未定义的 CSS 变量(--border、--card、--brand、--danger-ink 等),
相应边框/颜色此前只靠回退值或根本不生效,现已指向正式令牌。
## 开发快照 0.1.369(周报发送记录读回与未知投递收口) ## 开发快照 0.1.369(周报发送记录读回与未知投递收口)
### Fixed ### Fixed
+3 -3
View File
@@ -51,8 +51,8 @@ describe('WorkspaceShell', () => {
} }
expect(html).not.toContain('来源链接') expect(html).not.toContain('来源链接')
expect(html).not.toContain('待处理文件') expect(html).not.toContain('待处理文件')
expect(html).toContain('本地治理环境') expect(html).toContain('云测试环境')
expect(html).not.toContain('P2 本地治理环境') expect(html).not.toContain('本地治理环境')
}) })
it('omits the system open-page tab strip while retaining navigation and the current location', () => { it('omits the system open-page tab strip while retaining navigation and the current location', () => {
@@ -104,7 +104,7 @@ describe('App', () => {
expect(html).not.toContain('aria-label="已打开页面"') expect(html).not.toContain('aria-label="已打开页面"')
expect(html).not.toContain('class="tab-list"') expect(html).not.toContain('class="tab-list"')
expect(html).not.toContain('class="workspace-tab') expect(html).not.toContain('class="workspace-tab')
expect(html).toContain('<h1>来源与目录</h1>') expect(html).toContain('<h1 class="page-title">来源与目录</h1>')
expect(html).not.toContain('最近任务') expect(html).not.toContain('最近任务')
}) })
}) })
+1 -1
View File
@@ -112,7 +112,7 @@ export function WorkspaceShell(props: WorkspaceShellProps) {
</nav> </nav>
<div className="sidebar-footer"> <div className="sidebar-footer">
<span className="status-dot" aria-hidden="true" /> <span className="status-dot" aria-hidden="true" />
本地治理环境 云测试环境
</div> </div>
</aside> </aside>
{navigationOpen ? ( {navigationOpen ? (
+1 -1
View File
@@ -16,7 +16,7 @@ export function QAMirrorSyncView(p: ViewProps) {
<section className="qa-mirror-sync" aria-label="问答同步状态"> <section className="qa-mirror-sync" aria-label="问答同步状态">
<div className="qa-mirror-sync-line"> <div className="qa-mirror-sync-line">
<button <button
className="qa-query-action" className="qa-query-action qa-sync-action"
type="button" type="button"
onClick={p.onSync} onClick={p.onSync}
disabled={p.submitting || !s?.worker_ready || active} disabled={p.submitting || !s?.worker_ready || active}
+2 -2
View File
@@ -610,8 +610,8 @@ export function QAOperations() {
const queryView = view === 'records' || view === 'dashboard' const queryView = view === 'records' || view === 'dashboard'
return ( return (
<section className="qa-ops" aria-label="问答运营"> <section className="qa-ops" aria-label="问答运营">
<header className="qa-ops-header"> <header className="qa-ops-header page-header">
<h2>问答运营</h2> <h1 className="page-title">问答运营</h1>
</header> </header>
{!canRead ? ( {!canRead ? (
<p className="error-banner" role="alert"> <p className="error-banner" role="alert">
+4 -4
View File
@@ -1912,12 +1912,12 @@ export function ReleaseTargetsView(props: ViewProps) {
return ( return (
<section className="release-targets" aria-label="发布管理"> <section className="release-targets" aria-label="发布管理">
<header className="rel-head"> <header className="rel-head page-header">
<div> <div>
<h1>发布管理</h1> <h1 className="page-title">发布管理</h1>
<p>测试维护与验证,生产按知识库版本同步。</p> <p className="page-subtitle">测试维护与验证,生产按知识库版本同步。</p>
</div> </div>
<div className="rel-head-actions"> <div className="rel-head-actions page-header-actions">
<button type="button" className="rel-secondary" onClick={() => onDrawer(true)}> <button type="button" className="rel-secondary" onClick={() => onDrawer(true)}>
▣ 版本与快照 ▣ 版本与快照
</button> </button>
+15 -17
View File
@@ -174,10 +174,10 @@ export function SourceCatalogBrowserView({
refreshJob?.state === 'pending' || refreshJob?.state === 'running' || refreshJob?.state === 'retry' refreshJob?.state === 'pending' || refreshJob?.state === 'running' || refreshJob?.state === 'retry'
return ( return (
<main className="page-shell catalog-browser"> <main className="page-shell catalog-browser">
<header className="hero compact"> <header className="hero compact page-header">
<div> <div>
<h1>来源与目录</h1> <h1 className="page-title">来源与目录</h1>
<p className="subtitle">各个知识源头的资料总览与标注</p> <p className="subtitle page-subtitle">各个知识源头的资料总览与标注</p>
</div> </div>
<button onClick={onRefresh} disabled={loading || refreshActive}> <button onClick={onRefresh} disabled={loading || refreshActive}>
{refreshActive ? '实时刷新中…' : '实时刷新目录'} {refreshActive ? '实时刷新中…' : '实时刷新目录'}
@@ -343,7 +343,7 @@ export function SourceCatalogBrowserView({
</details> </details>
{visibleItems.length ? ( {visibleItems.length ? (
<section className="catalog-routing"> <section className={selectedCount ? 'catalog-routing has-selection' : 'catalog-routing'}>
<div className="routing-actions"> <div className="routing-actions">
<label className="routing-check"> <label className="routing-check">
<input <input
@@ -359,7 +359,8 @@ export function SourceCatalogBrowserView({
/> />
全选当前页 全选当前页
</label> </label>
<div className="catalog-policy-actions"> <small className="selected-count">已选 {selectedCount} 项</small>
<div className="catalog-policy-actions" role="group" aria-label="处理策略">
<button <button
className="internal-policy-button" className="internal-policy-button"
disabled={!routeReady || !selectedNodeIDs.length || !policyEnabled('internal')} disabled={!routeReady || !selectedNodeIDs.length || !policyEnabled('internal')}
@@ -374,16 +375,13 @@ export function SourceCatalogBrowserView({
> >
对外 对外
</button> </button>
<div className="blocked-policy-stack"> <button
<button className="blocked-policy-button"
className="blocked-policy-button" disabled={!routeReady || !selectedNodeIDs.length}
disabled={!routeReady || !selectedNodeIDs.length} onClick={() => void applyPolicy('blocked')}
onClick={() => void applyPolicy('blocked')} >
> 禁止导入
禁止导入 </button>
</button>
<small className="selected-count">已选 {selectedCount} 项</small>
</div>
</div> </div>
</div> </div>
{routingMessage ? <p role="status">{routingMessage}</p> : null} {routingMessage ? <p role="status">{routingMessage}</p> : null}
@@ -417,7 +415,7 @@ export function SourceCatalogBrowserView({
onChange={() => toggleNode(node.node_id)} onChange={() => toggleNode(node.node_id)}
/> />
<button className="catalog-name" onClick={() => onOpenFolder(node)}> <button className="catalog-name" onClick={() => onOpenFolder(node)}>
<span aria-hidden="true">📁</span> <span className="catalog-icon folder" aria-hidden="true" />
{node.name} {node.name}
</button> </button>
</div> </div>
@@ -429,7 +427,7 @@ export function SourceCatalogBrowserView({
checked={selectedIDs.includes(node.node_id)} checked={selectedIDs.includes(node.node_id)}
onChange={() => toggleNode(node.node_id)} onChange={() => toggleNode(node.node_id)}
/> />
<span aria-hidden="true">📄</span> <span className="catalog-icon file" aria-hidden="true" />
{node.name} {node.name}
</label> </label>
)} )}
+2 -2
View File
@@ -201,9 +201,9 @@ export function SystemSettingsView({
} }
return ( return (
<main className="page-shell system-settings"> <main className="page-shell system-settings">
<header className="hero compact"> <header className="hero compact page-header">
<div> <div>
<h1>系统设置</h1> <h1 className="page-title">系统设置</h1>
</div> </div>
</header> </header>
{error ? ( {error ? (
+4 -4
View File
@@ -87,12 +87,12 @@ export function VersionHistoryView(props: ViewProps) {
: props.expanded : props.expanded
return ( return (
<section className="version-history" aria-label="版本记录"> <section className="version-history" aria-label="版本记录">
<header className="version-history-header"> <header className="version-history-header page-header">
<div> <div>
<h2>版本记录</h2> <h1 className="page-title">版本记录</h1>
<p>查看当前构建,以及每次更新带来的变化。</p> <p className="page-subtitle">查看当前构建,以及每次更新带来的变化。</p>
</div> </div>
<div className="version-history-actions"> <div className="version-history-actions page-header-actions">
<button type="button" onClick={props.onRefresh} disabled={props.loading}> <button type="button" onClick={props.onRefresh} disabled={props.loading}>
刷新 刷新
</button> </button>
+69 -50
View File
@@ -76,12 +76,15 @@ export function WeKnoraMonitorView(p: ViewProps) {
const kbName = (id: string) => overview?.knowledge_bases.find((k) => k.id === id)?.name || id const kbName = (id: string) => overview?.knowledge_bases.find((k) => k.id === id)?.name || id
const bindings = page.bindings const bindings = page.bindings
const scopeBinding = filters.scope === 'external' ? bindings.external : bindings.internal const scopeBinding = filters.scope === 'external' ? bindings.external : bindings.internal
// 默认的「未结束」也算一项筛选:表格常因它为空,而顶部失败数是全部任务口径,必须让人看出两者范围不同
const activeFilters = Object.values(filters).filter(Boolean).length
const pageCount = Math.max(1, Math.ceil(page.total / page.limit))
return ( return (
<main className="page-shell monitor-workbench"> <main className="page-shell monitor-workbench">
<header className="monitor-heading"> <header className="monitor-heading page-header">
<div> <div>
<h1>解析监控</h1> <h1 className="page-title">解析监控</h1>
<p>运行概况与文件处理进度</p> <p className="page-subtitle">运行概况与文件处理进度</p>
</div> </div>
<span>{overview ? `快照 ${time(overview.observed_at)}` : '等待运行快照'}</span> <span>{overview ? `快照 ${time(overview.observed_at)}` : '等待运行快照'}</span>
<button disabled={busy || loading} onClick={p.onRefresh}> <button disabled={busy || loading} onClick={p.onRefresh}>
@@ -205,7 +208,12 @@ export function WeKnoraMonitorView(p: ViewProps) {
</section> </section>
<section className="monitor-files"> <section className="monitor-files">
<div className="monitor-section-heading"> <div className="monitor-section-heading">
<h2>文件处理</h2> <div className="monitor-heading-group">
<h2>文件处理</h2>
<small className="monitor-scope-note">
{loading ? '读取中…' : `当前筛选 ${page.total} 项 · 本页 ${page.items.length} 项`}
</small>
</div>
<span>生产发布授权在「发布管理」</span> <span>生产发布授权在「发布管理」</span>
</div> </div>
<div className="monitor-filters"> <div className="monitor-filters">
@@ -254,7 +262,8 @@ export function WeKnoraMonitorView(p: ViewProps) {
</select> </select>
<button <button
type="button" type="button"
className="monitor-link" className="monitor-link monitor-chip"
aria-pressed={Boolean(scopeBinding) && filters.target === scopeBinding}
disabled={busy || !scopeBinding} disabled={busy || !scopeBinding}
title={ title={
scopeBinding scopeBinding
@@ -307,49 +316,55 @@ export function WeKnoraMonitorView(p: ViewProps) {
</select> </select>
<details className="monitor-time-filter"> <details className="monitor-time-filter">
<summary>时间范围{filters.since || filters.until ? ' · 已筛选' : ''}</summary> <summary>时间范围{filters.since || filters.until ? ' · 已筛选' : ''}</summary>
<label> <div className="monitor-time-panel">
更新时间起 <label>
<input 更新时间起
type="datetime-local" <input
aria-label="更新时间起" type="datetime-local"
disabled={busy} aria-label="更新时间起"
value={ disabled={busy}
filters.since value={
? new Date(new Date(filters.since).getTime() - new Date(filters.since).getTimezoneOffset() * 60000) filters.since
.toISOString() ? new Date(
.slice(0, 16) new Date(filters.since).getTime() - new Date(filters.since).getTimezoneOffset() * 60000
: '' )
} .toISOString()
onChange={(e) => patchFilter('since', e.target.value ? new Date(e.target.value).toISOString() : '')} .slice(0, 16)
/> : ''
</label> }
<label> onChange={(e) => patchFilter('since', e.target.value ? new Date(e.target.value).toISOString() : '')}
更新时间止 />
<input </label>
type="datetime-local" <label>
aria-label="更新时间止" 更新时间止
disabled={busy} <input
value={ type="datetime-local"
filters.until aria-label="更新时间止"
? new Date(new Date(filters.until).getTime() - new Date(filters.until).getTimezoneOffset() * 60000) disabled={busy}
.toISOString() value={
.slice(0, 16) filters.until
: '' ? new Date(
} new Date(filters.until).getTime() - new Date(filters.until).getTimezoneOffset() * 60000
onChange={(e) => patchFilter('until', e.target.value ? new Date(e.target.value).toISOString() : '')} )
/> .toISOString()
</label> .slice(0, 16)
: ''
}
onChange={(e) => patchFilter('until', e.target.value ? new Date(e.target.value).toISOString() : '')}
/>
</label>
</div>
</details> </details>
<button <button
className="monitor-link" className="monitor-link monitor-clear"
disabled={busy} disabled={busy || !activeFilters}
onClick={() => p.onFilters({ ...defaultMonitorFilters, status: '' })} onClick={() => p.onFilters({ ...defaultMonitorFilters, status: '' })}
> >
清除筛选 清除筛选{activeFilters ? `(${activeFilters})` : ''}
</button> </button>
</div> </div>
{p.canOperate ? ( {p.canOperate ? (
<div className="monitor-batch"> <div className={selected.length ? 'monitor-batch has-selection' : 'monitor-batch'}>
<b>已选 {selected.length} 项</b> <b>已选 {selected.length} 项</b>
<span>只重试可恢复项,沿用原处理动作</span> <span>只重试可恢复项,沿用原处理动作</span>
<button className="monitor-link" disabled={busy || loading || !page.retryable} onClick={p.onSelectAll}> <button className="monitor-link" disabled={busy || loading || !page.retryable} onClick={p.onSelectAll}>
@@ -374,14 +389,14 @@ export function WeKnoraMonitorView(p: ViewProps) {
<colgroup> <colgroup>
<col style={{ width: '3%' }} /> <col style={{ width: '3%' }} />
<col style={{ width: '20%' }} /> <col style={{ width: '20%' }} />
<col style={{ width: '10%' }} />
<col style={{ width: '11%' }} /> <col style={{ width: '11%' }} />
<col style={{ width: '6%' }} /> <col style={{ width: '11%' }} />
<col style={{ width: '8%' }} />
<col style={{ width: '9%' }} />
<col style={{ width: '16%' }} />
<col style={{ width: '10%' }} />
<col style={{ width: '7%' }} /> <col style={{ width: '7%' }} />
<col style={{ width: '7%' }} />
<col style={{ width: '8%' }} />
<col style={{ width: '17%' }} />
<col style={{ width: '10%' }} />
<col style={{ width: '6%' }} />
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
@@ -431,7 +446,11 @@ export function WeKnoraMonitorView(p: ViewProps) {
<b className="monitor-file-name">{item.title || '未命名文件'}</b> <b className="monitor-file-name">{item.title || '未命名文件'}</b>
<small title={item.path}>{item.path || '未提供目录'}</small> <small title={item.path}>{item.path || '未提供目录'}</small>
</td> </td>
<td>{item.source_name}</td> <td>
<span className="monitor-clamp" title={item.source_name}>
{item.source_name}
</span>
</td>
<td> <td>
<span className="monitor-scope">{item.target_scope === 'internal' ? '对内' : '对外'}</span> <span className="monitor-scope">{item.target_scope === 'internal' ? '对内' : '对外'}</span>
<small title={item.target_kb}> <small title={item.target_kb}>
@@ -471,7 +490,7 @@ export function WeKnoraMonitorView(p: ViewProps) {
</div> </div>
<footer className="monitor-pagination"> <footer className="monitor-pagination">
<span> <span>
共 {page.total} 项 · 每页 {page.limit} 项 当前筛选共 {page.total} 项 · 每页 {page.limit} 项
</span> </span>
<div> <div>
<button <button
@@ -481,7 +500,7 @@ export function WeKnoraMonitorView(p: ViewProps) {
上一页 上一页
</button> </button>
<span> <span>
{Math.floor(page.offset / page.limit) + 1} / {Math.max(1, Math.ceil(page.total / page.limit))} 第 {Math.floor(page.offset / page.limit) + 1} / {pageCount} 页
</span> </span>
<button <button
disabled={busy || loading || page.offset + page.limit >= page.total} disabled={busy || loading || page.offset + page.limit >= page.total}
+187 -57
View File
@@ -6,19 +6,8 @@
box-shadow: none; box-shadow: none;
} }
.monitor-heading { .monitor-heading {
display: flex; flex-wrap: nowrap;
align-items: center; justify-content: flex-start;
gap: 14px;
margin-bottom: 20px;
}
.monitor-heading h1 {
font-size: 24px;
margin: 0 0 5px;
}
.monitor-heading p {
margin: 0;
color: var(--ink-mute);
font-size: 12px;
} }
.monitor-heading > span { .monitor-heading > span {
margin-left: auto; margin-left: auto;
@@ -28,15 +17,16 @@
.monitor-metric-grid { .monitor-metric-grid {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1.3fr 1.1fr; grid-template-columns: 1fr 1fr 1.3fr 1.1fr;
gap: 14px; gap: 16px;
margin-bottom: 15px; margin-bottom: 16px;
} }
.monitor-metric-grid article { .monitor-metric-grid article {
min-width: 0; min-width: 0;
padding: 18px; padding: 18px 20px;
border: 1px solid var(--border-base); border: 1px solid var(--border-base);
border-radius: 9px; border-radius: var(--r-lg);
background: var(--bg-panel); background: var(--bg-panel);
box-shadow: var(--shadow-card);
} }
.monitor-metric-grid h2 { .monitor-metric-grid h2 {
display: flex; display: flex;
@@ -49,8 +39,15 @@
margin: 0; margin: 0;
} }
.monitor-metric-grid h2 small { .monitor-metric-grid h2 small {
/* 口径标签做成徽标:顶部数字是全局口径,下表是筛选口径,二者不能被读成同一个范围 */
padding: 1px 6px;
border: 1px solid var(--border-base);
border-radius: 999px;
background: var(--bg-soft);
font-size: 10px; font-size: 10px;
color: var(--ink-faint); font-weight: 500;
color: var(--ink-mute);
white-space: nowrap;
} }
.monitor-numbers { .monitor-numbers {
display: flex; display: flex;
@@ -65,10 +62,11 @@
min-width: 0; min-width: 0;
} }
.monitor-numbers strong { .monitor-numbers strong {
font-size: 27px; font-size: 28px;
line-height: 1.3; line-height: 1.25;
font-weight: 700; font-weight: 600;
letter-spacing: -0.6px; letter-spacing: -0.03em;
color: var(--ink-strong);
white-space: nowrap; white-space: nowrap;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
@@ -77,7 +75,7 @@
color: var(--ink-mute); color: var(--ink-mute);
} }
.monitor-numbers .monitor-memory { .monitor-numbers .monitor-memory {
font-size: 23px; font-size: 24px;
} }
.monitor-good { .monitor-good {
color: var(--c-done) !important; color: var(--c-done) !important;
@@ -88,13 +86,18 @@
.monitor-service-panel, .monitor-service-panel,
.monitor-files { .monitor-files {
border: 1px solid var(--border-base); border: 1px solid var(--border-base);
border-radius: 9px; border-radius: var(--r-lg);
background: var(--bg-panel); background: var(--bg-panel);
box-shadow: var(--shadow-card);
overflow: hidden; overflow: hidden;
} }
.monitor-service-panel { .monitor-service-panel {
padding: 15px 18px; padding: 18px 20px;
margin-bottom: 22px; margin-bottom: 16px;
}
.monitor-files {
/* 时间范围浮层要能溢出卡片;圆角由表头/分页各自裁切 */
overflow: visible;
} }
.monitor-section-heading { .monitor-section-heading {
display: flex; display: flex;
@@ -102,11 +105,22 @@
justify-content: space-between; justify-content: space-between;
gap: 12px; gap: 12px;
} }
.monitor-heading-group {
display: flex;
align-items: baseline;
gap: 10px;
}
.monitor-section-heading h2 { .monitor-section-heading h2 {
font-size: 16px; font-size: 15px;
margin: 0; margin: 0;
font-weight: 650; font-weight: 650;
} }
.monitor-scope-note {
font-size: 12px;
font-weight: 500;
color: var(--ink-mute);
font-variant-numeric: tabular-nums;
}
.monitor-section-heading > span { .monitor-section-heading > span {
font-size: 11px; font-size: 11px;
color: var(--ink-mute); color: var(--ink-mute);
@@ -119,10 +133,18 @@
align-items: start; align-items: start;
} }
.monitor-service { .monitor-service {
border: 1px solid var(--border-base); border: 1px solid var(--border-soft);
border-radius: 6px; border-radius: var(--r-md);
background: var(--bg-soft); background: var(--bg-soft);
padding: 10px 11px; padding: 10px 12px;
transition:
border-color 120ms ease,
background 120ms ease;
}
.monitor-service:hover,
.monitor-service[open] {
border-color: var(--border-base);
background: var(--bg-panel);
font-size: 12px; font-size: 12px;
min-width: 0; min-width: 0;
} }
@@ -138,6 +160,8 @@
} }
.monitor-service summary > span { .monitor-service summary > span {
overflow-wrap: anywhere; overflow-wrap: anywhere;
color: var(--ink-base);
font-weight: 500;
} }
.monitor-service b { .monitor-service b {
font-size: 11px; font-size: 11px;
@@ -152,56 +176,119 @@
line-height: 1.6; line-height: 1.6;
} }
.monitor-files > .monitor-section-heading { .monitor-files > .monitor-section-heading {
padding: 18px 19px 10px; padding: 18px 20px 14px;
} }
.monitor-filters { .monitor-filters {
display: flex; display: flex;
gap: 8px; gap: 8px;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
padding: 10px 19px 16px; padding: 0 20px 14px;
border-bottom: 1px solid var(--border-base);
} }
.monitor-filters input, .monitor-filters input,
.monitor-filters select { .monitor-filters select {
border: 1px solid var(--border-strong); border: 1px solid var(--border-strong);
border-radius: 6px; border-radius: var(--r-md);
padding: 8px 10px; padding: 5px 8px;
background: var(--bg-panel); background: var(--bg-panel);
color: var(--ink-base); color: var(--ink-base);
font: inherit; font: inherit;
font-size: 12px; font-size: 12px;
max-width: 230px; min-height: 32px;
min-height: 35px; }
.monitor-filters select {
flex: 0 1 150px;
min-width: 112px;
} }
.monitor-filters > input { .monitor-filters > input {
width: 210px; flex: 1 1 220px;
max-width: 280px;
} }
.monitor-time-filter { .monitor-filters input:focus,
font-size: 12px; .monitor-filters select:focus {
border-color: var(--c-run);
outline: none;
box-shadow: var(--c-focus-ring);
}
.monitor-workbench .monitor-chip {
min-height: 32px;
padding: 5px 10px;
border: 1px dashed var(--border-strong);
color: var(--ink-mute); color: var(--ink-mute);
} }
.monitor-workbench .monitor-chip[aria-pressed='true'] {
border-style: solid;
border-color: var(--c-run-border);
background: var(--c-run-bg);
color: var(--c-run);
}
.monitor-workbench .monitor-clear {
margin-left: auto;
}
.monitor-time-filter {
position: relative;
font-size: 12px;
color: var(--ink-base);
}
.monitor-time-filter summary { .monitor-time-filter summary {
display: flex;
align-items: center;
min-height: 32px;
padding: 0 10px;
border: 1px solid var(--border-strong);
border-radius: var(--r-md);
background: var(--bg-panel);
cursor: pointer; cursor: pointer;
white-space: nowrap;
}
.monitor-time-filter[open] > summary {
border-color: var(--c-run);
}
/* 展开后浮在筛选条之上,不再把整排筛选挤成两行 */
.monitor-time-panel {
position: absolute;
z-index: 5;
top: calc(100% + 4px);
left: 0;
display: grid;
gap: 8px;
padding: 12px;
border: 1px solid var(--border-base);
border-radius: var(--r-lg);
background: var(--bg-panel);
box-shadow: var(--shadow-float);
} }
.monitor-time-filter label { .monitor-time-filter label {
display: flex; display: flex;
gap: 8px; gap: 8px;
align-items: center; align-items: center;
margin-top: 8px; color: var(--ink-mute);
white-space: nowrap;
} }
.monitor-batch { .monitor-batch {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 12px;
flex-wrap: wrap; flex-wrap: wrap;
padding: 11px 19px; padding: 8px 20px;
background: var(--c-run-bg); min-height: 48px;
border-top: 1px solid var(--c-run-border); background: var(--bg-panel);
border-bottom: 1px solid var(--c-run-border); border-bottom: 1px solid var(--border-base);
font-size: 12px; font-size: 12px;
} }
.monitor-batch b { .monitor-batch b {
color: var(--ink-mute);
font-weight: 500;
}
/* 只有真的选中了才变成强调色:否则「已选 0 项」常亮蓝条会让人以为有待处理的批量动作 */
.monitor-batch.has-selection {
background: var(--c-run-bg);
border-bottom-color: var(--c-run-border);
}
.monitor-batch.has-selection b {
color: var(--c-run); color: var(--c-run);
font-weight: 650;
} }
.monitor-batch > span { .monitor-batch > span {
color: var(--ink-mute); color: var(--ink-mute);
@@ -210,14 +297,21 @@
margin-left: auto; margin-left: auto;
} }
.monitor-workbench .primary { .monitor-workbench .primary {
background: var(--c-run); background: var(--c-primary);
border-color: var(--c-run); border-color: var(--c-primary);
color: #fff; color: #fff;
} }
.monitor-workbench button:disabled { .monitor-workbench button:disabled {
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5; opacity: 0.5;
} }
.monitor-workbench .primary:disabled {
/* 禁用的主按钮用中性灰:浅蓝半透明看起来像「可点但加载慢」 */
opacity: 1;
background: var(--bg-softer);
border-color: var(--border-base);
color: var(--ink-faint);
}
.monitor-workbench .monitor-link { .monitor-workbench .monitor-link {
padding: 4px 6px; padding: 4px 6px;
background: transparent; background: transparent;
@@ -238,16 +332,18 @@
text-align: left; text-align: left;
} }
.monitor-unified-table th { .monitor-unified-table th {
padding: 12px 9px; padding: 10px 12px;
background: var(--bg-soft); background: var(--bg-soft);
font-size: 11px; font-size: 11.5px;
font-weight: 500; font-weight: 500;
letter-spacing: 0.02em;
color: var(--ink-mute); color: var(--ink-mute);
border-bottom: 1px solid var(--border-base); border-bottom: 1px solid var(--border-base);
white-space: normal; white-space: normal;
} }
.monitor-unified-table td { .monitor-unified-table td {
padding: 14px 9px; padding: 12px 12px;
color: var(--ink-base);
font-size: 12px; font-size: 12px;
line-height: 1.6; line-height: 1.6;
border-bottom: 1px solid var(--border-base); border-bottom: 1px solid var(--border-base);
@@ -267,31 +363,65 @@
text-overflow: ellipsis; text-overflow: ellipsis;
margin-top: 3px; margin-top: 3px;
} }
.monitor-unified-table th {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 来源名可能是长哈希(legacy 来源),限两行,完整值放 title,避免一格撑高整行 */
.monitor-clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
overflow-wrap: anywhere;
}
.monitor-file-name { .monitor-file-name {
display: block; display: block;
font-size: 13px; font-size: 13px;
line-height: 1.6; line-height: 1.6;
font-weight: 550; font-weight: 500;
color: var(--ink-strong);
} }
.monitor-unified-table input { .monitor-unified-table input {
accent-color: var(--c-run); accent-color: var(--c-run);
width: 14px; width: 14px;
height: 14px; height: 14px;
} }
.monitor-unified-table tr:hover, .monitor-unified-table tbody tr:hover {
.monitor-selected { background: var(--bg-hover);
}
.monitor-unified-table tbody tr.monitor-selected {
background: var(--c-run-bg); background: var(--c-run-bg);
box-shadow: inset 2px 0 var(--c-run);
}
.monitor-unified-table tbody tr {
transition: background 100ms ease;
} }
.monitor-state, .monitor-state,
.monitor-scope { .monitor-scope {
display: inline-block; display: inline-flex;
align-items: center;
gap: 5px;
font-size: 11px; font-size: 11px;
padding: 2px 7px; padding: 1px 7px;
border-radius: 4px; border-radius: 999px;
white-space: nowrap; white-space: nowrap;
background: var(--c-run-bg); background: var(--c-run-bg);
color: var(--c-run); color: var(--c-run);
} }
.monitor-state::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}
.monitor-scope {
border-radius: var(--r-sm);
background: var(--bg-softer);
color: var(--ink-mute);
}
.monitor-state.attention { .monitor-state.attention {
background: var(--c-fail-bg); background: var(--c-fail-bg);
color: var(--c-fail); color: var(--c-fail);
@@ -314,9 +444,9 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 12px; gap: 12px;
padding: 13px 19px; padding: 12px 20px;
border-top: 1px solid var(--border-base); border-top: 1px solid var(--border-base);
font-size: 11px; font-size: 12px;
color: var(--ink-mute); color: var(--ink-mute);
} }
.monitor-pagination > div { .monitor-pagination > div {
+1 -1
View File
@@ -1,6 +1,6 @@
.qa-mirror-sync { .qa-mirror-sync {
padding: 12px 0; padding: 12px 0;
border-bottom: 1px solid var(--border, #dce4ef); border-bottom: 1px solid var(--border-base);
margin-bottom: 12px; margin-bottom: 12px;
} }
.qa-mirror-sync-line { .qa-mirror-sync-line {
+45 -34
View File
@@ -2,8 +2,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-width: 0; min-width: 0;
gap: 14px;
padding: 20px;
height: calc(100dvh - 44px); height: calc(100dvh - 44px);
overflow: hidden; overflow: hidden;
} }
@@ -130,16 +128,6 @@
grid-template-columns: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
} }
} }
.qa-ops-header h2 {
margin: 0 0 5px;
font-size: 21px;
font-weight: 650;
}
.qa-ops-header h2 span {
font-size: 15px;
color: var(--ink-mute);
font-weight: 400;
}
.qa-ops-header p, .qa-ops-header p,
.qa-ops-slice-note { .qa-ops-slice-note {
margin: 0; margin: 0;
@@ -152,9 +140,11 @@
flex-wrap: wrap; flex-wrap: wrap;
align-items: end; align-items: end;
gap: 12px; gap: 12px;
padding: 14px; padding: 16px;
border: 1px solid var(--border-base); border: 1px solid var(--border-base);
border-radius: var(--r-lg);
background: var(--bg-panel); background: var(--bg-panel);
box-shadow: var(--shadow-card);
} }
.qa-ops-query label { .qa-ops-query label {
display: flex; display: flex;
@@ -170,7 +160,7 @@
padding: 7px 10px; padding: 7px 10px;
color: var(--ink-strong); color: var(--ink-strong);
border: 1px solid var(--border-strong); border: 1px solid var(--border-strong);
border-radius: var(--r-sm); border-radius: var(--r-md);
background: var(--bg-panel); background: var(--bg-panel);
} }
.qa-week-picker { .qa-week-picker {
@@ -199,23 +189,40 @@
min-height: 36px; min-height: 36px;
min-width: 72px; min-width: 72px;
color: #fff; color: #fff;
background: var(--c-run); background: var(--c-primary);
border: 1px solid var(--c-run); border: 1px solid var(--c-primary);
}
.qa-ops-query button:hover:not(:disabled) {
color: #fff;
background: var(--c-primary-hover);
border-color: var(--c-primary-hover);
}
/* 立即同步会触发后台写入,不能与只读的「查询」同为主按钮:用描边次按钮区分 */
.qa-ops-query .qa-sync-action,
.qa-ops-query .qa-sync-action:hover:not(:disabled) {
color: var(--c-run);
background: var(--bg-panel);
border-color: var(--c-run-border);
}
.qa-ops-query .qa-sync-action:hover:not(:disabled) {
background: var(--c-run-bg);
} }
.qa-ops-query .qa-week-current { .qa-ops-query .qa-week-current {
color: var(--ink-strong); color: var(--ink-strong);
background: var(--bg-panel); background: var(--bg-panel);
border-color: var(--border-strong); border-color: var(--border-strong);
} }
.qa-ops-query .qa-week-current:hover { .qa-ops-query .qa-week-current:hover:not(:disabled) {
color: var(--ink-strong);
background: var(--bg-soft); background: var(--bg-soft);
border-color: var(--border-strong);
} }
.qa-ops button:focus-visible, .qa-ops button:focus-visible,
.qa-ops input:focus-visible, .qa-ops input:focus-visible,
.qa-ops select:focus-visible, .qa-ops select:focus-visible,
.qa-ops-table-scroll:focus-visible { .qa-ops-table-scroll:focus-visible {
outline: 2px solid var(--c-run); outline: none;
outline-offset: 2px; box-shadow: var(--c-focus-ring);
} }
.qa-ops-organization { .qa-ops-organization {
margin: 8px 14px; margin: 8px 14px;
@@ -230,7 +237,10 @@
min-width: 0; min-width: 0;
min-height: 0; min-height: 0;
border: 1px solid var(--border-base); border: 1px solid var(--border-base);
border-radius: var(--r-lg);
background: var(--bg-panel); background: var(--bg-panel);
box-shadow: var(--shadow-card);
overflow: hidden;
} }
.qa-ops-result-bar, .qa-ops-result-bar,
.qa-ops-page-bar { .qa-ops-page-bar {
@@ -496,7 +506,8 @@
/* Keep the wide ledger at the top; category colors do not tint entire rows. */ /* Keep the wide ledger at the top; category colors do not tint entire rows. */
.qa-ops { .qa-ops {
gap: 8px; gap: 8px;
padding: 12px 16px; /* 纵向保持紧凑(台账要尽量靠上),横向与其他模块统一 24px,切换页面时左边缘不跳 */
padding: 16px 24px 12px;
} }
.qa-ops-query { .qa-ops-query {
flex-wrap: wrap; flex-wrap: wrap;
@@ -561,7 +572,7 @@
cursor: default; cursor: default;
} }
.qa-ops-table tbody tr[data-qa-row]:hover { .qa-ops-table tbody tr[data-qa-row]:hover {
background: var(--bg-subtle, #f8fafc); background: var(--bg-soft);
} }
@media (max-width: 1100px) { @media (max-width: 1100px) {
.qa-ops-query { .qa-ops-query {
@@ -579,13 +590,13 @@
.qa-ai-model-settings { .qa-ai-model-settings {
padding: 14px 0; padding: 14px 0;
border-block: 1px solid var(--border, #e2e8f0); border-block: 1px solid var(--border-base);
} }
.qa-ai-model-settings h3 { .qa-ai-model-settings h3 {
margin: 0 0 6px; margin: 0 0 6px;
} }
.qa-ai-workbench { .qa-ai-workbench {
border: 1px solid var(--border, #e2e8f0); border: 1px solid var(--border-base);
border-radius: 5px; border-radius: 5px;
padding: 6px 10px; padding: 6px 10px;
} }
@@ -613,9 +624,9 @@
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
padding: 10px; padding: 10px;
border: 1px solid #93c5fd; border: 1px solid var(--c-run-border);
background: #eff6ff; background: var(--c-run-bg);
color: #1e3a8a; color: var(--c-run);
border-radius: 4px; border-radius: 4px;
} }
.qa-ai-confirm strong, .qa-ai-confirm strong,
@@ -642,16 +653,16 @@
gap: 5px; gap: 5px;
margin-top: 8px; margin-top: 8px;
padding: 8px; padding: 8px;
border-top: 1px solid var(--border, #e2e8f0); border-top: 1px solid var(--border-base);
} }
.qa-ai-task { .qa-ai-task {
display: block; display: block;
line-height: 18px; line-height: 18px;
color: #475569; color: var(--ink-mute);
} }
.qa-ai-task-running, .qa-ai-task-running,
.qa-ai-task-queued { .qa-ai-task-queued {
color: #1d4ed8; color: var(--c-run);
} }
.qa-ai-task-succeeded { .qa-ai-task-succeeded {
color: #166534; color: #166534;
@@ -667,14 +678,14 @@
margin-top: 12px; margin-top: 12px;
} }
.qa-ai-evidence > details { .qa-ai-evidence > details {
border-top: 1px solid var(--border, #e2e8f0); border-top: 1px solid var(--border-base);
padding: 8px 0; padding: 8px 0;
} }
.qa-ai-field-evidence { .qa-ai-field-evidence {
margin: 8px 0; margin: 8px 0;
padding: 8px; padding: 8px;
border-left: 2px solid #93c5fd; border-left: 2px solid var(--c-run-border);
background: #f8fafc; background: var(--bg-soft);
} }
.qa-ai-field-evidence p { .qa-ai-field-evidence p {
margin: 5px 0; margin: 5px 0;
@@ -684,7 +695,7 @@
.qa-ai-field-evidence blockquote { .qa-ai-field-evidence blockquote {
margin: 8px 0; margin: 8px 0;
padding-left: 10px; padding-left: 10px;
border-left: 2px solid #cbd5e1; border-left: 2px solid var(--border-strong);
} }
.qa-ai-hash { .qa-ai-hash {
overflow-wrap: anywhere; overflow-wrap: anywhere;
@@ -740,6 +751,6 @@
margin-top: 6px; margin-top: 6px;
} }
.qa-ledger-export [role='alert'] { .qa-ledger-export [role='alert'] {
color: var(--danger-ink); color: var(--c-fail);
font-size: 12px; font-size: 12px;
} }
+1 -5
View File
@@ -9,14 +9,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; gap: 16px;
padding: 24px 28px 40px; padding: 22px 24px 40px;
color: var(--rel-ink); color: var(--rel-ink);
min-width: 0; min-width: 0;
} }
.release-targets h1 {
margin: 0 0 4px;
font-size: 28px;
}
.release-targets h2 { .release-targets h2 {
margin: 0; margin: 0;
font-size: 18px; font-size: 18px;
+87 -74
View File
@@ -122,7 +122,7 @@
font-weight: 800; font-weight: 800;
} }
.catalog-tree-toggle:hover { .catalog-tree-toggle:hover {
background: #e9f4fb; background: var(--c-run-bg);
} }
.catalog-tree-name { .catalog-tree-name {
overflow: hidden; overflow: hidden;
@@ -167,7 +167,7 @@
} }
.catalog-breadcrumbs span:last-child button { .catalog-breadcrumbs span:last-child button {
border-radius: 6px; border-radius: 6px;
background: #eaf4fc; background: var(--c-run-bg);
color: var(--c-run); color: var(--c-run);
font-weight: 700; font-weight: 700;
} }
@@ -241,16 +241,21 @@
display: grid; display: grid;
gap: 9px; gap: 9px;
border-bottom: 1px solid var(--border-base); border-bottom: 1px solid var(--border-base);
padding: 11px 16px; padding: 10px 16px;
background: var(--bg-soft); background: var(--bg-panel);
} }
.routing-fields, .routing-fields {
.routing-actions {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: end; align-items: end;
gap: 9px; gap: 9px;
} }
.routing-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
}
.routing-fields label { .routing-fields label {
display: grid; display: grid;
gap: 4px; gap: 4px;
@@ -265,8 +270,7 @@
.routing-check { .routing-check {
display: flex !important; display: flex !important;
align-items: center; align-items: center;
gap: 5px; gap: 6px;
padding-bottom: 7px;
} }
.routing-actions span { .routing-actions span {
margin-right: auto; margin-right: auto;
@@ -274,7 +278,7 @@
font-size: 10px; font-size: 10px;
} }
.routing-actions button { .routing-actions button {
padding: 7px 9px; padding: 5px 12px;
} }
.catalog-routing p { .catalog-routing p {
margin: 0; margin: 0;
@@ -375,13 +379,20 @@
z-index: 2; z-index: 2;
top: 0; top: 0;
background: var(--bg-soft); background: var(--bg-soft);
color: var(--ink-mute);
font-weight: 500;
font-size: 11.5px;
letter-spacing: 0.02em;
} }
.catalog-table th, .catalog-table th,
.catalog-table td { .catalog-table td {
padding: 12px 10px; padding: 11px 12px;
white-space: normal; white-space: normal;
overflow-wrap: anywhere; overflow-wrap: anywhere;
font-size: 11px; font-size: 12.5px;
}
.catalog-table tbody tr:hover {
background: var(--bg-hover);
} }
.catalog-table th:nth-child(1) { .catalog-table th:nth-child(1) {
width: 32%; width: 32%;
@@ -404,17 +415,20 @@
.catalog-name { .catalog-name {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
gap: 7px; gap: 8px;
border: 0; border: 0;
padding: 0; padding: 0;
background: transparent; background: transparent;
box-shadow: none; box-shadow: none;
color: var(--c-run); color: var(--ink-strong);
font-weight: 500;
text-align: left; text-align: left;
line-height: 1.5; line-height: 1.5;
} }
.catalog-name:hover { .catalog-name:hover:not(:disabled) {
text-decoration: underline; border: 0;
background: transparent;
color: var(--c-run);
} }
.catalog-file { .catalog-file {
display: flex; display: flex;
@@ -597,32 +611,6 @@
color: var(--ink-mute); color: var(--ink-mute);
font-size: 9px; font-size: 9px;
} }
.catalog-table th:nth-child(1) {
width: 32%;
}
.catalog-table th:nth-child(2) {
width: 8%;
}
.catalog-table th:nth-child(3) {
width: 15%;
}
.catalog-table th:nth-child(4) {
width: 9%;
}
.catalog-table th:nth-child(5) {
width: 16%;
}
.catalog-table th:nth-child(6) {
width: 20%;
}
.routing-actions .blocked-policy-button {
border-color: var(--c-fail-border);
background: var(--c-fail-bg);
color: var(--c-fail);
}
.routing-actions .blocked-policy-button:hover:not(:disabled) {
background: var(--c-fail-bg);
}
.catalog-node-control { .catalog-node-control {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
@@ -632,29 +620,33 @@
margin-top: 4px; margin-top: 4px;
flex: 0 0 auto; flex: 0 0 auto;
} }
/* 策略按钮用浅底语义色:三种实心色块并排太抢眼,且与表格里的策略徽标同色同形,一眼对应 */
.routing-actions .internal-policy-button { .routing-actions .internal-policy-button {
border-color: var(--c-done); border-color: var(--c-done-border);
background: var(--c-done); background: var(--c-done-bg);
color: var(--bg-panel); color: var(--c-done);
}
.routing-actions .internal-policy-button:hover:not(:disabled) {
background: var(--c-done);
} }
.routing-actions .external-policy-button { .routing-actions .external-policy-button {
border-color: var(--c-warn); border-color: var(--c-warn-border);
background: var(--c-warn); background: var(--c-warn-bg);
color: var(--bg-panel); color: var(--c-warn);
}
.routing-actions .external-policy-button:hover:not(:disabled) {
background: var(--c-warn);
} }
.routing-actions .blocked-policy-button { .routing-actions .blocked-policy-button {
border-color: var(--c-fail); border-color: var(--c-fail-border);
background: var(--c-fail); background: var(--c-fail-bg);
color: var(--bg-panel); color: var(--c-fail);
}
.routing-actions .internal-policy-button:hover:not(:disabled) {
border-color: var(--c-done);
background: var(--c-done-bg);
}
.routing-actions .external-policy-button:hover:not(:disabled) {
border-color: var(--c-warn);
background: var(--c-warn-bg);
} }
.routing-actions .blocked-policy-button:hover:not(:disabled) { .routing-actions .blocked-policy-button:hover:not(:disabled) {
background: var(--c-fail); border-color: var(--c-fail);
background: var(--c-fail-bg);
} }
.catalog-policy-cell .scope-badge.internal { .catalog-policy-cell .scope-badge.internal {
background: var(--c-done-bg); background: var(--c-done-bg);
@@ -670,25 +662,46 @@
} }
.catalog-policy-actions { .catalog-policy-actions {
display: flex; display: flex;
align-items: flex-start; align-items: center;
gap: 8px; gap: 8px;
margin-left: auto; margin-left: auto;
} }
.blocked-policy-stack { .routing-actions .selected-count {
display: grid;
gap: 4px;
}
.blocked-policy-stack .selected-count {
margin: 0;
color: var(--ink-mute); color: var(--ink-mute);
font-size: 10px; font-size: 12px;
line-height: 1.2;
text-align: center;
white-space: nowrap; white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* 只有真的选中了才变成强调色,与解析监控的批量条同一规则 */
.catalog-routing.has-selection {
border-bottom-color: var(--c-run-border);
background: var(--c-run-bg);
}
.catalog-routing.has-selection .selected-count {
color: var(--c-run);
font-weight: 600;
}
.catalog-icon {
width: 16px;
height: 16px;
flex: none;
margin-top: 1px;
background: currentColor;
-webkit-mask: var(--icon) center / contain no-repeat;
mask: var(--icon) center / contain no-repeat;
}
.catalog-icon.folder {
color: var(--c-run);
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 4A1.5 1.5 0 0 1 3 2.5h3.1l1.6 1.6H13A1.5 1.5 0 0 1 14.5 5.6V12A1.5 1.5 0 0 1 13 13.5H3A1.5 1.5 0 0 1 1.5 12z'/%3E%3C/svg%3E");
opacity: 0.85;
}
.catalog-icon.file {
color: var(--ink-faint);
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5h5l3.5 3.5v8A1.5 1.5 0 0 1 11 14.5H4A1.5 1.5 0 0 1 2.5 13V3A1.5 1.5 0 0 1 4 1.5zm4.5 1v3h3' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
} }
.snapshot-history { .snapshot-history {
margin: 12px 0; margin: 12px 0;
border: 1px solid #d8e3f0; border: 1px solid var(--border-base);
border-radius: 10px; border-radius: 10px;
padding: 14px 16px; padding: 14px 16px;
background: var(--bg-soft); background: var(--bg-soft);
@@ -760,7 +773,7 @@
padding: 7px 12px; padding: 7px 12px;
border: 1px solid var(--c-run-border); border: 1px solid var(--c-run-border);
border-radius: 999px; border-radius: 999px;
background: #eef6fc; background: var(--c-run-bg);
color: var(--ink-base); color: var(--ink-base);
font: inherit; font: inherit;
font-size: 11px; font-size: 11px;
@@ -784,7 +797,7 @@
margin-left: auto; margin-left: auto;
border: 0; border: 0;
background: transparent; background: transparent;
color: #4c7d9e; color: var(--ink-mute);
font: inherit; font: inherit;
font-size: 11px; font-size: 11px;
text-decoration: underline; text-decoration: underline;
@@ -805,9 +818,9 @@
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 18px; padding: 18px;
border: 1px solid var(--border, #e3e8ec); border: 1px solid var(--border-base);
border-radius: 10px; border-radius: 10px;
background: var(--card, #fff); background: var(--bg-panel);
} }
.catalog-scanning-state > div { .catalog-scanning-state > div {
display: flex; display: flex;
@@ -818,7 +831,7 @@
font-size: 15px; font-size: 15px;
} }
.catalog-scanning-state span { .catalog-scanning-state span {
color: var(--muted-foreground, #5b6773); color: var(--ink-mute);
font-size: 13px; font-size: 13px;
} }
.catalog-scanning-state progress { .catalog-scanning-state progress {
@@ -830,6 +843,6 @@
font-size: 13px; font-size: 13px;
} }
.catalog-scanning-state small { .catalog-scanning-state small {
color: var(--muted-foreground, #5b6773); color: var(--ink-mute);
font-size: 12px; font-size: 12px;
} }
+131 -72
View File
@@ -1,68 +1,77 @@
/* ============================================================ /* ============================================================
知识治理平台 · 方向 A · Data-console 知识治理平台 · 工作台视觉(配色取自越疆官网 dobot.cn)
冷灰白底、1px 细边、零阴影、等宽数字 纯中性灰底与文字(不带蓝紫偏色,久看不累)、细边 + 极轻投影、等宽数字;
全站只有一个强调色:越疆品牌钴蓝 #0039C8
彩色仅用于语义(红=失败、橙=停滞、蓝=处理中、绿=完成、灰=死信) 彩色仅用于语义(红=失败、橙=停滞、蓝=处理中、绿=完成、灰=死信)
============================================================ */ ============================================================ */
:root { :root {
/* 基础色板(A 风格) */ --bg-page: #f7f8fc;
--bg-page: #fafbfc;
--bg-panel: #ffffff; --bg-panel: #ffffff;
--bg-soft: #f8fafc; --bg-soft: #f8f9fb;
--bg-softer: #f3f6f9; --bg-softer: #f2f3f5;
--bg-hover: #f3f7fa; --bg-hover: #f5f6f9;
--bg-active: #eff4fd; --bg-active: #edf1fb;
--border-strong: #d3dce3; --border-strong: #d9d9d9;
--border-base: #e3e8ec; --border-base: #e8e8e8;
--border-soft: #eef2f6; --border-soft: #efeff2;
--ink-strong: #0f1720; --ink-strong: #1d1d1f;
--ink-base: #16324f; --ink-base: #333336;
--ink-mute: #57687a; --ink-mute: #6e6e73;
--ink-faint: #8a98a4; --ink-faint: #a6a6a8;
/* 语义色 */ /* 语义色 */
--c-fail: #b91c1c; --c-fail: #c0362c;
--c-fail-bg: #fdecec; --c-fail-bg: #fef3f2;
--c-fail-border: #f2baba; --c-fail-border: #fecdca;
--c-warn: #d97706; --c-warn: #b54708;
--c-warn-bg: #fef3e2; --c-warn-bg: #fffaeb;
--c-warn-border: #f3d9a8; --c-warn-border: #fedf89;
--c-run: #2563eb; --c-run: #0039c8;
--c-run-bg: #eff4fd; --c-run-bg: #edf1fb;
--c-run-border: #c7d7f2; --c-run-border: #bccbef;
--c-done: #059669; --c-done: #067647;
--c-done-bg: #eefaf4; --c-done-bg: #ecfdf3;
--c-done-border: #bfe3d4; --c-done-border: #abefc6;
--c-dead: #6b7280; --c-dead: #6e6e73;
--c-dead-bg: #f3f4f6; --c-dead-bg: #f2f3f5;
--c-cyan: #0891b2; --c-cyan: #0e7090;
--c-cyan-bg: #ddf7fb; --c-cyan-bg: #e8f7fb;
/* 深侧栏(A 风格) */ /* 侧栏与内容同一明度,靠细边与浅钴蓝选中态区分,长时间操作不刺眼 */
--side-bg: #0e1c2b; --side-bg: #ffffff;
--side-bg-active: #16324a; --side-bg-active: #edf1fb;
--side-bg-hover: #152a3d; --side-bg-hover: #f5f6f9;
--side-border: #1a2f44; --side-border: #e8e8e8;
--side-accent: #2dd4bf; --side-accent: #0039c8;
--side-ink: #9fb6c6; --side-ink: #474747;
--side-ink-strong: #e8f2f8; --side-ink-strong: #1d1d1f;
--side-ink-faint: #5b7789; --side-ink-faint: #a6a6a8;
/* 全站唯一的主操作色;以前主按钮借用深色侧栏底色,各模块又各自改成蓝/黑,出现三种"主按钮" */
--c-primary: #0039c8;
--c-primary-hover: #002fa5;
--c-focus-ring: 0 0 0 3px rgb(0 57 200 / 15%);
/* 卡片只用极轻投影托起,层级靠留白而不是色块 */
--shadow-card: 0 1px 2px rgb(0 0 0 / 4%), 0 1px 3px rgb(0 0 0 / 3%);
--shadow-float: 0 12px 32px rgb(0 0 0 / 10%), 0 2px 6px rgb(0 0 0 / 5%);
/* 字体 */ /* 字体 */
--font-base: Inter, 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif; --font-base: Inter, 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace; --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
/* 圆角(A 风格:小圆角) */ /* 圆角(A 风格:小圆角) */
--r-sm: 3px; --r-sm: 4px;
--r-md: 4px; --r-md: 6px;
--r-lg: 6px; --r-lg: 10px;
} }
* { * {
@@ -80,7 +89,8 @@ body {
background: var(--bg-page); background: var(--bg-page);
color: var(--ink-strong); color: var(--ink-strong);
font-size: 13px; font-size: 13px;
line-height: 1.5; line-height: 1.55;
letter-spacing: 0.005em;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-synthesis: none; font-synthesis: none;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
@@ -94,14 +104,14 @@ body {
button { button {
border: 1px solid var(--border-strong); border: 1px solid var(--border-strong);
border-radius: var(--r-md); border-radius: var(--r-md);
padding: 5px 11px; padding: 5px 12px;
color: var(--ink-strong); color: var(--ink-base);
background: var(--bg-panel); background: var(--bg-panel);
font: inherit; font: inherit;
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
box-shadow: none; box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
transition: transition:
background 120ms ease, background 120ms ease,
border-color 120ms ease, border-color 120ms ease,
@@ -110,7 +120,13 @@ button {
button:hover:not(:disabled) { button:hover:not(:disabled) {
background: var(--bg-soft); background: var(--bg-soft);
border-color: #94a3b8; border-color: var(--border-strong);
color: var(--ink-strong);
}
button:focus-visible {
outline: none;
box-shadow: var(--c-focus-ring);
} }
button:disabled { button:disabled {
@@ -121,16 +137,17 @@ button:disabled {
button.primary, button.primary,
button[type='submit'], button[type='submit'],
.primary-link { .primary-link {
background: var(--side-bg); background: var(--c-primary);
border-color: var(--side-bg); border-color: var(--c-primary);
color: #fff; color: #fff;
font-weight: 600; font-weight: 600;
} }
button.primary:hover:not(:disabled), button.primary:hover:not(:disabled),
button[type='submit']:hover:not(:disabled),
.primary-link:hover { .primary-link:hover {
background: #1a2f44; background: var(--c-primary-hover);
border-color: #1a2f44; border-color: var(--c-primary-hover);
} }
/* ========== 代码与等宽 ========== */ /* ========== 代码与等宽 ========== */
@@ -165,7 +182,7 @@ code {
padding: 18px 0; padding: 18px 0;
color: var(--side-ink); color: var(--side-ink);
background: var(--side-bg); background: var(--side-bg);
border-right: 1px solid #0a141f; border-right: 1px solid var(--side-border);
box-shadow: none; box-shadow: none;
} }
@@ -185,7 +202,7 @@ code {
flex: none; flex: none;
place-items: center; place-items: center;
border-radius: var(--r-md); border-radius: var(--r-md);
color: #04211d; color: #fff;
background: var(--side-accent); background: var(--side-accent);
font-size: 13px; font-size: 13px;
font-weight: 700; font-weight: 700;
@@ -224,7 +241,7 @@ code {
border: 1px solid transparent; border: 1px solid transparent;
border-radius: var(--r-md); border-radius: var(--r-md);
padding: 9px 10px; padding: 9px 10px;
color: #8aa2b3; color: var(--side-ink);
background: transparent; background: transparent;
box-shadow: none; box-shadow: none;
font-weight: 500; font-weight: 500;
@@ -236,17 +253,20 @@ code {
color 120ms ease; color 120ms ease;
} }
.nav-item:hover { /* 必须带 :not(:disabled):全局 button:hover:not(:disabled) 特异性更高,
color: #d9e8f1; 少了它悬停会被刷成白底,选中项文字几乎看不见 */
.nav-item:hover:not(:disabled) {
color: var(--side-ink-strong);
background: var(--side-bg-hover); background: var(--side-bg-hover);
border-color: transparent;
} }
.nav-item.active { .nav-item.active,
.nav-item.active:hover:not(:disabled) {
border-color: transparent; border-color: transparent;
color: #fff; color: var(--side-accent);
font-weight: 600;
background: var(--side-bg-active); background: var(--side-bg-active);
border-left: 2px solid var(--side-accent);
padding-left: 8px;
} }
.nav-icon { .nav-icon {
@@ -255,10 +275,14 @@ code {
height: 24px; height: 24px;
flex: none; flex: none;
place-items: center; place-items: center;
color: var(--side-accent); color: var(--ink-faint);
font-size: 20px; font-size: 20px;
} }
.nav-item.active .nav-icon {
color: var(--side-accent);
}
.sidebar-footer { .sidebar-footer {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -266,7 +290,7 @@ code {
margin-top: auto; margin-top: auto;
padding: 14px 18px 0; padding: 14px 18px 0;
border-top: 1px solid var(--side-border); border-top: 1px solid var(--side-border);
color: #46647a; color: var(--side-ink-faint);
font-size: 11px; font-size: 11px;
} }
@@ -388,11 +412,46 @@ code {
/* ========== 页面外壳 ========== */ /* ========== 页面外壳 ========== */
.page-shell { .page-shell {
width: min(1240px, calc(100% - 48px)); /* 模块自己的 max-width(目录/监控 1800、设置 1500)此前被 min() 宽度压成 1240,宽屏上与发布/问答页不齐 */
width: calc(100% - 48px);
max-width: 1240px;
margin: 0 auto; margin: 0 auto;
padding: 22px 0 40px; padding: 22px 0 40px;
} }
/* 六个模块共用的页头:标题、说明与右侧操作的字号和位置只在这里定义一份 */
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
margin: 0 0 20px;
}
.page-header .page-title {
margin: 0 0 4px;
color: var(--ink-strong);
font-size: 22px;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.3;
}
.page-header .page-subtitle {
margin: 0;
color: var(--ink-mute);
font-size: 13px;
}
/* 这三个页面的外层是带 gap 的纵向 flex,页头间距已由 gap 提供 */
.page-header:where(.rel-head, .version-history-header, .qa-ops-header) {
margin-bottom: 4px;
}
.page-header-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.hero { .hero {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
@@ -490,7 +549,7 @@ h1 {
border: 1px solid var(--border-base); border: 1px solid var(--border-base);
border-radius: var(--r-lg); border-radius: var(--r-lg);
background: var(--bg-panel); background: var(--bg-panel);
box-shadow: none; box-shadow: var(--shadow-card);
} }
.panel-heading { .panel-heading {
@@ -1141,7 +1200,7 @@ tbody tr:hover {
border-radius: var(--r-md); border-radius: var(--r-md);
padding: 5px 11px; padding: 5px 11px;
color: #fff; color: #fff;
background: var(--side-bg); background: var(--c-primary);
box-shadow: none; box-shadow: none;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
@@ -2113,18 +2172,18 @@ tbody tr:hover {
right: 6px; right: 6px;
transform: translateY(-50%); transform: translateY(-50%);
padding: 2px 8px; padding: 2px 8px;
border: 1px solid var(--line-base, #d7dbe0); border: 1px solid var(--border-strong);
border-radius: 6px; border-radius: 6px;
background: #fff; background: #fff;
color: var(--ink-base, #333); color: var(--ink-base);
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
line-height: 20px; line-height: 20px;
cursor: pointer; cursor: pointer;
} }
.password-toggle:hover { .password-toggle:hover {
border-color: var(--c-run, #2f6feb); border-color: var(--c-run);
color: var(--c-run, #2f6feb); color: var(--c-run);
} }
.login-error { .login-error {
margin: 0; margin: 0;
@@ -2167,8 +2226,8 @@ tbody tr:hover {
width: 26px; width: 26px;
height: 26px; height: 26px;
border-radius: 50%; border-radius: 50%;
background: var(--side-bg); background: var(--c-primary);
color: var(--side-accent); color: #fff;
display: grid; display: grid;
place-items: center; place-items: center;
font-size: 13px; font-size: 13px;
+14 -14
View File
@@ -281,7 +281,7 @@
font-size: 9px; font-size: 9px;
} }
.settings-source-row select { .settings-source-row select {
border: 1px solid #c9d9e4; border: 1px solid var(--border-strong);
border-radius: 7px; border-radius: 7px;
padding: 7px; padding: 7px;
background: var(--bg-panel); background: var(--bg-panel);
@@ -321,7 +321,7 @@
min-width: 64px; min-width: 64px;
} }
.settings-source-row .source-more:focus-visible { .settings-source-row .source-more:focus-visible {
outline: 2px solid #2978bd; outline: 2px solid var(--c-run);
outline-offset: 3px; outline-offset: 3px;
} }
.dependency-grid { .dependency-grid {
@@ -657,8 +657,8 @@ button.link {
.dingtalk-qr-loading span { .dingtalk-qr-loading span {
width: 42px; width: 42px;
height: 42px; height: 42px;
border: 4px solid #dbe4ee; border: 4px solid var(--border-base);
border-top-color: var(--brand); border-top-color: var(--c-run);
border-radius: 50%; border-radius: 50%;
animation: dingtalk-qr-spin 0.8s linear infinite; animation: dingtalk-qr-spin 0.8s linear infinite;
} }
@@ -707,8 +707,8 @@ button.link {
.filename-filter-editor code { .filename-filter-editor code {
padding: 2px 7px; padding: 2px 7px;
border-radius: 999px; border-radius: 999px;
background: #eaf2ff; background: var(--c-run-bg);
color: #2456a6; color: var(--c-run);
font-family: inherit; font-family: inherit;
font-size: 11px; font-size: 11px;
} }
@@ -791,9 +791,9 @@ button.link {
gap: 10px; gap: 10px;
padding: 12px; padding: 12px;
margin-bottom: 14px; margin-bottom: 14px;
border: 1px solid var(--border, #e3e8ec); border: 1px solid var(--border-base);
border-radius: 10px; border-radius: 10px;
background: var(--card, #fff); background: var(--bg-panel);
} }
.dingtalk-discovery-heading { .dingtalk-discovery-heading {
display: flex; display: flex;
@@ -807,7 +807,7 @@ button.link {
} }
.dingtalk-discovery-heading small { .dingtalk-discovery-heading small {
display: block; display: block;
color: var(--muted-foreground, #5b6773); color: var(--ink-mute);
font-size: 12px; font-size: 12px;
} }
.dingtalk-discovery-groups { .dingtalk-discovery-groups {
@@ -838,7 +838,7 @@ button.link {
border-radius: 6px; border-radius: 6px;
} }
.discovery-row:hover { .discovery-row:hover {
background: var(--accent, #f2f5f8); background: var(--bg-soft);
} }
.discovery-row label { .discovery-row label {
display: flex; display: flex;
@@ -848,7 +848,7 @@ button.link {
} }
.discovery-row.registered label { .discovery-row.registered label {
cursor: default; cursor: default;
color: var(--muted-foreground, #5b6773); color: var(--ink-mute);
} }
.discovery-row strong { .discovery-row strong {
font-size: 13px; font-size: 13px;
@@ -857,7 +857,7 @@ button.link {
.discovery-row small { .discovery-row small {
display: block; display: block;
font-size: 11px; font-size: 11px;
color: var(--muted-foreground, #5b6773); color: var(--ink-mute);
} }
.dingtalk-discovery-actions { .dingtalk-discovery-actions {
display: flex; display: flex;
@@ -865,7 +865,7 @@ button.link {
gap: 10px; gap: 10px;
} }
.dingtalk-discovery-actions small { .dingtalk-discovery-actions small {
color: var(--muted-foreground, #5b6773); color: var(--ink-mute);
font-size: 12px; font-size: 12px;
} }
@@ -878,7 +878,7 @@ button.link {
margin: 0 0 0.75rem; margin: 0 0 0.75rem;
} }
.settings-legacy-toggle small { .settings-legacy-toggle small {
color: #5a6572; color: var(--ink-mute);
font-size: 0.8rem; font-size: 0.8rem;
line-height: 1.5; line-height: 1.5;
} }
+30 -41
View File
@@ -4,28 +4,17 @@
flex-direction: column; flex-direction: column;
gap: 18px; gap: 18px;
min-width: 0; min-width: 0;
padding: 24px; padding: 22px 24px 40px;
color: var(--ink-base); color: var(--ink-base);
} }
.version-history-header,
.version-history-current-card, .version-history-current-card,
.version-history-records { .version-history-records {
background: var(--bg-panel, #fff); background: var(--bg-panel);
border: 1px solid var(--border-base, #e2e8f0); border: 1px solid var(--border-base);
border-radius: 10px; border-radius: 10px;
padding: 20px; padding: 20px;
min-width: 0; min-width: 0;
} }
.version-history-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.version-history h2 {
margin: 0 0 4px;
font-size: 22px;
}
.version-history h3 { .version-history h3 {
margin: 0; margin: 0;
font-size: 18px; font-size: 18px;
@@ -33,7 +22,7 @@
.version-history-header p, .version-history-header p,
.version-history-records-heading p { .version-history-records-heading p {
margin: 0; margin: 0;
color: var(--ink-mute, #64748b); color: var(--ink-mute);
font-size: 13px; font-size: 13px;
} }
.version-history-actions { .version-history-actions {
@@ -48,19 +37,19 @@
display: grid; display: grid;
grid-template-columns: 0.8fr 0.8fr 2fr 1.3fr; grid-template-columns: 0.8fr 0.8fr 2fr 1.3fr;
margin: 16px 0 0; margin: 16px 0 0;
border: 1px solid var(--border-base, #e2e8f0); border: 1px solid var(--border-base);
background: var(--bg-page, #f8fafc); background: var(--bg-page);
} }
.version-history-build-grid > div { .version-history-build-grid > div {
padding: 12px 14px; padding: 12px 14px;
min-width: 0; min-width: 0;
border-right: 1px solid var(--border-base, #e2e8f0); border-right: 1px solid var(--border-base);
} }
.version-history-build-grid > div:last-child { .version-history-build-grid > div:last-child {
border-right: 0; border-right: 0;
} }
.version-history dt { .version-history dt {
color: var(--ink-mute, #64748b); color: var(--ink-mute);
font-size: 12px; font-size: 12px;
margin-bottom: 5px; margin-bottom: 5px;
} }
@@ -76,7 +65,7 @@
} }
.version-history-running-state { .version-history-running-state {
margin: 12px 0 0; margin: 12px 0 0;
color: var(--ink-mute, #64748b); color: var(--ink-mute);
font-size: 12px; font-size: 12px;
overflow-wrap: anywhere; overflow-wrap: anywhere;
} }
@@ -93,13 +82,13 @@
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
margin: 10px 0 14px; margin: 10px 0 14px;
color: var(--ink-mute, #64748b); color: var(--ink-mute);
font-size: 12px; font-size: 12px;
} }
.version-history-notice { .version-history-notice {
padding: 10px 14px; padding: 10px 14px;
border-radius: 6px; border-radius: 6px;
background: var(--c-run-bg, #eff6ff); background: var(--c-run-bg);
font-size: 13px; font-size: 13px;
} }
.version-history-filters { .version-history-filters {
@@ -116,9 +105,9 @@
} }
.version-history-filters button.active { .version-history-filters button.active {
font-weight: 600; font-weight: 600;
color: var(--c-run, #2563eb); color: var(--c-run);
background: var(--c-run-bg, #eff6ff); background: var(--c-run-bg);
border-color: var(--c-run-border, #bfdbfe); border-color: var(--c-run-border);
} }
.version-history-timeline { .version-history-timeline {
list-style: none; list-style: none;
@@ -130,9 +119,9 @@
min-width: 0; min-width: 0;
} }
.version-history-entry { .version-history-entry {
border: 1px solid var(--border-base, #e2e8f0); border: 1px solid var(--border-base);
border-radius: 8px; border-radius: 8px;
background: var(--bg-panel, #fff); background: var(--bg-panel);
min-width: 0; min-width: 0;
overflow: hidden; overflow: hidden;
} }
@@ -155,14 +144,14 @@
font-weight: 400; font-weight: 400;
} }
.version-history-entry-head:hover { .version-history-entry-head:hover {
background: var(--bg-hover, #f8fafc); background: var(--bg-hover);
} }
.version-history-entry-head[aria-expanded='true'] { .version-history-entry-head[aria-expanded='true'] {
background: var(--bg-page, #f8fafc); background: var(--bg-page);
border-bottom: 1px solid var(--border-base, #e2e8f0); border-bottom: 1px solid var(--border-base);
} }
.version-history-entry-head:focus-visible { .version-history-entry-head:focus-visible {
outline: 2px solid var(--c-run, #2563eb); outline: 2px solid var(--c-run);
outline-offset: -3px; outline-offset: -3px;
} }
.version-history-version { .version-history-version {
@@ -170,14 +159,14 @@
flex-shrink: 0; flex-shrink: 0;
font-size: 13px; font-size: 13px;
padding: 3px 8px; padding: 3px 8px;
border: 1px solid var(--border-strong, #cbd5e1); border: 1px solid var(--border-strong);
border-radius: 5px; border-radius: 5px;
font-weight: 500; font-weight: 500;
color: var(--ink-mute); color: var(--ink-mute);
} }
.version-history-version.development { .version-history-version.development {
border-color: #b4d1f5; border-color: var(--c-run-border);
color: #2465aa; color: var(--c-run);
} }
.version-history-version.release { .version-history-version.release {
border-color: #b1d7bd; border-color: #b1d7bd;
@@ -199,8 +188,8 @@
} }
.version-history-badge.pending, .version-history-badge.pending,
.version-history-badge.development { .version-history-badge.development {
color: #2465aa; color: var(--c-run);
background: #eff6ff; background: var(--c-run-bg);
} }
.version-history-badge.release { .version-history-badge.release {
color: #24814e; color: #24814e;
@@ -217,7 +206,7 @@
} }
.version-history-entry-head > .version-history-sha, .version-history-entry-head > .version-history-sha,
.version-history-entry-head time { .version-history-entry-head time {
color: var(--ink-faint, #7c8c9f); color: var(--ink-faint);
flex-shrink: 0; flex-shrink: 0;
font-size: 12px; font-size: 12px;
} }
@@ -231,7 +220,7 @@
.version-history-toggle { .version-history-toggle {
flex-shrink: 0; flex-shrink: 0;
font-size: 13px; font-size: 13px;
color: var(--c-run, #2563eb); color: var(--c-run);
} }
.version-history-detail { .version-history-detail {
padding: 16px; padding: 16px;
@@ -260,7 +249,7 @@
font-size: 12px; font-size: 12px;
line-height: 1.6; line-height: 1.6;
background: #eef2f6; background: #eef2f6;
color: #536275; color: var(--ink-mute);
} }
.version-history-change-tag.added { .version-history-change-tag.added {
background: #eaf7ef; background: #eaf7ef;
@@ -271,8 +260,8 @@
color: #986000; color: #986000;
} }
.version-history-change-tag.changed { .version-history-change-tag.changed {
background: #eff6ff; background: var(--c-run-bg);
color: #2465aa; color: var(--c-run);
} }
.version-history-change-tag.security { .version-history-change-tag.security {
background: #fff1ef; background: #fff1ef;