Repository navigation
fix(app-shell): Metadata Diagnostics header takes its tone from the sweep — no red alert over "All clear" (objectui#12721) - #12767
Merged
objectstack-fleet[bot] merged 3 commits intoOct 16, 2026
Conversation
…weep, not destructive unconditionally (objectui#12721) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0121y52FaGAsyLM1RbBUgRaW
…rivate (fast-refresh lint) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0121y52FaGAsyLM1RbBUgRaW
…agnostics-header-severity
This was referenced Oct 16, 2026
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contributor
Author
席位核对 · ACCEPT ·
|
objectstack-fleet
Bot
deleted the
claude/issue-12721-diagnostics-header-severity
branch
October 16, 2026 19:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12721
Clause-②: no
What changed
The Metadata Diagnostics header (Setup, then Configuration, then Diagnostics) no longer paints a clean sweep as an error. Before, the h1 always carried a red alert triangle and the summary badge always used destructive colours, even above the body's own "All clear".
The header now takes its tone from the entries the page already reads from
/meta/diagnostics. That envelope carries onlytotal, with no split by severity, so the tone is read from each entry'sdiagnostics. There is no new fetch and no invented severity.engine.diagnostics.summarytext, so there is no new string key.While the sweep is loading, the badge is hidden and the icon is muted, instead of showing a placeholder "0 issue(s) across 0 items". When the sweep fails, the badge is hidden and the icon stays destructive, beside the page's load-failure notice. A failed sweep is never shown as clean.
Files:
packages/app-shell/src/views/metadata-admin/DiagnosticsPage.tsx, a test beside it, and.changeset/12721-diagnostics-header-tone.md(app-shell patch).Evidence
DiagnosticsPage.headerTone-12721.test.tsxruns the realuseGlobalDiagnosticsagainst a fake client. It covers four cases: zero issues has no alert glyph and no destructive class; errors are destructive; warnings only are amber; a failed sweep is not clean. All four pass.@objectstack/cli18.0.0-next.2, stock showcase): branchclaude/issue-12721-evidence, folderevidence/12721/(before and after PNGs).lucide-triangle-alert … text-destructive, and a red badge reading "0 issue(s) across 395 items in 27 types" above "All clear".lucide-circle-check … text-emerald-600, and a badge intext-muted-foreground.type-check, eslint on the changed files, the claims/changeset/test-path-roots/spec-symbols/new-line-citations checks, and the changeset-presence check all exit 0. The other test families that name the page also pass, as does the i18n census suite.Acceptance notes
DirectoryPage.tsx, keyengine.directory.diagnosticsLink) reads diagnostics with severitywarning. It is styled destructive whenever the count is above zero, so an app with only warnings would see a red link there. This was read from code, not measured in a browser. It is outside this claim's file surface, so the seat files it as its own card.Provenance: built by the cloud session
session_0121y52FaGAsyLM1RbBUgRaW(claim6222208578) and opened by thedomain:uiseat 1 PM (session_011K9g23W67dy2zwnyzaoB6o) from that session's final message, because a cloud session cannot open a PR from its container. The seat replaced the dev's own footer lines with this line, and the last acceptance note's carrier line with the seat's filing.Generated by Claude Code