治理台顶栏告警钮暂隐(SHOW_ALERTS 开关,计数逻辑保留)
CI / ci (push) Failing after 11s

This commit is contained in:
shanqin
2026-08-28 10:47:33 +08:00
parent 21d41f5859
commit fff2e6ec2d
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -193,7 +193,8 @@ export function GovShell({ surface }: { surface: Surface }) {
<kbd>⌘K</kbd>
</label>
<div className="g-top-r">
{surface === 'ops' && (
{/* 告警钮暂隐(2026-08-28 用户定):计数逻辑(alerts)保留,SHOW_ALERTS 置回 true 即恢复 */}
{SHOW_ALERTS && surface === 'ops' && (
<button className={'g-tbtn' + (alerts ? ' alert' : '')} onClick={() => jump('tasks', 'todo')}>
<Ico name="alert-triangle" s={13} />
告警<b>{alerts}</b>
@@ -297,6 +298,9 @@ export function GovShell({ surface }: { surface: Surface }) {
真面板组件与其下钻路由原样留着,只换区首页;要做回来,把区从这个集合摘掉即可 */
const WIP_ZONES: ReadonlySet<GovZone> = new Set(['cockpit', 'runs', 'ledgers', 'system']);
/** 顶栏告警钮开关(2026-08-28 用户定:暂时隐藏)—— 置回 true 即恢复 */
const SHOW_ALERTS: boolean = false;
/** 建设中占位:如实说还没有 —— 不摆假数据、不摆点不动的钮(与知识库「待建」页同一条规矩) */
function WipHome({ zone }: { zone: GovZone }) {
const zm = ZM[zone];