refactor(review): rollback-only flow and compact change summary

This commit is contained in:
Ruslan Bakiev
2026-02-23 15:28:46 +07:00
parent f716a0ea26
commit df8c06d313
3 changed files with 51 additions and 132 deletions

View File

@@ -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