style(qa-ops): 补删质量与月明细冗余提示
This commit is contained in:
@@ -76,6 +76,12 @@
|
||||
> `0.1.12`),由 `scripts/version.py` 从 git **算出来**;开发交付的独立说明写入本文件“开发快照”章节,并打 `snapshot/vX.Y.Z` 注释标签 ⇒ 每次开发交付均可追溯,
|
||||
> 但"发布版本"仍然只能由人定(CI 不会自动升版本、不会打 tag)。
|
||||
|
||||
## 开发快照 snapshot/v0.1.30 - 2026-10-18
|
||||
|
||||
### Changed
|
||||
|
||||
- 继续清理问答运营的冗余提示:质量统计移除完整范围留档、模型接入和读取时间说明;个人月明细移除重复的绩效/零记录解释及读取时间,保留实际数量、范围版本、分页和真实错误。质量统计按钮使用简短名称,不改统计与审计逻辑。
|
||||
|
||||
## 开发快照 snapshot/v0.1.29 - 2026-10-18
|
||||
|
||||
### Added
|
||||
|
||||
@@ -14,9 +14,17 @@ describe('personal monthly view', () => {
|
||||
onPage={() => {}}
|
||||
/>
|
||||
)
|
||||
for (const text of ['本源零记录', '当月进度', '姓名未同步', '不是考核名单', '当前通讯录', '未关联'])
|
||||
expect(html).toContain(text)
|
||||
for (const text of ['本源零记录', '当月进度', '姓名未同步', '当前通讯录', '未关联']) expect(html).toContain(text)
|
||||
expect(html).not.toContain('<script>')
|
||||
for (const text of [
|
||||
'不是考核名单',
|
||||
'本次读取:',
|
||||
'0 仅表示本源未关联到提问',
|
||||
'成功/失败不是答案正确性结论',
|
||||
'上方全名册指标不随人员筛选变化',
|
||||
])
|
||||
expect(html).not.toContain(text)
|
||||
expect(html).toContain('qa-ops-page-bar')
|
||||
expect(html).not.toContain('达标率')
|
||||
expect(html).not.toContain('绩效合格')
|
||||
})
|
||||
|
||||
+5
-11
@@ -36,24 +36,20 @@ export function QAMonthlyView({ data, loading, error, onRetry, onPage }: ViewPro
|
||||
<span>仅 DobotAI 2.0 · 北京时间</span>
|
||||
</div>
|
||||
<p className="qa-ops-muted">
|
||||
全名册:{data.roster_people} 人 · 已关联提问 {data.used_people} 人 · 本源零记录 {data.zero_people}{' '}
|
||||
人。名册来自当前通讯录,不是在职证明,也不是考核名单。
|
||||
当前通讯录:{data.roster_people} 人 · 已关联提问 {data.used_people} 人 · 本源零记录 {data.zero_people} 人
|
||||
</p>
|
||||
<p className="qa-ops-muted">
|
||||
本月范围内 {data.questions} 条问答,已关联 {data.linked_questions} 条,未关联 {data.unresolved_questions}{' '}
|
||||
条。0 仅表示本源未关联到提问,不等于实际未使用;成功/失败不是答案正确性结论。
|
||||
本月问答 {data.questions} 条 · 已关联 {data.linked_questions} 条 · 未关联 {data.unresolved_questions} 条
|
||||
</p>
|
||||
{data.missing_names > 0 ? (
|
||||
<p className="qa-ops-warning">
|
||||
{data.missing_names} 人姓名未同步,请重新同步通讯录;不根据姓名猜身份,不用原始标识代替姓名。
|
||||
</p>
|
||||
<p className="qa-ops-warning">{data.missing_names} 人姓名未同步,请重新同步通讯录。</p>
|
||||
) : null}
|
||||
<details className="qa-ops-organization">
|
||||
<summary>统计范围与组织版本</summary>
|
||||
<p>
|
||||
范围:{stamp(data.start)} 至 {stamp(data.end)}(不含结束)。当前通讯录同步于{' '}
|
||||
{stamp(data.organization.synced_at!)}
|
||||
;不代表提问时部门或正式绩效分母。自然月时间范围完整不代表已归档全部历史。目录:
|
||||
;目录:
|
||||
{data.organization.directory_id};区域:{data.organization.revision_id || '未保存'}。
|
||||
</p>
|
||||
</details>
|
||||
@@ -61,7 +57,6 @@ export function QAMonthlyView({ data, loading, error, onRetry, onPage }: ViewPro
|
||||
<span>
|
||||
符合人员筛选 {data.total} 人 · 第 {data.page} 页
|
||||
</span>
|
||||
<span>上方全名册指标不随人员筛选变化</span>
|
||||
</div>
|
||||
{data.rows.length ? (
|
||||
<div className="qa-ops-table-scroll" aria-label="个人月明细表格滚动区" tabIndex={0}>
|
||||
@@ -89,10 +84,9 @@ export function QAMonthlyView({ data, loading, error, onRetry, onPage }: ViewPro
|
||||
</table>
|
||||
</div>
|
||||
) : (
|
||||
<p className="qa-ops-empty">没有符合人员筛选的记录,请调整条件;这不是通讯录为空。</p>
|
||||
<p className="qa-ops-empty">没有符合人员筛选的记录,请调整条件。</p>
|
||||
)}
|
||||
<footer className="qa-ops-page-bar">
|
||||
<span>本次读取:{stamp(data.as_of)}</span>
|
||||
<div>
|
||||
{data.page > 1 ? (
|
||||
<button type="button" onClick={() => onPage(data.page - 1)}>
|
||||
|
||||
@@ -38,7 +38,13 @@ describe('manual quality operations', () => {
|
||||
<QAQualitySummaryView data={parseQualitySummary(summaryFixture)} error="" loading={false} onRefresh={() => {}} />
|
||||
)
|
||||
expect(ok).toContain('完整筛选范围')
|
||||
expect(ok).toContain('AI 评估未接入')
|
||||
expect(ok).not.toContain('AI 评估未接入')
|
||||
expect(ok).not.toContain('读取:')
|
||||
expect(ok).toContain('质量统计')
|
||||
const empty = renderToStaticMarkup(
|
||||
<QAQualitySummaryView data={null} error="" loading={false} onRefresh={() => {}} />
|
||||
)
|
||||
expect(empty).not.toContain('按当前完整时间/关键词范围留档,不按当前页估算。')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -407,7 +407,7 @@ export function QAQualitySummaryView({ data, loading, error, onRefresh }: Summar
|
||||
return (
|
||||
<section className="qa-quality-summary" aria-label="质量数量">
|
||||
<button type="button" disabled={loading} onClick={onRefresh}>
|
||||
{loading ? '正在复检留档…' : '复检留档与质量数量'}
|
||||
{loading ? '正在统计…' : '质量统计'}
|
||||
</button>
|
||||
{error ? (
|
||||
<p role="alert" className="error-banner">
|
||||
@@ -460,12 +460,7 @@ export function QAQualitySummaryView({ data, loading, error, onRefresh }: Summar
|
||||
</p>
|
||||
<p className="qa-ops-muted">统计规则:{data.summary.rates.policy_version}</p>
|
||||
</details>
|
||||
<p className="qa-ops-muted">
|
||||
AI 评估未接入;人工待确认是已复核中的子集,规则命中可与人工结论不同。读取:{stamp(data.as_of)}
|
||||
</p>
|
||||
</>
|
||||
) : !error && !loading ? (
|
||||
<span className="qa-ops-muted">按当前完整时间/关键词范围留档,不按当前页估算。</span>
|
||||
) : null}
|
||||
</section>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user