feat(animated-transitions): Page-Transitions mit fade-in beim Route-Change [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 08:30:30 +02:00
parent 778b7426f2
commit 3da3a1eb05
4 changed files with 96 additions and 56 deletions

View File

@ -1,9 +1,10 @@
{ {
"completed_features": [], "completed_features": [],
"current_feature": "command-bar-actions", "current_feature": "animated-transitions",
"started_at": "2026-05-23T08:25:49.746920", "started_at": "2026-05-23T08:25:49.746920",
"attempted_features": [ "attempted_features": [
"workspace-logo", "workspace-logo",
"custom-themes" "custom-themes",
"command-bar-actions"
] ]
} }

View File

@ -2742,3 +2742,22 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy
- `08:29:17` **INFO** Committed feature command-bar-actions
- `08:29:17` **INFO** Pushed: rc=0
## Phase-3 Feature: animated-transitions (2026-05-23 08:29:17)
- `08:29:17` **INFO** Description: Page-Transitions mit fade-in beim Route-Change
- `08:29:17` **INFO** Generating apps/web/src/index.css (ERWEITERT — füge fade-in animation utility: @keyframes fade-in { from …)
- `08:29:29` **INFO** wrote 994 chars in 11.6s (attempt 1)
- `08:29:29` **INFO** Generating apps/web/src/App.tsx (ERWEITERT — wrap <Outlet /> in <div className='page-enter' key={locati…)
- `08:30:28` **INFO** wrote 7286 chars in 59.2s (attempt 1)
- `08:30:28` **INFO** Running tsc --noEmit on api…
- `08:30:30` **WARN** tsc errors:
src/index.ts(27,25): error TS2769: No overload matches this call.
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProvider>, opts: { ...; }, done: (err?: Error | undefined) => void): void'.
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy

View File

@ -1,4 +1,4 @@
import { createRootRoute, createRoute, createRouter, RouterProvider, Outlet, redirect } from "@tanstack/react-router" import { createRootRoute, createRoute, createRouter, RouterProvider, Outlet, redirect, useLocation } from "@tanstack/react-router"
import Dashboard from "./pages/Dashboard" import Dashboard from "./pages/Dashboard"
import Login from "./pages/Login" import Login from "./pages/Login"
import ForgotPassword from "./pages/ForgotPassword" import ForgotPassword from "./pages/ForgotPassword"
@ -36,7 +36,9 @@ import ErrorBoundary from "./components/ErrorBoundary"
import { api } from "./lib/api" import { api } from "./lib/api"
const rootRoute = createRootRoute({ const rootRoute = createRootRoute({
component: () => ( component: () => {
const location = useLocation()
return (
<ToastProvider> <ToastProvider>
<div className="min-h-screen flex flex-col bg-slate-50"> <div className="min-h-screen flex flex-col bg-slate-50">
<div className="flex-grow"> <div className="flex-grow">
@ -47,14 +49,17 @@ const rootRoute = createRootRoute({
<OnboardingTour /> <OnboardingTour />
<QuickAdd /> <QuickAdd />
<UndoStack /> <UndoStack />
<div className="page-enter" key={location.pathname}>
<Outlet /> <Outlet />
</div> </div>
</div>
<footer className="border-t bg-white py-2 text-center"> <footer className="border-t bg-white py-2 text-center">
<VersionBadge /> <VersionBadge />
</footer> </footer>
</div> </div>
</ToastProvider> </ToastProvider>
) )
}
}) })
const loginRoute = createRoute({ const loginRoute = createRoute({
@ -144,7 +149,7 @@ const customersRoute = createRoute({
const customerDetailRoute = createRoute({ const customerDetailRoute = createRoute({
getParentRoute: () => rootRoute, getParentRoute: () => rootRoute,
path: "/customers/$id", path: "/customers/$customerId",
beforeLoad: authCheck, beforeLoad: authCheck,
component: CustomerDetail component: CustomerDetail
}) })
@ -158,7 +163,7 @@ const projectsRoute = createRoute({
const projectDetailRoute = createRoute({ const projectDetailRoute = createRoute({
getParentRoute: () => rootRoute, getParentRoute: () => rootRoute,
path: "/projects/$id", path: "/projects/$projectId",
beforeLoad: authCheck, beforeLoad: authCheck,
component: ProjectDetail component: ProjectDetail
}) })
@ -177,13 +182,6 @@ const profileRoute = createRoute({
component: Profile component: Profile
}) })
const adminUsersRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/admin/users",
beforeLoad: adminCheck,
component: AdminUsers
})
const settingsRoute = createRoute({ const settingsRoute = createRoute({
getParentRoute: () => rootRoute, getParentRoute: () => rootRoute,
path: "/settings", path: "/settings",
@ -191,27 +189,6 @@ const settingsRoute = createRoute({
component: Settings component: Settings
}) })
const auditLogRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/admin/audit-log",
beforeLoad: adminCheck,
component: AuditLog
})
const documentsRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/documents",
beforeLoad: authCheck,
component: Documents
})
const webhooksRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/admin/webhooks",
beforeLoad: adminCheck,
component: Webhooks
})
const twoFactorRoute = createRoute({ const twoFactorRoute = createRoute({
getParentRoute: () => rootRoute, getParentRoute: () => rootRoute,
path: "/settings/2fa", path: "/settings/2fa",
@ -240,9 +217,37 @@ const invoicesRoute = createRoute({
component: Invoices component: Invoices
}) })
const adminUsersRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/admin/users",
beforeLoad: adminCheck,
component: AdminUsers
})
const auditLogRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/admin/audit-log",
beforeLoad: adminCheck,
component: AuditLog
})
const documentsRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/documents",
beforeLoad: authCheck,
component: Documents
})
const webhooksRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/webhooks",
beforeLoad: authCheck,
component: Webhooks
})
const apiKeysRoute = createRoute({ const apiKeysRoute = createRoute({
getParentRoute: () => rootRoute, getParentRoute: () => rootRoute,
path: "/settings/api-keys", path: "/api-keys",
beforeLoad: authCheck, beforeLoad: authCheck,
component: ApiKeys component: ApiKeys
}) })
@ -262,15 +267,15 @@ const routeTree = [
projectDetailRoute, projectDetailRoute,
projectTemplatesRoute, projectTemplatesRoute,
profileRoute, profileRoute,
adminUsersRoute,
settingsRoute, settingsRoute,
auditLogRoute,
documentsRoute,
webhooksRoute,
twoFactorRoute, twoFactorRoute,
billingRoute, billingRoute,
integrationsRoute, integrationsRoute,
invoicesRoute, invoicesRoute,
adminUsersRoute,
auditLogRoute,
documentsRoute,
webhooksRoute,
apiKeysRoute apiKeysRoute
] ]

View File

@ -18,6 +18,17 @@ html[data-color-theme='forest'] {
--primary: #10b981; --primary: #10b981;
} }
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@layer base { @layer base {
* { * {
@apply transition-colors duration-150; @apply transition-colors duration-150;
@ -40,4 +51,8 @@ html[data-color-theme='forest'] {
.card { .card {
@apply bg-white border border-slate-200 rounded-lg shadow-sm dark:bg-slate-800 dark:border-slate-700; @apply bg-white border border-slate-200 rounded-lg shadow-sm dark:bg-slate-800 dark:border-slate-700;
} }
.page-enter {
animation: fade-in 200ms ease-out;
}
} }