Build [v1.14.24]

This commit is contained in:
2026-04-25 12:04:02 +03:00
parent 33c1555d8c
commit 3257a2cf48
50 changed files with 837 additions and 845 deletions

View File

@@ -18,11 +18,11 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
<div className="flex justify-between items-center mb-8">
<div>
<h2 className="text-2xl font-normal tracking-tight">Audit History</h2>
<p className="text-xs text-muted">Live transaction log from cloud</p>
<p className="text-xs text-secondary">Live transaction log from cloud</p>
</div>
<button
onClick={onClose}
className="p-3 bg-surface rounded-full text-secondary"
className="p-3 bg-surface text-secondary"
>
<X size={24} />
</button>
@@ -36,15 +36,13 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
</div>
) : (
logs.map((log) => (
<div key={log.id} className="bg-surface/70 border border-slate-800 p-4 rounded-2xl flex items-center justify-between gap-4">
<div key={log.id} className="bg-surface/70 border border-outline/30 p-4 flex items-center justify-between gap-4">
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 mb-1">
<p className={`text-xs font-normal ${
log.action.includes('CHECK_IN') ? "text-green-500" : (log.action.includes('TRASH') ? "text-rose-500" : "text-amber-500")
}`}>
<p className={`text-xs font-normal ${ log.action.includes('CHECK_IN') ? "text-success" : (log.action.includes('TRASH') ? "text-error" : "text-warning") }`}>
{log.action}
</p>
<span className="text-xs font-normal text-muted">by</span>
<span className="text-xs font-normal text-secondary">by</span>
<span className="text-xs font-normal text-secondary">{log.username || 'System'}</span>
</div>
<div className="flex items-center gap-2">
@@ -58,7 +56,7 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
{new Date(log.timestamp).toLocaleString()}
</p>
{log.details && (
<span className="text-xs bg-slate-800 text-muted px-2 py-0.5 rounded border border-slate-700 font-mono">
<span className="text-xs bg-surface-container text-secondary px-2 py-0.5 border border-outline-variant font-mono">
{log.details}
</span>
)}
@@ -66,9 +64,7 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
)}
</div>
<div className="text-right">
<p className={`text-lg font-normal ${
log.quantity_change > 0 ? "text-green-400" : "text-rose-400"
}`}>
<p className={`text-lg font-normal ${ log.quantity_change > 0 ? "text-success" : "text-rose-400" }`}>
{log.quantity_change > 0 ? '+' : ''}{log.quantity_change}
</p>
</div>