refactor(review): rollback-only flow and compact change summary
This commit is contained in:
@@ -128,33 +128,19 @@ defineProps<{
|
||||
<p class="text-xs font-semibold text-amber-100">
|
||||
{{ message.changeSummary || "Technical change summary" }}
|
||||
</p>
|
||||
<div class="mt-2 overflow-x-auto">
|
||||
<table class="w-full min-w-[340px] text-left text-[11px] text-white/85">
|
||||
<thead>
|
||||
<tr class="text-white/60">
|
||||
<th class="py-1 pr-2 font-medium">Metric</th>
|
||||
<th class="py-1 pr-2 font-medium">Value</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="py-1 pr-2">Total changes</td>
|
||||
<td class="py-1 pr-2">{{ message.changeItems?.length || 0 }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-1 pr-2">Created</td>
|
||||
<td class="py-1 pr-2">{{ summarizeChangeActions(message.changeItems).created }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-1 pr-2">Updated</td>
|
||||
<td class="py-1 pr-2">{{ summarizeChangeActions(message.changeItems).updated }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-1 pr-2">Archived</td>
|
||||
<td class="py-1 pr-2">{{ summarizeChangeActions(message.changeItems).deleted }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="mt-2 flex flex-wrap gap-1.5 text-[10px]">
|
||||
<span class="rounded border border-white/25 px-2 py-0.5 text-white/85">
|
||||
total {{ message.changeItems?.length || 0 }}
|
||||
</span>
|
||||
<span class="rounded border border-white/25 px-2 py-0.5 text-white/85">
|
||||
created {{ summarizeChangeActions(message.changeItems).created }}
|
||||
</span>
|
||||
<span class="rounded border border-white/25 px-2 py-0.5 text-white/85">
|
||||
updated {{ summarizeChangeActions(message.changeItems).updated }}
|
||||
</span>
|
||||
<span class="rounded border border-white/25 px-2 py-0.5 text-white/85">
|
||||
archived {{ summarizeChangeActions(message.changeItems).deleted }}
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="summarizeChangeEntities(message.changeItems).length" class="mt-2 flex flex-wrap gap-1.5">
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user