Build [v1.9.18]

This commit is contained in:
Daniel Bedeleanu
2026-04-13 23:43:52 +03:00
parent 1fff658d3c
commit fcb187974e
13 changed files with 222 additions and 113 deletions

View File

@@ -1 +1,6 @@
{"version": "1.9.15", "last_build": "2026-04-13-2243", "codename": "DynamicShield", "commit": "826b264a"}
{
"version": "1.9.18",
"last_build": "2026-04-13-2343",
"codename": "MobilePolish",
"commit": "1fff658d"
}

View File

@@ -471,60 +471,53 @@ export default function Home() {
</div>
</div>
<div className="flex flex-wrap items-center justify-between sm:justify-end gap-3 sm:gap-6 bg-slate-900/40 sm:bg-transparent p-3 sm:p-0 rounded-2xl border border-slate-800/50 sm:border-none">
<div className="flex flex-wrap items-center gap-4">
<div className="flex flex-wrap items-center justify-between sm:justify-end gap-3 sm:gap-6 bg-slate-900/40 sm:bg-transparent px-4 py-2 sm:p-0 rounded-2xl border border-slate-800/50 sm:border-none">
<div className="flex flex-wrap items-center gap-4 sm:gap-6">
{isScannerReady && (
<div className="flex items-center gap-1.5">
<div className="w-1 h-1 rounded-full bg-green-500 shadow-[0_0_5px_rgba(34,197,94,0.5)]" />
<span className="text-xs font-black text-green-500/80 whitespace-nowrap">
Offline Scan: OK
<div className="flex items-center gap-2">
<div className="w-1.5 h-1.5 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.6)]" />
<span className="text-[10px] sm:text-xs font-black text-green-500/90 whitespace-nowrap tracking-wider uppercase">
Scanner: OK
</span>
</div>
)}
<div className="flex items-center gap-1.5">
<div className={`w-1 h-1 rounded-full ${isOnline ? 'bg-green-500 animate-pulse shadow-[0_0_5px_rgba(34,197,94,0.5)]' : 'bg-rose-500 shadow-[0_0_5px_rgba(244,63,94,0.5)]'}`} />
<span className={`text-xs font-black whitespace-nowrap ${isOnline ? 'text-green-500/80' : 'text-rose-500/80'}`}>
Server Sync: {isOnline ? 'OK' : 'No'}
<div className="flex items-center gap-2">
<div className={`w-1.5 h-1.5 rounded-full ${isOnline ? 'bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.6)]' : 'bg-rose-500 shadow-[0_0_8px_rgba(244,63,94,0.6)]'}`} />
<span className={`text-[10px] sm:text-xs font-black whitespace-nowrap tracking-wider uppercase ${isOnline ? 'text-green-500/90' : 'text-rose-500/90'}`}>
Sync: {isOnline ? 'Active' : 'Offline'}
</span>
</div>
</div>
<div className="flex items-center gap-2">
<button
onClick={() => setShowBoxManager(true)}
className="p-3 bg-slate-900 border border-slate-800 text-slate-400 rounded-xl hover:text-primary transition-colors hover:border-primary/30"
title="Box Manager"
>
<Package size={20} />
</button>
<button
onClick={handleSync}
disabled={syncing}
className="p-3 bg-slate-900 border border-slate-800 text-slate-400 rounded-xl hover:text-white transition-colors disabled:opacity-50"
>
<RefreshCw size={20} className={syncing ? "animate-spin text-primary" : ""} />
</button>
</div>
<div className="flex items-center gap-3">
<button
onClick={handleSync}
disabled={syncing}
className="p-2.5 bg-slate-900/80 border border-slate-800 text-slate-400 rounded-xl hover:text-white transition-all active:scale-95 disabled:opacity-50"
>
<RefreshCw size={18} className={syncing ? "animate-spin text-primary" : ""} />
</button>
</div>
</div>
</header>
<div className="w-full px-1 space-y-6">
{/* Mode Switcher */}
<div className="flex p-1 bg-slate-900/80 backdrop-blur-md rounded-2xl shadow-inner w-full">
<div className="flex p-1.5 bg-slate-900/80 backdrop-blur-md rounded-2xl shadow-inner w-full gap-1">
{[
{ id: 'CHECK_IN', label: 'Check in', icon: ArrowDownCircle },
{ id: 'CHECK_OUT', label: 'Check out', icon: ArrowUpCircle },
{ id: 'CHECK_IN', label: 'Check In', icon: ArrowDownCircle },
{ id: 'CHECK_OUT', label: 'Check Out', icon: ArrowUpCircle },
{ id: 'TRASH', label: 'Trash', icon: Trash2 }
].map((m) => (
<button
key={m.id}
onClick={() => setMode(m.id as any)}
className={cn(
"flex-1 py-3 rounded-xl text-sm font-black transition-all flex items-center justify-center gap-2",
mode === m.id ? "bg-slate-800 text-primary shadow-lg" : "text-slate-500 hover:text-slate-300"
"flex-1 py-3.5 rounded-xl text-xs sm:text-sm font-black transition-all flex items-center justify-center gap-3",
mode === m.id ? "bg-slate-800 text-primary shadow-lg ring-1 ring-primary/20" : "text-slate-500 hover:text-slate-300"
)}
>
<m.icon size={18} />
{m.label}
<m.icon size={18} className={mode === m.id ? "scale-110 transition-transform" : ""} />
<span className="truncate">{m.label}</span>
</button>
))}
</div>
@@ -558,15 +551,31 @@ export default function Home() {
<p className="text-sm text-slate-400">Scan labels to {mode.replace('_', ' ')} items</p>
</div>
<div className="w-full h-px bg-slate-800 my-2" />
<div className="w-full h-px bg-slate-800/50 my-2" />
<button
onClick={() => setShowOnboarding(true)}
className="w-full h-16 rounded-[1.5rem] bg-slate-900/50 border border-slate-800 flex items-center justify-center gap-3 group hover:border-primary/40 transition-all font-bold"
>
<Sparkles size={18} className="text-primary group-hover:scale-110 transition-transform" />
<span className="text-sm">Add NEW Item<br />(AI Onboarding)</span>
</button>
<div className="w-full grid grid-cols-1 gap-4">
<button
onClick={() => setShowOnboarding(true)}
className="w-full h-18 py-4 rounded-[1.5rem] bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center gap-4 group hover:border-indigo-500/50 transition-all font-black text-indigo-400"
>
<Sparkles size={24} className="group-hover:scale-125 transition-transform" />
<span className="text-left leading-tight">
Add NEW Item<br />
<span className="text-[10px] opacity-60 uppercase tracking-widest font-mono">AI Onboarding</span>
</span>
</button>
<button
onClick={() => setShowBoxManager(true)}
className="w-full h-18 py-4 rounded-[1.5rem] bg-slate-900/50 border border-slate-800 flex items-center justify-center gap-4 group hover:border-primary/40 transition-all font-black text-slate-300"
>
<Package size={24} className="text-primary group-hover:scale-125 transition-transform" />
<span className="text-left leading-tight">
Manage Boxes<br />
<span className="text-[10px] opacity-60 uppercase tracking-widest font-mono">Box Inventory</span>
</span>
</button>
</div>
</div>
)}
</section>