feat: admin hints with auto-expiry shown in album overview
This commit is contained in:
1 parent
2a5a2f3815
commit
abe072b2d1
15 files changed
+2946
-1
No files matched your search
@@ -2,6 +2,8 @@ import { AlbumCatalogError, albumCatalog, PHOTO_PAGE_SIZE } from "@/modules/albu
|
||||
import { AlbumContactSheet, formatCount } from "@/modules/albums/catalog-content";
|
||||
import { filterPhotos, paginatePhotos, type InAppPage } from "@/modules/albums/filter";
|
||||
import { PhotoGallery } from "@/modules/albums/photo-gallery";
|
||||
import { AnnouncementBanner } from "@/modules/announcements/announcement-banner";
|
||||
import { announcementService } from "@/modules/announcements/service";
|
||||
import { loadEditorialDownloadOptions } from "@/modules/downloads/stream";
|
||||
import { lightboxService } from "@/modules/lightbox/service";
|
||||
import Link from "next/link";
|
||||
@@ -21,6 +23,7 @@ export default async function AlbumsPage({ searchParams }: { searchParams: Promi
|
||||
const query = normalizedQuery(singleValue(rawSearchParams.suche));
|
||||
const format = singleValue(rawSearchParams.format);
|
||||
const jahr = singleValue(rawSearchParams.jahr);
|
||||
const hints = await announcementService.listActiveAnnouncements(new Date());
|
||||
|
||||
if (query) {
|
||||
let results;
|
||||
@@ -54,6 +57,7 @@ export default async function AlbumsPage({ searchParams }: { searchParams: Promi
|
||||
title="Suchergebnisse"
|
||||
titleId="albums-title"
|
||||
/>
|
||||
<AnnouncementBanner items={hints} />
|
||||
<GlobalSearchForm query={query} format={format} jahr={jahr} />
|
||||
<p aria-live="polite" className="result-summary" role="status">
|
||||
{formatCount(page.total, "Foto")} gefunden
|
||||
@@ -84,6 +88,7 @@ export default async function AlbumsPage({ searchParams }: { searchParams: Promi
|
||||
titleId="albums-title"
|
||||
description="Wählen Sie ein Spiel oder eine Serie, um die freigegebenen Fotos zu durchsuchen."
|
||||
/>
|
||||
<AnnouncementBanner items={hints} />
|
||||
<GlobalSearchForm query={query} format={format} jahr={jahr} />
|
||||
{result.albums.length === 0 ? (
|
||||
<p className="text-muted-foreground text-center py-12">Für Ihre Redaktion sind noch keine Fotoalben freigegeben.</p>
|
||||
|
||||
Reference in new issue
Block a user