Policies: Vergleich als zweispaltige Gegenüberstellung (A | B)

Statt gestapelter JSON-Blöcke jetzt eine Tabelle: pro settingDefinitionId eine
Zeile mit Wert A neben Wert B. Kompakter, lesbarer Kurzwert (Get-SettingDisplayValue:
Choice/Simple/Collections) im Vordergrund, volles kanonisches JSON als Tooltip.
Status-Einfärbung (unterschiedlich/nur A/nur B/gleich) + Filter "nur Unterschiede".
Endpoint liefert dafür vereinheitlichte rows (Union der Keys) mit short/full je Seite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
marcoandClaude Opus 4.8 committed 2026-10-19 13:31:25 +02:00
1 parent e35005e489
commit 19e479a08d
3 files changed
+116 -64

No files matched your search

+18 -13
View File
@@ -5499,20 +5499,25 @@ body.read-only .app-row {
.pol-cmp-badge.a { background: rgba(96,165,250,.15); color: #60a5fa; }
.pol-cmp-badge.b { background: rgba(167,139,250,.15); color: #a78bfa; }
.pol-cmp-badge.same { background: rgba(74,222,128,.15); color: #4ade80; }
.pol-cmp-sect { margin-top: 12px; }
.pol-cmp-sect-h { font-weight: 600; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; background: var(--hairline-soft); }
.pol-cmp-sect-h.diff { background: rgba(251,191,36,.12); color: #fbbf24; }
.pol-cmp-sect-h.a { background: rgba(96,165,250,.12); color: #60a5fa; }
.pol-cmp-sect-h.b { background: rgba(167,139,250,.12); color: #a78bfa; }
.pol-cmp-sect-h.same { background: rgba(74,222,128,.12); color: #4ade80; }
.pol-cmp-row { padding: 5px 8px; border-bottom: 1px solid var(--hairline-soft, rgba(255,255,255,.06)); font-size: 12.5px; }
.pol-cmp-row:last-child { border-bottom: 0; }
.pol-cmp-filter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.pol-cmp-id { display: inline-block; }
.pol-cmp-id .muted { font-size: 11px; word-break: break-all; }
.pol-cmp-val { display: inline-block; font-size: 11.5px; background: var(--bg3, var(--hover)); padding: 1px 6px; border-radius: 4px; word-break: break-all; }
.pol-cmp-ab { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.pol-cmp-side { flex: 1 1 240px; }
.pol-cmp-side b { color: var(--text-dim, #888); margin-right: 4px; }
.pol-cmp-id .muted { font-size: 10.5px; word-break: break-all; }
/* Zweispaltige Gegenueberstellung A | B */
.pol-cmp-table { display: grid; grid-template-columns: minmax(200px, 1.5fr) 1fr 1fr; border: 1px solid var(--hairline, #333); border-radius: 8px; overflow: hidden; font-size: 12px; }
.pol-cmp-trow { display: contents; }
.pol-cmp-trow > div { padding: 6px 8px; border-bottom: 1px solid var(--hairline-soft, rgba(255,255,255,.06)); min-width: 0; }
.pol-cmp-trow.head > div { position: sticky; top: 0; background: var(--bg3, var(--hover)); font-weight: 600; z-index: 1; }
.pol-cmp-trow.head .col-a { color: #60a5fa; }
.pol-cmp-trow.head .col-b { color: #a78bfa; }
.pol-cmp-setting { background: var(--canvas); }
.pol-cmp-c { word-break: break-all; }
.pol-cmp-c.empty { color: var(--muted, #777); text-align: center; }
.pol-cmp-c.diff { background: rgba(251,191,36,.12); color: #fbbf24; font-weight: 600; }
/* Zeilen-Einfaerbung nach Status (dezent) */
.pol-cmp-trow.onlyA .pol-cmp-setting { box-shadow: inset 3px 0 0 #60a5fa; }
.pol-cmp-trow.onlyB .pol-cmp-setting { box-shadow: inset 3px 0 0 #a78bfa; }
.pol-cmp-trow.different .pol-cmp-setting { box-shadow: inset 3px 0 0 #fbbf24; }
.pol-cmp-trow.same .pol-cmp-c { color: var(--text-dim, #999); }
.pol-cons-src { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.pol-cons-src li { margin: 1px 0; }
.pol-cons-conf-head { margin: 14px 0 6px; font-weight: 600; font-size: 13px; }