feat: consumer home app layout overhaul + residence kanban board

Layout & Navigation:
- Tighten max-width to 6xl, adjust padding, add warm gradient overlay
- Add icons to desktop nav links, responsive header height, stronger blur
- Active pill highlight on mobile nav icons
- Fix middleware blocking static assets (logo.png) behind auth

Dashboard restructure:
- Merge quick actions into hero area as inline pills
- Rename "Coming Up" to "Needs Attention", exclude completed tasks
- Promote task cards to #2 with richer card design (2-col grid, colored date badges)
- Drop "Your Homes" to #3 with accent bars and larger icons

Card redesigns:
- Residence cards: accent bar, home icon, warm hover shadow
- Contractor cards: letter avatar, text contact links, separator
- Document cards: type-colored accent bar, restructured footer
- Task cards: warm hover shadow
- Empty states: larger icon container, gradient bg, rounded CTA

Residence detail page:
- Add full kanban board with drag-and-drop for task management
- Add "Add Task" button pre-filling residence on task form
- Replace broken Users stat with Overdue/Completed stats
- Compute task summary from kanban columns (always accurate)

Data accuracy fixes:
- Fix getMyResidences() to fetch kanban data in parallel and compute
  real per-residence task counts instead of hardcoding zeros
- Task form accepts defaultResidenceId prop for pre-filling
- New task page reads residence_id from URL, redirects back after create

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-03 18:23:44 -06:00
parent db89ddb861
commit 264107e3bf
22 changed files with 445 additions and 233 deletions
+7 -9
View File
@@ -43,8 +43,8 @@ export function TopBar() {
};
return (
<header className="sticky top-0 z-30 bg-background/80 backdrop-blur-xl border-b border-border/60">
<div className="max-w-7xl mx-auto flex items-center justify-between h-16 px-6">
<header className="sticky top-0 z-30 bg-card/90 backdrop-blur-2xl border-b border-border/40">
<div className="max-w-6xl mx-auto flex items-center justify-between h-14 sm:h-16 px-4 sm:px-8">
{/* Logo */}
<Link href={basePath} className="flex items-center gap-2.5 shrink-0 group">
<Image
@@ -60,7 +60,7 @@ export function TopBar() {
</Link>
{/* Desktop nav links */}
<nav className="hidden md:flex items-center gap-1" role="navigation" aria-label="Main navigation">
<nav className="hidden md:flex items-center gap-0.5" role="navigation" aria-label="Main navigation">
{navItems.map((item) => {
const isActive =
item.href === basePath
@@ -73,16 +73,14 @@ export function TopBar() {
href={item.href}
aria-current={isActive ? 'page' : undefined}
className={cn(
'relative px-3.5 py-1.5 text-sm font-medium rounded-lg transition-colors',
'inline-flex items-center gap-1.5 px-4 py-1.5 text-sm font-medium rounded-full transition-colors',
isActive
? 'text-foreground'
: 'text-muted-foreground hover:text-foreground'
? 'bg-primary/10 text-primary'
: 'text-muted-foreground hover:text-foreground hover:bg-accent/50'
)}
>
<item.icon className="size-4" />
{item.label}
{isActive && (
<span className="absolute bottom-0 left-3.5 right-3.5 h-[2px] bg-foreground rounded-full" />
)}
</Link>
);
})}