feat(版本): 完善研发计划与预警已读
关键改动: - 增加版本表单、发布校验和调研方向进度规则 - 扩展小宝预警已读状态、风险签名和今日证据 - 补充组长权限、加班查看范围、活动记录与相关测试 Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
@@ -22,10 +22,12 @@ const RISK_LEVEL_STYLE: Record<XiaobaoRiskLevel, string> = {
|
||||
export function XiaobaoWarningCard({
|
||||
risk,
|
||||
active = false,
|
||||
updated = false,
|
||||
onClick,
|
||||
}: {
|
||||
risk: XiaobaoVersionRisk;
|
||||
active?: boolean;
|
||||
updated?: boolean;
|
||||
onClick: () => void;
|
||||
}) {
|
||||
return (
|
||||
@@ -50,9 +52,16 @@ export function XiaobaoWarningCard({
|
||||
{risk.productName ?? '-'} / {risk.projectName ?? '-'}
|
||||
</p>
|
||||
</div>
|
||||
<span className={`shrink-0 rounded-full border px-2 py-0.5 text-[11px] font-medium ${RISK_LEVEL_STYLE[risk.riskLevel]}`}>
|
||||
{RISK_LEVEL_LABEL[risk.riskLevel]}
|
||||
</span>
|
||||
<div className="flex shrink-0 flex-wrap justify-end gap-1.5">
|
||||
{updated && (
|
||||
<span className="rounded-full border border-blue-200 bg-blue-50 px-2 py-0.5 text-[10px] font-semibold text-blue-700">
|
||||
有更新
|
||||
</span>
|
||||
)}
|
||||
<span className={`rounded-full border px-2 py-0.5 text-[11px] font-medium ${RISK_LEVEL_STYLE[risk.riskLevel]}`}>
|
||||
{RISK_LEVEL_LABEL[risk.riskLevel]}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-3 grid grid-cols-2 gap-2">
|
||||
|
||||
Reference in New Issue
Block a user