fix: hide verdict banner when no classified changes, remove jargon The verdict banner ("Compatible change | 0 breaking · 0 compatible · 1840 vertices · 1879 edges") was showing panproto internals that mean nothing to developers. Now: - Hidden entirely when 0 breaking and 0 compatible changes - Shows "No breaking changes | N safe changes" for compatible - Shows "Breaking changes detected | N breaking" for breaking - No vertex/edge counts (internal metrics, not user-facing)
Author: Aaron Steven White
Commit
3d9a9e2b603acd876fe000246e2918dadd6b8832Parent: c36f189054
Structural diff unavailable
These commits were pushed via plain git push, so no pre-parsed
schemas are available. Install git-remote-cospan and re-push via panproto:// to
see scope-level changes, breaking change detection, and semantic diffs.
brew install panproto/tap/git-remote-cospan1 file changed +14 -9
@@ -345,20 +345,25 @@
345345 <!-- Structural diff (the schema-level view) --> 346346 {#if sd} 347347 <div class="border-t border-border bg-surface-0 p-4"> 348- <!-- Verdict banner --> 348+ <!-- Verdict banner: only show when there are classified changes --> 349+ {#if sd.breakingCount > 0 || sd.nonBreakingCount > 0} 349350 <div class="mb-4 flex items-center gap-3 rounded-md px-3 py-2 {sd.compatible ? 'bg-emerald-500/10' : 'bg-red-500/10'}"> 350351 <span class="text-lg">{sd.compatible ? '✓' : '⚠'}</span> 351352 <div> 352- <span class="text-sm font-semibold {sd.compatible ? 'text-emerald-400' : 'text-red-400'}"> 353- {sd.compatible ? 'Compatible change' : 'BREAKING CHANGE'} 354- </span> 355- <span class="ml-2 text-xs text-text-muted"> 356- {sd.breakingCount} breaking · {sd.nonBreakingCount} compatible · 357- {sd.oldVertexCount} → {sd.newVertexCount} vertices · 358- {sd.oldEdgeCount} → {sd.newEdgeCount} edges 359- </span> 353+ {#if !sd.compatible} 354+ <span class="text-sm font-semibold text-red-400">Breaking changes detected</span> 355+ <span class="ml-2 text-xs text-text-muted"> 356+ {sd.breakingCount} breaking{#if sd.nonBreakingCount > 0} · {sd.nonBreakingCount} safe{/if} 357+ </span> 358+ {:else} 359+ <span class="text-sm font-semibold text-emerald-400">No breaking changes</span> 360+ <span class="ml-2 text-xs text-text-muted"> 361+ {sd.nonBreakingCount} safe {sd.nonBreakingCount === 1 ? 'change' : 'changes'} 362+ </span> 363+ {/if} 360364 </div> 361365 </div> 366+ {/if} 362367 363368 <!-- Breaking changes - open by default, each clickable to show code --> 364369 {#if sd.breakingChanges.length > 0}