diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsx
index 77a8039..025a331 100644
--- a/src/components/HistoryView.tsx
+++ b/src/components/HistoryView.tsx
@@ -112,7 +112,11 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp
Change History
-
Review and revert any changes made to products.
+
+ {history.length > 0 ? (
+ <>{history.length} total records{filteredHistory.length !== history.length && <> — showing {filteredHistory.length}>}>
+ ) : 'Review and revert any changes made to products.'}
+
@@ -161,22 +165,27 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp
) : (
- {filteredHistory.map((entry) => {
+ {filteredHistory.map((entry, filteredIdx) => {
const isExpanded = expandedId === entry.id;
const changes = getChangedFields(entry.old_data, entry.new_data);
-
+ const globalNumber = history.indexOf(entry) + 1;
+
return (
{/* Summary Row */}
-
setExpandedId(isExpanded ? null : entry.id)}
>
{isExpanded ?
:
}
-
+
+
+ #{globalNumber}
+
+
@@ -236,7 +245,8 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp
- | Field |
+ # |
+ Column |
Original Value |
New Value |
@@ -244,6 +254,7 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp
{changes.map((change, idx) => (
+ | {idx + 1} |
{change.header}
|