commit b8da5060fa9958fa8a75e58aa1ffdc1f0ff13c12 parent 828d71c124c2923ee978fb0d7d3dc07092daeee5 Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st> Date: Wed, 11 Nov 2026 06:55:47 -0500 local media page: the guidance paragraphs cut to a line each, no lead paragraph Review quality note (~20 guidance paragraphs). With playback, transcription and the search update out of slice 1, what is left says each thing once: the directory field's hint, what the scan matches, the two occupied-row notes. The lead paragraph and the long occupied/verify explanation are gone (the buttons say it). The recording-date hint now says what slice 1 does with it: the record sorts and filters by that date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Diffstat:
3 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/editor/app/channels/[slug]/local-media/LocalMediaPanel.tsx b/editor/app/channels/[slug]/local-media/LocalMediaPanel.tsx @@ -72,11 +72,11 @@ export function LocalMediaPanel({ slug, initialConfig }: { slug: string; initial <label className="block">Library directory <input required value={directory} onChange={e => setDirectory(e.target.value)} placeholder="/mnt/library" className="block w-full rounded border p-2 bg-background" /> </label> - <p className="text-sm text-muted-foreground">Enter a directory readable by Archilyzer. When running directly, use its normal filesystem path. For Docker, use the mounted path inside the container, preferably read-only for original recordings. The saved library location cannot be changed from this screen.</p> + <p className="text-sm text-muted-foreground">An absolute path the editor can read (in Docker, the path inside the container). It cannot be changed once saved.</p> <button className={button} disabled={busy}>Save library</button> </form> : <> <p><strong>{config.sourceId}</strong> · <code className="break-all">{config.directory}</code></p> - <p className="text-sm text-muted-foreground">Scanning matches MP4, .info.json and .vtt or .srt files with the same base filename in this directory. A matching VTT takes priority. SRT is converted to VTT during import; the original stays unchanged. Subdirectories are not scanned. If metadata is missing but the MP4 and transcript are readable, you can prepare local recording details below.</p> + <p className="text-sm text-muted-foreground">Each .mp4 directly in this directory, with a same-named .info.json and .vtt (or .srt). Subdirectories are not scanned.</p> <button className={button} disabled={busy} onClick={() => { setError(null); setPreview(null); setSelected(new Set()); setLinkResults({}); setPrepared({}); setDetailsMedia(null); start(async () => { @@ -90,7 +90,6 @@ export function LocalMediaPanel({ slug, initialConfig }: { slug: string; initial {error && <p role="alert" className="text-destructive">{error}</p>} {preview && <> <p role="status">{preview.counts.discovered} discovered · {preview.counts.new} new · {preview.counts.existing} occupied · {preview.counts.issues} need review</p> - <p className="text-sm text-muted-foreground">Occupied means a destination already exists; its contents have not been verified. Select new recordings or prepare details for recordings with missing metadata. For an occupied recording with matching source metadata, “Verify and link” compares its metadata and transcript with the library, then saves a local reference only if they match. Original files and existing transcripts stay unchanged. Linking does not enable playback.</p> <div className="overflow-x-auto"><table className="w-full text-sm text-left"> <thead><tr><th>Select</th><th>Recording</th><th>Status</th><th>Cues / notes</th><th>Details / local reference</th></tr></thead> <tbody>{preview.candidates.map(row => <tr key={row.media} className="border-t border-border"> @@ -103,7 +102,7 @@ export function LocalMediaPanel({ slug, initialConfig }: { slug: string; initial <td className="p-2"> {row.savedRecordAvailable && row.status !== "existing" && row.directoryId && <div> <Link className={button + " inline-block"} href={"/channels/" + encodeURIComponent(slug) + "/videos/" + encodeURIComponent(row.directoryId)}>Open saved record</Link> - <p className="text-sm text-muted-foreground mt-2">The destination is occupied. This preview has not reverified its saved transcript or reference.</p> + <p className="text-sm text-muted-foreground mt-2">Already held; not reverified.</p> </div>} {row.preparationFingerprint && <button type="button" className={button} disabled={busy} aria-label={`Prepare details for ${row.media}`} onClick={() => { @@ -118,7 +117,7 @@ export function LocalMediaPanel({ slug, initialConfig }: { slug: string; initial {row.status === "existing" && row.generatedMetadata && row.directoryId && <div> <Link className={button + " inline-block"} href={"/channels/" + encodeURIComponent(slug) + "/videos/" + encodeURIComponent(row.directoryId)} aria-label={"Open saved record for " + row.media}>Open saved record</Link> - <p className="text-sm text-muted-foreground mt-2">Metadata was prepared during import. Verify and link requires matching source metadata; this preview has not reverified the saved files.</p> + <p className="text-sm text-muted-foreground mt-2">Imported with prepared details; not reverified.</p> </div>} {linkResults[row.media] && <p role="status" className="mt-2">{linkResults[row.media]}</p>} </td> diff --git a/editor/app/channels/[slug]/local-media/LocalRecordingDetailsForm.tsx b/editor/app/channels/[slug]/local-media/LocalRecordingDetailsForm.tsx @@ -48,7 +48,6 @@ export function LocalRecordingDetailsForm({slug, media, sourceToken, sourceFinge }}> <h3 ref={headingRef} tabIndex={-1} className="scroll-mt-32 font-semibold">Prepare recording details</h3> <p className="break-all text-sm">{media}</p> - <p className="text-sm text-muted-foreground">This recording has no matching metadata file. Prepare details for a local recording without an online source. Your original files stay unchanged. Metadata is saved in Archilyzer only when you import.</p> <fieldset disabled={disabled} className="space-y-3"> <legend className="sr-only">Recording details</legend> <label className="block">Method @@ -62,7 +61,7 @@ export function LocalRecordingDetailsForm({slug, media, sourceToken, sourceFinge : "Video properties will not be inspected. Duration and recording date may remain unknown. File size alone cannot establish either."}</p> <label className="block">Title<input className={input} required maxLength={1000} value={title} onChange={e => {changed(); setTitle(e.target.value);}} /></label> <label className="block">Recording date (optional)<input className={input} type="date" value={date} onChange={e => {changed(); setDate(e.target.value);}} /></label> - <p className="text-sm text-muted-foreground">Enter a date you know, or leave it unknown. This is not a publication date. File creation and modified dates can reflect copying or editing.</p> + <p className="text-sm text-muted-foreground">The record sorts and filters by this date. Leave it empty if unknown: a file's dates often say when it was copied.</p> {mode === "manual" && <label className="block">Duration in seconds (optional)<input className={input} type="number" min="0.001" step="any" value={duration} onChange={e => {changed(); setDuration(e.target.value);}} /></label>} <button type="submit" className={button}>Review details</button> <button type="button" className={`${button} ml-2`} onClick={onClose}>Cancel</button> @@ -73,7 +72,6 @@ export function LocalRecordingDetailsForm({slug, media, sourceToken, sourceFinge <p>Duration: {review.metadata.duration === undefined ? "Unknown" : `${review.metadata.duration} seconds (${mode === "inspect" ? "measured" : "entered manually"})`}</p> <p>Recording date: {review.metadata.recorded_date ? `${review.metadata.recorded_date.slice(0,4)}-${review.metadata.recorded_date.slice(4,6)}-${review.metadata.recorded_date.slice(6)} (entered manually)` : "Unknown"}</p> {review.metadata.filesize !== undefined && <p>File size: {review.metadata.filesize.toLocaleString()} bytes</p>} - <p className="text-sm text-muted-foreground">Use these details to select the recording, then choose Import selected. The import rechecks the source before saving. Playback permission and updating the searchable library remain separate steps.</p> <button type="button" className={button} disabled={disabled} onClick={() => onUse({fingerprint: review.fingerprint, details: review.details})}>Use details for import</button> </section>} </form>; diff --git a/editor/app/channels/[slug]/local-media/page.tsx b/editor/app/channels/[slug]/local-media/page.tsx @@ -13,7 +13,6 @@ export default async function LocalMediaPage({ params }: { params: Promise<{ slu return <div className="flex flex-col gap-4"> <Link href={`/channels/${slug}`} className="underline">Back to channel</Link> <h1 className="text-2xl font-semibold">Local media library</h1> - <p>Import metadata and transcripts for existing MP4 recordings. Video files stay in your library.</p> <LocalMediaPanel slug={slug} initialConfig={config.localMedia ?? null} /> </div>; }