feat(documents): the vault surface

The page becomes one wide, calm filing-cabinet view: PageHeader with an
Upload action, a drop-target upload zone whose accept list and per-file
cap come from the usage endpoint (quota bar only above 80 %), a sticky
filter rail (200 ms debounced search focused by '/', nine type chips,
condition chips from linked episodes, a year segmenter, one-tap clear),
and the virtualized timeline below. Filter state lives in the URL so
every view is shareable and back-button-safe; uploads filtered to an
episode arrive pre-linked. Hovering a card prefetches detail metadata —
never the blob. Designed states: a skeleton grid that matches the loaded
layout, a teaching empty state, a distinct no-matches state, and a
retryable error card. /documents joins the shell's wide-container list;
the shell stays the single owner of the page frame. Locale bundles gain
the vault vocabulary in all six languages and drop the retired
extraction-review strings.

Plan-Task: W2-T1, W2-T4 (zone), W2-T5 (prefetch), W2-T6
This commit is contained in:
Marc-André Bombeck committed 2026-07-07 12:26:06 +02:00
1 parent 4014d77a21
commit b8009d2e73
12 files changed
+1268 -754

No files matched your search

+17 -1
View File
@@ -36,6 +36,13 @@ const PUBLIC_PATHS = [
"/c/",
];
// Routes that opt into the wide content container (`max-w-screen-2xl`
// instead of the standard `max-w-screen-xl`). The shell stays the single
// owner of the page frame — a wide page never re-implements paddings or
// margins; it is listed here instead. Currently: the Dokumente vault,
// whose multi-column document timeline earns the extra width.
const WIDE_CONTENT_PATHS = ["/documents"];
export function AuthShell({
children,
demoMode = false,
@@ -69,6 +76,9 @@ export function AuthShell({
pathname.startsWith("/about") ||
pathname.startsWith("/c/");
const isAdminPage = pathname.startsWith("/admin");
const isWidePage = WIDE_CONTENT_PATHS.some(
(p) => pathname === p || pathname.startsWith(`${p}/`),
);
const isOnboardingPage = pathname === "/onboarding";
const showUnlockNotifier = isAuthenticated && !isPublicPage && !!user?.id;
@@ -315,7 +325,13 @@ export function AuthShell({
the desktop bottom-6 anchor), so the last line of content
can always scroll out from under the floating button.
*/}
<div className="mx-auto max-w-screen-xl px-4 pt-6 pb-20 md:px-6">
<div
className={
isWidePage
? "mx-auto max-w-screen-2xl px-4 pt-6 pb-20 md:px-6"
: "mx-auto max-w-screen-xl px-4 pt-6 pb-20 md:px-6"
}
>
{children}
</div>
</main>