工作台 8 项指标全部改为明确中文标题。
ISO 8601 时间统一转换为北京时间,例如 2026/07/23 22:29。 审计日志、缴费确认时间、通知发布时间统一使用时间格式化。 管理员层级、流程类型、录取状态等建立统一中文映射。 工作台、流程设计、学校管理等管理页面的装饰性英文标题改为中文。 历史审计记录中的 plan、draft 等枚举也会自动翻译。 更新静态资源版本号,避免浏览器继续使用旧缓存。
This commit is contained in:
@@ -26,4 +26,27 @@ public sealed class AdminNoticeServiceTests
|
||||
new JsonObject { ["publicVisible"] = "false" },
|
||||
out _));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void PublicationProjector_ExposesConsistentVisibilityFields()
|
||||
{
|
||||
var payload = new JsonObject
|
||||
{
|
||||
["publicVisible"] = false,
|
||||
["reviewedAt"] = "2026-07-23T00:00:00.000Z"
|
||||
};
|
||||
var snapshot = new AdminNoticeManagementSnapshot(
|
||||
[],
|
||||
[new AdminPublicationRecord(
|
||||
"plan_1", "plan", "exam_1", null, "school_1", "approved", payload,
|
||||
"2026-07-23T00:00:00.000Z", "2026-07-23T00:00:00.000Z")],
|
||||
new Dictionary<string, string> { ["exam_1"] = "统一考试" },
|
||||
new Dictionary<string, string> { ["school_1"] = "第一中学" });
|
||||
|
||||
var publication = Assert.Single(AdminPublicationProjector.Build(snapshot));
|
||||
|
||||
Assert.False(publication["publicVisible"]!.GetValue<bool>());
|
||||
Assert.False(publication["visible"]!.GetValue<bool>());
|
||||
Assert.Equal("hidden", publication["status"]!.GetValue<string>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user