- 回收 SQL 占位符改为 $1/$2,消除 pgx 扩展协议 42P18(手动/定时对账 500) - 直接写入 finding 时归一空 confirmation_state,避免 23514 - 修正 R6/overview 同谓词用例夹具,两条台账各自持有 source version - 页面顶部统一服务与队列单行状态条,删除 Embedding/LLM 常量卡 - 平台阶段筛选合并为「WeKnora 处理中」,后端支持 stage=weknora - weknora_url 由测试 WeKnora 源构造,详情与 503 提供跳转链接 - 补 1000/页线上查询、R8 合法收养、weknora 阶段筛选用例
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
canRetryTask,
|
||||
actionLabels,
|
||||
stageLabels,
|
||||
stageFilterLabels,
|
||||
taskStatusLabels,
|
||||
targetLabel,
|
||||
} from './monitorTasks'
|
||||
@@ -15,7 +16,7 @@ import { requeueJobFailure, retryPublicationsBatch, startPublicationRemoval } fr
|
||||
import { fetchActiveUISettings, settingsRefreshDelays } from './uiSettings'
|
||||
import { useOptionalAuth } from './auth'
|
||||
import { WorkspaceContextTabsSetter } from './workspaceContext'
|
||||
import { ReconciliationFindingsView, FindingDetail, WeKnoraProgress } from './ReconciliationFindings'
|
||||
import { ReconciliationFindingsView, FindingDetail, ServiceStrip, WeKnoraProgress } from './ReconciliationFindings'
|
||||
import type { FindingFilters } from './ReconciliationFindings'
|
||||
import {
|
||||
createReconciliationRun,
|
||||
@@ -196,41 +197,7 @@ export function WeKnoraMonitorView(p: ViewProps) {
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
<section className="monitor-service-panel">
|
||||
<div className="monitor-section-heading">
|
||||
<h2>服务与依赖</h2>
|
||||
<span>展开查看状态原因</span>
|
||||
</div>
|
||||
<div className="monitor-service-grid">
|
||||
{overview?.health.length ? (
|
||||
overview.health.map((s) => (
|
||||
<details key={s.key} className="monitor-service">
|
||||
<summary>
|
||||
<span>{s.name}</span>
|
||||
<b
|
||||
className={
|
||||
healthLabel(s) === '可接单'
|
||||
? 'monitor-good'
|
||||
: ['阻断', '不可达'].includes(healthLabel(s))
|
||||
? 'monitor-bad'
|
||||
: ''
|
||||
}
|
||||
>
|
||||
● {healthLabel(s)}
|
||||
</b>
|
||||
</summary>
|
||||
<p>{s.reason || '未提供状态说明'}</p>
|
||||
<small>
|
||||
检测:{time(s.observed_at)} · {s.latency_ms} ms · 存活 {s.liveness || '未确认'}
|
||||
{s.probe_target ? ` · 探测对象 ${s.probe_target}` : ''}
|
||||
</small>
|
||||
</details>
|
||||
))
|
||||
) : (
|
||||
<p className="monitor-muted">尚未取得服务状态</p>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
<ServiceStrip overview={overview} />
|
||||
<section className="monitor-files">
|
||||
<div className="monitor-section-heading">
|
||||
<div className="monitor-heading-group">
|
||||
@@ -333,7 +300,7 @@ export function WeKnoraMonitorView(p: ViewProps) {
|
||||
onChange={(e) => patchFilter('stage', e.target.value)}
|
||||
>
|
||||
<option value="">全部阶段</option>
|
||||
{Object.entries(stageLabels).map(([key, label]) => (
|
||||
{Object.entries(stageFilterLabels).map(([key, label]) => (
|
||||
<option key={key} value={key}>
|
||||
{label}
|
||||
</option>
|
||||
|
||||
Reference in New Issue
Block a user