diff --git a/frontend/src/Nav.tsx b/frontend/src/Nav.tsx index a4a9315..f2fb214 100644 --- a/frontend/src/Nav.tsx +++ b/frontend/src/Nav.tsx @@ -10,7 +10,7 @@ type Target = { title: string; icon?: ReactNode; to: string; end?: boolean; badg // Bereiche, die es noch nicht gibt: Route und Platzhalter-Seite bestehen, // in der Navigation sind sie bis dahin ausgeblendet. -const unfinished = new Set(["/search", "/notifications"]); +const unfinished = new Set(["/notifications"]); export const isReady = (to: string) => !unfinished.has(to); diff --git a/frontend/src/components/Feed.tsx b/frontend/src/components/Feed.tsx index bf2c2a6..8269883 100644 --- a/frontend/src/components/Feed.tsx +++ b/frontend/src/components/Feed.tsx @@ -24,12 +24,14 @@ function scrollBelowHeader(el: Element) { window.scrollTo({ top: el.getBoundingClientRect().top + window.scrollY - offset }); } -export function Feed({ queryKey, urlFor, as: Container = "section", focus, onFocused }: { +// empty ersetzt bei einem ganz leeren Ergebnis die Endmarke (Suche). +export function Feed({ queryKey, urlFor, as: Container = "section", focus, onFocused, empty }: { queryKey: unknown[]; urlFor: (page: number) => string; as?: "section" | "div"; focus?: number; onFocused?: () => void; + empty?: string; }) { const feed = useInfiniteQuery({ queryKey, @@ -85,7 +87,9 @@ export function Feed({ queryKey, urlFor, as: Container = "section", focus, onFoc {entries.map((e) => )} {feed.isError &&

{errMsg(feed.error, "Feed konnte nicht geladen werden.")}

} - {feed.isSuccess && !hasNextPage &&

YOU REACHED THE END!

} + {feed.isSuccess && !hasNextPage && ( +

{empty && !entries.length ? empty : "YOU REACHED THE END!"}

+ )}
diff --git a/frontend/src/docs/info.html b/frontend/src/docs/info.html index ba77ad9..913218e 100644 --- a/frontend/src/docs/info.html +++ b/frontend/src/docs/info.html @@ -15,6 +15,10 @@

Changelog

+

30.10.2026

+

13.10.2026