文案(媒体库组件):状态标签按术语表统一,去掉候选/退役/已预留等内部说法

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-07 01:48:33 +08:00
1 parent 542f107566
commit 9c7ce109ea
10 files changed
+48 -48

No files matched your search

@@ -66,7 +66,7 @@ export function SlotsPanel({
plain
icon={Target}
title="还没有收录版本"
description="没有时按已发布收录策略的默认模板创建,也可以手动新建。"
description="订阅时按已发布收录策略的默认模板自动创建,也可以手动新建。"
className="py-8"
/>
) : (
@@ -80,7 +80,7 @@ export function SlotsPanel({
<span>
{[s.currentAsset.resolution, s.currentAsset.sourceType, s.currentAsset.releaseGroup]
.filter(Boolean)
.join(" · ") || "交付特征未知"}
.join(" · ") || "规格未知"}
{s.currentAsset.sizeBytes ? ` · ${formatBytes(s.currentAsset.sizeBytes, 1)}` : ""}
{s.currentAsset.status !== "active" ? ` · ${s.currentAsset.status}` : ""}
</span>
@@ -140,7 +140,7 @@ function SlotEditorSheet({
const errs: Record<string, string> = {};
if (!meta.success) for (const i of meta.error.issues) errs[String(i.path[0])] ??= i.message;
if (!rules.ok) Object.assign(errs, rules.errors);
if (requireDistinct && !distinctGroup.trim()) errs.distinctGroup = "要求独立文件时须填写分组";
if (requireDistinct && !distinctGroup.trim()) errs.distinctGroup = "要求独立文件时要填组合分组";
setErrors(errs);
if (Object.keys(errs).length || !meta.success || !rules.ok) return;
const common = {
@@ -180,7 +180,7 @@ function SlotEditorSheet({
width="lg"
title={slot ? `编辑收录版本 ${slot.name}` : "新建收录版本"}
description={
slot ? `当前 r${slot.revision}。保存时若已被修改,会提示刷新。` : "不满足硬条件的资源不收;软偏好决定先收哪个。"
slot ? `当前 r${slot.revision}。保存时如果已被别处修改,会提示刷新。` : "不满足硬条件的资源不收;软偏好决定先收哪个。"
}
footer={
<>
@@ -195,7 +195,7 @@ function SlotEditorSheet({
>
<div className="grid gap-3 sm:grid-cols-2">
<FormField
label="目标名称"
label="名称"
htmlFor={`${id}-name`}
required
error={errors.name}
@@ -213,7 +213,7 @@ function SlotEditorSheet({
label="组合分组"
htmlFor={`${id}-grp`}
error={errors.distinctGroup}
hint="同组目标可要求由不同文件满足"
hint="同组的收录版本可以要求由不同文件满足"
>
<Input
id={`${id}-grp`}
@@ -226,7 +226,7 @@ function SlotEditorSheet({
<div className="flex items-center justify-between gap-3 rounded-lg border border-border px-3 py-2">
<div className="min-w-0">
<p className="text-caption font-medium text-foreground">要求独立文件</p>
<p className="text-meta text-muted-foreground">同一个文件不能同时满足两个目标</p>
<p className="text-meta text-muted-foreground">同一个文件不能同时满足同组的两个收录版本</p>
</div>
<Switch checked={requireDistinct} onCheckedChange={setRequireDistinct} aria-label="要求独立文件" />
</div>