mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 13:45:23 +02:00
feat: improve Week Coverage visibility, calculation robustness, and add aggregate WOC to grid totals and forecast view
This commit is contained in:
@@ -37,9 +37,9 @@ export const VendorStockBadge: React.FC<VendorStockBadgeProps> = ({ asin, vendor
|
||||
const themeClasses = "bg-slate-200 text-slate-800 border-slate-300 shadow-sm";
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center gap-1 justify-center min-w-[60px]">
|
||||
<div className="flex flex-col items-center gap-0.5 justify-center min-w-[70px]">
|
||||
<div
|
||||
className={`inline-flex items-center gap-1 px-2 py-0.5 rounded border text-[10px] font-bold transition-all hover:scale-105 active:scale-95 cursor-default ${themeClasses}`}
|
||||
className={`inline-flex items-center gap-1.5 px-2 py-0.5 rounded border text-[10px] font-bold transition-all hover:scale-105 active:scale-95 cursor-default ${themeClasses}`}
|
||||
title={`Stock en Amazon Warehouse (${mode.toUpperCase()}): ${stock}`}
|
||||
>
|
||||
<AmazonSmileIcon className="w-3.5 h-3.5" />
|
||||
@@ -48,12 +48,14 @@ export const VendorStockBadge: React.FC<VendorStockBadgeProps> = ({ asin, vendor
|
||||
<span>{stock.toLocaleString('de-DE')}</span>
|
||||
</div>
|
||||
</div>
|
||||
<span
|
||||
className={`text-[9px] font-black uppercase tracking-tight whitespace-nowrap ${wocColor}`}
|
||||
<div
|
||||
className={`px-1.5 py-0.5 rounded-sm bg-slate-900/40 border border-white/5 shadow-inner`}
|
||||
title={`Avg Sales (4wk): ${velocity.toFixed(2)} | Stock: ${stock}`}
|
||||
>
|
||||
{wocText}
|
||||
</span>
|
||||
<span className={`text-[10px] font-black uppercase tracking-tighter whitespace-nowrap block ${wocColor}`}>
|
||||
{wocText}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user