fix(ui): degrade an unrecognized skip reason to neutral 'info' tone, not 'ready' (#8666) - #8717
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
…ne, not 'ready' audit-feed-model.ts's skipReasonTone fell back to 'ready' (a green, healthy-looking tone) for an unrecognized reason string. None of the four enumerated reasons map to 'ready' -- it existed solely as the unrecognized-value fallback, so a new or legacy backend skip reason silently rendered as a successful-looking pill. The sibling contributor-quality-table-model uses the neutral 'info' tone for the same unrecognized-enum-like-string situation; match that convention. Change the fallback to 'info'. The four enumerated reasons are unchanged. Adds a direct test asserting each enumerated reason's tone plus that an unrecognized reason returns 'info' (not 'ready').
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 00:39:31 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy · Diff highlights exactly what changed. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
This pull request changes UI/visual code but its screenshot evidence is incomplete. Every required viewport × theme combination needs its own before/after image pair in a labeled table row (e.g. "Desktop · Light | before | after"). Still missing: Desktop · Dark, Tablet · Dark, Mobile · Dark. Please resubmit with the remaining rows filled in. See https://github.com/JSONbored/loopover/blob/main/.claude/skills/contributing-to-loopover/SKILL.md for the exact format and examples. This is an automated maintenance action. |



Problem
Closes #8666.
apps/loopover-ui/src/components/site/audit-feed-model.ts'sskipReasonTonefell back to"ready"— a green, healthy-looking tone — for an unrecognized reason string. None of the four enumerated reasons map to"ready"; it existed solely as the fallback for an unrecognized value.SkippedPrAuditItem.reasonis typed as plainstring, so if the backend emits a new or legacy skip reason, the audit feed silently displays it as a successful-looking "ready" pill rather than flagging it as unclassified.The sibling
contributor-quality-table-model.tsdegrades an unrecognized enum-like value to the neutral"info"tone;skipReasonTonediverged from that established convention.Fix
Change the fallback branch from
"ready"to"info". Behavior for the four enumerated reasons is unchanged.Tests
A new direct test in
audit-feed.test.tsx's "audit feed helpers" block (the file's convention for model-function tests) asserts each enumerated reason maps to its expected tone (info/warn/degraded) and that an unrecognized reason returns"info", not"ready". Reverting the source change makes it fail. All 16 tests in the file pass;git diff --checkclean.