feat: make the web app installable and rework the app shell

Add a Vite PWA (`vite-plugin-pwa`): manifest, icons and an `autoUpdate`
service worker, plus an install prompt so the app can be added to the
home screen.

Rework the shell for mobile: mount the bottom navigation bar and the
install prompt in the authenticated layout, hide the sidebar trigger
below `md`, and add a sign-out card to Settings. Drop the placeholder
Tasks page together with its unused shadcn table and the
`@tanstack/react-table` dependency, and remove the in-app router/query
dev tools.
This commit is contained in:
Jose Selesan
2026-10-16 15:44:20 -03:00
parent 4035a4bf20
commit 370e3022c8
19 changed files with 777 additions and 272 deletions

View File

@@ -1,7 +1,8 @@
import { createFileRoute, Navigate, Outlet, useRouterState } from '@tanstack/react-router'
import { InstallPrompt } from '@/components/install-prompt'
import { AppHeader } from '@/components/layout/app-header'
import { AppSidebar } from '@/components/layout/app-sidebar'
import { BottomNav } from '@/components/layout/bottom-nav'
import { SidebarInset, SidebarProvider } from '@/components/ui/sidebar'
import { Skeleton } from '@/components/ui/skeleton'
import { useSession } from '@/lib/auth-client'
@@ -32,9 +33,11 @@ function AuthenticatedLayout() {
<AppSidebar />
<SidebarInset>
<AppHeader />
<div className="flex flex-1 flex-col gap-4 p-4 md:gap-6 md:p-6">
<div className="flex flex-1 flex-col gap-4 p-4 pb-20 md:gap-6 md:p-6 md:pb-6">
<Outlet />
</div>
<BottomNav />
<InstallPrompt />
</SidebarInset>
</SidebarProvider>
)