Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 691a53ece2faf03936d897d408cb64a3873194ad
parent d295e00732e916a210378ccacf65cac16908ecd0
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 18 Nov 2026 01:50:45 -0500

storage: the heading is sent at once; the locations stream in

Every figure on the page is a probe of the machine (is each drive
mounted, how much room is on it, how big is the saved-video store). The
probes hold back only their own section now, behind a skeleton sized by
the number of configured locations. No probe memo time changed.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/app/storage/page.tsx | 41++++++++++++++++++++++++++++++++++++++---
1 file changed, 38 insertions(+), 3 deletions(-)

diff --git a/editor/app/storage/page.tsx b/editor/app/storage/page.tsx @@ -1,9 +1,12 @@ import type { Metadata } from "next"; +import { Suspense } from "react"; import Link from "next/link"; import { getSettings } from "yt-dlp-transcript-common/lib/settings"; import { buildStorage } from "./buildStorage"; import { StorageLocationsTable } from "./components/StorageLocationsTable"; import { HealthTimingForm } from "./components/HealthTimingForm"; +import { SkeletonPanel, StreamFilled } from "../components/StreamSkeleton"; +import { e2eStreamDelay } from "../lib/streamDelay"; // FORCE-DYNAMIC, and not as a formality. Every number on this page comes from a // probe of the machine taken when the page was asked for — whether a disk is @@ -14,9 +17,29 @@ export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "Storage" }; -export default async function StoragePage() { +// The skeleton's size in px (e2e/streaming.spec.ts holds it to the box of what +// replaces it): the section with no location in it — the two cards (the saved +// video store, the clip windows) and the add form's button — and one +// location's card. +const STORAGE_BASE_PX = 1034; +const STORAGE_LOCATION_PX = 284; + +// The locations, the store and the clip windows: every figure here is a probe +// of the machine (is each drive mounted, how much room is on it, how big is +// the store), so it streams in behind the heading rather than holding it. +async function StorageBody() { + await e2eStreamDelay(); const payload = await buildStorage(); return ( + <StreamFilled name="storage-locations"> + <StorageLocationsTable payload={payload} /> + </StreamFilled> + ); +} + +export default function StoragePage() { + const settings = getSettings(); + return ( <div className="flex flex-col gap-6"> <div className="flex items-center justify-between flex-wrap gap-2"> <h1 className="text-2xl font-semibold">Storage</h1> @@ -27,11 +50,23 @@ export default async function StoragePage() { <Link href="/channels" className="underline">Storage panel</Link>. </p> - <StorageLocationsTable payload={payload} /> + <Suspense + fallback={ + <SkeletonPanel + name="storage-locations" + height={ + STORAGE_BASE_PX + + settings.storage.locations.length * STORAGE_LOCATION_PX + } + /> + } + > + <StorageBody /> + </Suspense> {/* THE TIMINGS EVERY LOCATION IS JUDGED BY (settings.storage.health), collapsed and last: a page-wide setting, not a fact about a row. */} - <HealthTimingForm stored={getSettings().storage.health ?? {}} /> + <HealthTimingForm stored={settings.storage.health ?? {}} /> </div> ); }