diff --git a/frontend/src/components/HistoryPanel.tsx b/frontend/src/components/HistoryPanel.tsx index 85ad1f2..f312c2b 100644 --- a/frontend/src/components/HistoryPanel.tsx +++ b/frontend/src/components/HistoryPanel.tsx @@ -21,6 +21,17 @@ function formatWhen(iso: string): string { }) } +// Backend joins the summary's parts with "; " (e.g. "Added 6 hotcues; edited +// beatgrid on 3 tracks"). Split them back out so each renders as its own chip +// that wraps โ far more scannable than one truncated run-on line. +function summaryChips(summary: string): string[] { + return summary + .split('; ') + .map((p) => p.trim()) + .filter(Boolean) + .map((p) => p.charAt(0).toUpperCase() + p.slice(1)) +} + /** * Version history browser for the current collection. Every save is a commit in * a purely-local git repo (see backend history.py); this lists them newest-first @@ -96,18 +107,25 @@ export function HistoryPanel({ onClose, onNotify, onError }: Props) { return (