feat(meta-tags-and-title): Page-Titles + Meta-Description aktualisieren beim Route-Chan [tsc:fail]
This commit is contained in:
parent
809dc95dd5
commit
b6c1dd21f0
@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"completed_features": [],
|
"completed_features": [],
|
||||||
"current_feature": "loading-everywhere",
|
"current_feature": "meta-tags-and-title",
|
||||||
"started_at": "2026-05-23T09:23:38.401372",
|
"started_at": "2026-05-23T09:23:38.401372",
|
||||||
"attempted_features": [
|
"attempted_features": [
|
||||||
"404-not-found-page",
|
"404-not-found-page",
|
||||||
"api-error-pages",
|
"api-error-pages",
|
||||||
"accessibility-final"
|
"accessibility-final",
|
||||||
|
"loading-everywhere"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -3457,3 +3457,21 @@ 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.
|
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>'.
|
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>,
|
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||||
|
- `09:30:25` **INFO** Committed feature loading-everywhere
|
||||||
|
- `09:30:25` **INFO** Pushed: rc=0
|
||||||
|
|
||||||
|
## Phase-3 Feature: meta-tags-and-title (2026-05-23 09:30:25)
|
||||||
|
|
||||||
|
- `09:30:25` **INFO** Description: Page-Titles + Meta-Description aktualisieren beim Route-Change
|
||||||
|
- `09:30:25` **INFO** Generating apps/web/src/lib/usePageTitle.tsx (usePageTitle(title: string) hook. useEffect: document.title = `${title…)
|
||||||
|
- `09:30:28` **INFO** wrote 295 chars in 2.4s (attempt 1)
|
||||||
|
- `09:30:28` **INFO** Running tsc --noEmit on api…
|
||||||
|
- `09:30:29` **WARN** tsc errors:
|
||||||
|
src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||||
|
src/db/schema.ts(45,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||||
|
src/db/schema.ts(49,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||||
|
src/db/schema.ts(53,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||||
|
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>,
|
||||||
|
|||||||
12
apps/web/src/lib/usePageTitle.tsx
Normal file
12
apps/web/src/lib/usePageTitle.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
|
export default function usePageTitle(title: string) {
|
||||||
|
useEffect(() => {
|
||||||
|
const originalTitle = document.title;
|
||||||
|
document.title = `${title} · EmberClone`;
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
document.title = originalTitle || 'EmberClone';
|
||||||
|
};
|
||||||
|
}, [title]);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user