Skip to content

Remember recent sources and clarify Sources inspection copy - #102

Merged
devhims merged 1 commit into
mainfrom
feat/recent-sources
Sep 27, 2026
Merged

devhims merged 1 commit into
mainfrom
feat/recent-sources

Conversation

@devhims

@devhims devhims commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Problem / Motivation

The Sources page describes finding videos, but users come here to inspect their data. Searches and pasted links also disappear after a full reload, so users must repeat requests to revisit their work.

What changed

The title is now "Search or paste a YouTube link". The subtext is removed. The placeholder includes a model comparison example, and the action is labeled "Inspect".

Recent sources replaces the initial empty section. It remembers thirty searches and inspected links per user. Selecting an entry restores saved results and dataset choices without another YouTube request or credit charge. Repeated inputs update the existing entry.

The user Durable Object stores inputs and asset references. Video data remains in the shared catalog. Expiring search, playlist, and channel responses gain shared R2 references. Account deletion clears personal history while retaining public assets used by other accounts.

flowchart LR
  subgraph Before
    A[Sources input]:::retained --> B[Temporary browser draft]:::removed
    C[Shared video catalog and R2]:::retained
  end
  subgraph After
    D[Sources input]:::retained --> E[User DO history and references]:::added
    E -->|restore saved data| F[Shared video catalog and R2]:::retained
  end
  classDef retained fill:#E0F2FE,stroke:#0284C7,color:#0C4A6E
  classDef added fill:#DCFCE7,stroke:#16A34A,color:#14532D
  classDef removed fill:#FEE2E2,stroke:#DC2626,color:#7F1D1D,stroke-dasharray:4 3
Loading

Blue components are retained; green adds durable history, and red shows the replaced temporary-only history.

Tests

Both builds passed. Validation covers 95 Durable Object integration tests, 81 web unit tests, 17 API/schema tests, and 36 dashboard browser cases. Tests cover reload restoration, user isolation, duplicate handling, retention, deletion, and history-load failures. Documentation and diff checks passed.

Deployment notes

Deploy both platform and web changes. The existing user DO initializes its history table automatically. No new bindings or class migration are required. Deployment verification remains pending.

@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
video2ctx-web Ready Ready Preview Sep 27, 2026 6:47pm UTC

@devhims
devhims merged commit b3a5dc0 into main Sep 27, 2026
11 checks passed
@devhims
devhims deleted the feat/recent-sources branch September 27, 2026 19:40

This branch was successfully deployed

1 active deployment
Preview — 5ee027dd Deployed Sep 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant