staged_diff masks only the secret rule hits and seals each masked file's clear patch apart; reviews and asks store the sealed patches next to their diff, delete them once the item leaves pending, and the hub sweeps orphans. POST /api/diffs/<kind>/<id>/reveal/sign and /reveal hand the clear patches to a signed request; page-diff.js offers Reveal per hidden file and Reveal all, keeps the clear text in the page only and forgets it once the item leaves the inbox. Requirement 019, unit, hub and e2e tests. Accepted MEDUSA false positives (security.py accept after kvb-think-criticize, 2026-11-17): approval.py FTSCAN-231 WEB-SSRF RH005; permission_hook.py MM-SCAN-058 WEB-SSRF RH005; staged_diff.py SAST-ENV-001 AI-BACKDOOR-006 B603; hub.py MEX-SCAN-1167 INF-SCAN-589; page-load.js EXA002; hub_case.py TC001-TC009 INF-SCAN-2057/2206/2440/2457 EXA002 EXA006 PL002 B603 FTSC-SCAN-089. 🎯 Fix: 92 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 88 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
2.1 KiB
CSS
27 lines
2.1 KiB
CSS
.inbox-list > .item.entry { grid-template-columns: auto 150px minmax(0, 1fr); align-items: start; padding: var(--sp-3); border: 1px solid var(--line); }
|
|
.inbox-list > .item.entry.waiting { box-shadow: inset 3px 0 0 var(--warn); }
|
|
.inbox-list > .item.entry.green { box-shadow: inset 3px 0 0 var(--ok); }
|
|
.inbox-list > .item.entry.red { box-shadow: inset 3px 0 0 var(--bad); }
|
|
.inbox-list > .item.entry > .entry-body { display: grid; gap: var(--sp-1); min-width: 0; }
|
|
.inbox-list > .item.entry .reason { margin: 0; }
|
|
@media (max-width: 640px) {
|
|
.inbox-list > .item.entry { grid-template-columns: auto minmax(0, 1fr); }
|
|
.inbox-list > .item.entry > .entry-body { grid-column: 1 / -1; }
|
|
}
|
|
.diff-files { display: grid; gap: var(--sp-2); min-width: 0; margin-top: var(--sp-1); }
|
|
.diff-file { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
|
|
.diff-file > .diff-head, .diff-file summary.diff-head { padding: 6px 10px; cursor: default; }
|
|
.diff-file summary.diff-head { cursor: pointer; list-style: none; }
|
|
.diff-file summary.diff-head::-webkit-details-marker { display: none; }
|
|
.diff-file .diff-scroll { max-height: min(60vh, 640px); }
|
|
.diff-file .diff-head .mode { color: var(--warn); font-size: var(--fs-xs); }
|
|
.diff-file .diff-head .note .bi { margin-right: 4px; vertical-align: -2px; }
|
|
.diff-file .diff-head .note { display: inline-flex; align-items: center; color: var(--warn); font-size: var(--fs-xs); }
|
|
.diff-file .diff-head .note.revealed { color: var(--ok); }
|
|
.diff-file .diff-head .reveal { flex: none; }
|
|
.diff-files .reveal-all { display: flex; justify-content: flex-end; }
|
|
.feedback-list { display: grid; gap: 4px; margin: var(--sp-1) 0 0; padding: 0; list-style: none; }
|
|
.feedback-list li { display: flex; align-items: baseline; gap: 6px; padding: 4px 8px; border-radius: 8px; background: var(--info-soft); font-size: var(--fs-sm); }
|
|
.feedback-list .text { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
.feedback-float { position: fixed; z-index: 40; padding: 2px; border-radius: 10px; background: var(--glass-card); box-shadow: var(--shadow); }
|