refactor(desktop): narrow home health board to expired/revoked accounts

Home 看板只保留已过期或已停用的账号,问题计数改用阻塞态 authState;新增 formatVerifiedAtLabel,统一校验通过时间的展示粒度。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-20 17:25:58 +08:00
parent 55e1c2e74b
commit 69fd182755
5 changed files with 41 additions and 22 deletions
@@ -11,7 +11,7 @@ import { computed, ref } from "vue";
import { useDesktopRuntime } from "../composables/useDesktopRuntime";
import { showClientActionError } from "../lib/client-errors";
import { formatDateTime, formatRelativeTime } from "../lib/formatters";
import { formatDateTime, formatRelativeTime, formatVerifiedAtLabel } from "../lib/formatters";
import { desktopMonitoringMediaCatalog } from "../lib/media-catalog";
import type { RuntimeAccount } from "../types";
@@ -90,7 +90,7 @@ function authColor(account: AccountRow | null) {
function verificationLabel(account: AccountRow): string {
if (account.lastVerifiedAt) {
return `${formatRelativeTime(account.lastVerifiedAt)}校验通过`;
return formatVerifiedAtLabel(account.lastVerifiedAt);
}
if (account.probeState === "probing") {
return "正在执行首轮校验";