Remove Active Sites card from sidebar

The card showed hardcoded '5 projects · 3 flagged · 2 on schedule'
stats that were never updated from the mock data and duplicated
information in the Sites module. Removing it gives the sidebar a
cleaner Logo → Nav → Lock structure and means the Lock screen button
is visible without scrolling on standard heights.

Also align the mobile drawer's close-button breakpoint from lg to xl
to match the rest of the sidebar's breakpoint logic.
This commit is contained in:
SJCoetz 2026-08-09 03:02:59 +02:00
parent 7d2684f321
commit df459de0f5
3 changed files with 4 additions and 16 deletions

3
.gitignore vendored
View file

@ -12,6 +12,9 @@ public/sw.js
public/sw.js.map
public/workbox-*.js
public/workbox-*.js.map
public/swe-worker-*.js
public/swe-worker-*.js.map
public/swe-worker-*.js.LICENSE.txt
.DS_Store
*.log
.vscode/

View file

@ -1 +0,0 @@
(()=>{"use strict";self.onmessage=async e=>{switch(e.data.type){case"__START_URL_CACHE__":{let t=e.data.url,a=await fetch(t);if(!a.redirected)return(await caches.open("start-url")).put(t,a);return Promise.resolve()}case"__FRONTEND_NAV_CACHE__":{let t=e.data.url,a=await caches.open("pages");if(await a.match(t,{ignoreSearch:!0}))return;let s=await fetch(t);if(!s.ok)return;if(a.put(t,s.clone()),e.data.shouldCacheAggressively&&s.headers.get("Content-Type")?.includes("text/html"))try{let e=await s.text(),t=[],a=await caches.open("static-style-assets"),r=await caches.open("next-static-js-assets"),c=await caches.open("static-js-assets");for(let[s,r]of e.matchAll(/<link.*?href=['"](.*?)['"].*?>/g))/rel=['"]stylesheet['"]/.test(s)&&t.push(a.match(r).then(e=>e?Promise.resolve():a.add(r)));for(let[,a]of e.matchAll(/<script.*?src=['"](.*?)['"].*?>/g)){let e=/\/_next\/static.+\.js$/i.test(a)?r:c;t.push(e.match(a).then(t=>t?Promise.resolve():e.add(a)))}return await Promise.all(t)}catch{}return Promise.resolve()}default:return Promise.resolve()}}})();

View file

@ -8,7 +8,6 @@ import {
Fuel,
LayoutDashboard,
Package,
Truck,
LogOut,
Menu,
X,
@ -67,7 +66,7 @@ export function Sidebar() {
<Button
variant="ghost"
size="icon"
className="lg:hidden"
className="xl:hidden"
onClick={() => setMobileOpen(false)}
aria-label="Close navigation"
>
@ -75,19 +74,6 @@ export function Sidebar() {
</Button>
</div>
<div className="shrink-0 px-3">
<div className="rounded-lg border border-border bg-card p-3">
<div className="flex items-center gap-2">
<Truck className="h-4 w-4 text-primary" />
<span className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">
Active Sites
</span>
</div>
<p className="mt-1 text-sm font-medium">5 projects</p>
<p className="text-xs text-muted-foreground">3 flagged · 2 on schedule</p>
</div>
</div>
<nav className="flex-1 space-y-1 px-3 py-3">
{NAV.map((item) => {
const Icon = item.icon;