Skip to content

feat(audit): 不可重试文件的重新解析悬停提示 - #2884

Merged
likaiaki merged 1 commit into
feat/2.5.0-sgfrom
feat/2.5.0-sg-088-abnormal-auto-delete
Dec 3, 2026
Merged

likaiaki merged 1 commit into
feat/2.5.0-sgfrom
feat/2.5.0-sg-088-abnormal-auto-delete

Conversation

@likaiaki

@likaiaki likaiaki commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

What

审计异常文件列表中,鼠标悬停到被禁用的「重新解析」按钮时显示提示:

  • 内容违规:此文件因内容违规,无法使用。平台将于1个工作日后自动删除文件,请上传符合要求的文档。
  • 归属已更新:此文件因归属已更新,无法重新解析。平台将于1个工作日后自动删除文件,请上传符合要求的文档。
  • 历史豁免记录:只显示原因与上传建议,不显示 1 个工作日删除说明。
  • 其他可重试记录:不显示该提示。

实现使用 bs-ui 的 Radix Tooltip,禁用按钮外层加 <span> 承载鼠标事件;替换原生 title,不改变按钮禁用/点击行为。三语文案已补齐。

本次同时记录 171 复测验收结果:并发同一文件只产生一批回收/一条审计;全新 MySQL 8.0 f125 保留历史 update_time。

Why

  • 只有灰按钮没有原因说明,用户不知道为何不能重新解析、文件何时被处理。
  • 历史豁免记录不会再自动删除,不能展示删除承诺。

范围说明

本次只覆盖当前被禁用的两类(内容违规、归属已更新)。加密/损坏/格式不支持在 F087 中仍保持可重新解析,按钮未禁用,因此未加禁用提示;如需把它们也改为不可重试,请另开需求。

Test

  • 平台:73 passed(悬停 helper、豁免变体、三语文案、既有预览回归)。
  • TypeScript:仅既有 TS2802。
  • 未改后端代码。

Related

🤖 Generated with Claude Code

Show a Radix tooltip on hover over the disabled Reparse action for
content-violating and stale-membership records. The hint states the reason,
the one-business-day deletion notice, and asks for a compliant replacement
document; historical exempt rows omit the deletion sentence. The disabled
button is wrapped in a span so the tooltip still receives hover events, and
the three locales are updated.

Also record the 171 acceptance retest in acceptance.md: the concurrent
cleanup now creates a single recycle batch and audit row, and a fresh MySQL
8.0 f125 run preserves historical update_time. Tests: platform 73 passed.
@likaiaki
likaiaki merged commit fd648cf into feat/2.5.0-sg Dec 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant