feat: several dashboards with a default, icon search and icon upload
images / check (push) Successful in 33s
images / image (push) Successful in 16s

Dashboards are separate sets of cards (Home, Work). Settings manages them and
sets the one that opens at sign-in, the header and the search bar switch.
Migration 0006 puts the existing cards on a dashboard "Home".

The link dialog searches dashboard-icons and uploads custom icons (/api/icon,
up to 1 MB, SVG served sandboxed). Wallpaper and icons share the upload checks.
This commit is contained in:
2026-11-18 17:53:27 +01:00
parent 4b9690e064
commit e85244e820
18 changed files with 1643 additions and 125 deletions
+39 -3
View File
@@ -12,6 +12,7 @@ import { Route as rootRouteImport } from './routes/__root'
import { Route as IndexRouteImport } from './routes/index'
import { Route as LoginRouteImport } from './routes/login'
import { Route as SettingsRouteImport } from './routes/settings'
import { Route as ApiIconRouteImport } from './routes/api/icon'
import { Route as ApiWallpaperRouteImport } from './routes/api/wallpaper'
import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
@@ -30,6 +31,11 @@ const SettingsRoute = SettingsRouteImport.update({
path: '/settings',
getParentRoute: () => rootRouteImport,
} as any)
const ApiIconRoute = ApiIconRouteImport.update({
id: '/api/icon',
path: '/api/icon',
getParentRoute: () => rootRouteImport,
} as any)
const ApiWallpaperRoute = ApiWallpaperRouteImport.update({
id: '/api/wallpaper',
path: '/api/wallpaper',
@@ -45,6 +51,7 @@ export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/login': typeof LoginRoute
'/settings': typeof SettingsRoute
'/api/icon': typeof ApiIconRoute
'/api/wallpaper': typeof ApiWallpaperRoute
'/api/auth/$': typeof ApiAuthSplatRoute
}
@@ -52,6 +59,7 @@ export interface FileRoutesByTo {
'/': typeof IndexRoute
'/login': typeof LoginRoute
'/settings': typeof SettingsRoute
'/api/icon': typeof ApiIconRoute
'/api/wallpaper': typeof ApiWallpaperRoute
'/api/auth/$': typeof ApiAuthSplatRoute
}
@@ -60,22 +68,42 @@ export interface FileRoutesById {
'/': typeof IndexRoute
'/login': typeof LoginRoute
'/settings': typeof SettingsRoute
'/api/icon': typeof ApiIconRoute
'/api/wallpaper': typeof ApiWallpaperRoute
'/api/auth/$': typeof ApiAuthSplatRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/login' | '/settings' | '/api/wallpaper' | '/api/auth/$'
fullPaths:
| '/'
| '/login'
| '/settings'
| '/api/icon'
| '/api/wallpaper'
| '/api/auth/$'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/login' | '/settings' | '/api/wallpaper' | '/api/auth/$'
to:
| '/'
| '/login'
| '/settings'
| '/api/icon'
| '/api/wallpaper'
| '/api/auth/$'
id:
'__root__' | '/' | '/login' | '/settings' | '/api/wallpaper' | '/api/auth/$'
| '__root__'
| '/'
| '/login'
| '/settings'
| '/api/icon'
| '/api/wallpaper'
| '/api/auth/$'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
LoginRoute: typeof LoginRoute
SettingsRoute: typeof SettingsRoute
ApiIconRoute: typeof ApiIconRoute
ApiWallpaperRoute: typeof ApiWallpaperRoute
ApiAuthSplatRoute: typeof ApiAuthSplatRoute
}
@@ -103,6 +131,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SettingsRouteImport
parentRoute: typeof rootRouteImport
}
'/api/icon': {
id: '/api/icon'
path: '/api/icon'
fullPath: '/api/icon'
preLoaderRoute: typeof ApiIconRouteImport
parentRoute: typeof rootRouteImport
}
'/api/wallpaper': {
id: '/api/wallpaper'
path: '/api/wallpaper'
@@ -124,6 +159,7 @@ const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
LoginRoute: LoginRoute,
SettingsRoute: SettingsRoute,
ApiIconRoute: ApiIconRoute,
ApiWallpaperRoute: ApiWallpaperRoute,
ApiAuthSplatRoute: ApiAuthSplatRoute,
}