Archilyzer · Source

archilyzer

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

commit c4a4a2bc036b06b46d44e89924f6f80b1ae68545
parent dc8aa58bd81eda1f9c696e173b26b55ddf148b05
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 20 Oct 2026 13:22:55 -0400

wayback pages: the automatic-import toggle shows its state at once; the lane record, as shipped

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/app/channels/[slug]/captures/components/CapturesPanel.tsx | 5++++-
Mplans/release-37/scan.md | 35+++++++++++++++++++++++------------
2 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/editor/app/channels/[slug]/captures/components/CapturesPanel.tsx b/editor/app/channels/[slug]/captures/components/CapturesPanel.tsx @@ -80,6 +80,8 @@ export function CapturesPanel({ slug, status, rows, matching, matchingToImport, const [confirming, setConfirming] = useState(false); const [result, setResult] = useState<CaptureImportResult | null>(null); const [pending, startTransition] = useTransition(); + // Shown at once; the server's answer arrives with the refresh. + const [auto, setAuto] = useState(status.auto); const selectable = rows.filter((r) => !r.imported); const allOnPage = selectable.length > 0 && selectable.every((r) => selected.has(r.key)); @@ -152,11 +154,12 @@ export function CapturesPanel({ slug, status, rows, matching, matchingToImport, <label className="flex items-center gap-2 text-sm" aria-label="automatic import"> <input type="checkbox" - checked={status.auto} + checked={auto} disabled={pending} aria-label="Import new captures automatically" onChange={(e) => { const on = e.target.checked; + setAuto(on); startTransition(async () => { await setWaybackAutoAction(slug, on); router.refresh(); diff --git a/plans/release-37/scan.md b/plans/release-37/scan.md @@ -26,22 +26,24 @@ scan never fetches a body; `collapse=digest` by default; no model anywhere. (`StreamActionLog`), the last scan's job linked, the table (path, first/last seen, version i of n, imported mark linking the record's capture, new), server-side filters (year, path prefix, text, show) and pagination (100 a page), per-page selection, Import selected, Import all in range (inline confirm above 50), the result line. -- **Imports from the scan** (`common/controller/waybackImport.ts`): one `import-page` request per row (the capture the - content was first listed at), imported rows skipped, ≤ 500 a call; `wayback-import` ops action. **Staged**: the - starter is a seam until S1's `startImportPageJob` is on main (refuses; on the e2e server appends to - `E2E_IMPORT_PAGE_SEAM_FILE`). +- **Imports from the scan** (`common/controller/waybackImport.ts`): one `import-page` job per row through S1's + `startImportPageJob` (the capture the content was first listed at), imported rows skipped, ≤ 500 a call; + `wayback-import` ops action. (Before A merged, a seam stood in; removed at the merge.) - **`wayback.auto`** (`common/controller/laneWaybackAuto.ts` + one pre-pick block and one run branch in `autoRunner.ts`): the download lane's channel-scoped unit after the metadata scan — an opted-in channel's rows listed after its first pass and not imported, one import-page job per unit on the `archive.org` platform slot, - waited on via `onJobEnd`. Reads `config.wayback.auto` through the parsed config, so it is inert until A's schema - keeps `wayback`. + waited on via `onJobEnd`. `auto` is a key of A's `wayback` schema entry (CHANNEL.md); the channel form carries it + (`waybackAuto`) and keeps each target's mime/include/exclude through a save; the Captures tab has the toggle. - **Fake + e2e**: `fakeWayback.mjs` scan listing in its own block (matchType, from/to, filters, collapse, fl, limit, - resume keys, `scanRefuseFrom`, `SCAN_CAPTURES`); `E2E_WAYBACK_ORIGIN_FILE` (`lib/waybackPages/origin.ts`); - `editor/e2e/wayback-captures.spec.ts`. + resume keys, `scanRefuseFrom`, `SCAN_CAPTURES`; its plain CDX answer carries a capture's own digest); the scan's + URLs on `WAYBACK_ORIGIN`, sent to the fake by S1's process client (`E2E_WAYBACK_ORIGIN_FILE`); + `editor/e2e/wayback-captures.spec.ts` (real import-page jobs since the merge). +- **Where the tab lives**: Wayback pages channels are the one kind of posts channel with ChannelTabs (Overview | + Captures); S1's Wayback pages panel links "Captures: scan and choose". - **Docs**: OPERATING.md "Wayback pages: scan, then choose", COMMANDS.md, ENVIRONMENT.md (two test env vars), FACTS "Release 37 S2", CHANGELOG. -## Commits (before lane A merges) +## Commits | sha | what | |---|---| @@ -51,8 +53,11 @@ scan never fetches a body; `collapse=digest` by default; no model anywhere. | `9082180c` | the two e2e variables in the editor's playwright config; this record (draft) | | `b775e7c9` | merge main (lane C's extractors) | | `c38da131` | scanView client-safe | +| `68f24a77` | record: commits and gates before A | +| `e88b5689` | merge main (lane A) + the post-A wiring: real import-page, schema `auto`, form field, toggle, panel link, tests | +| (next) | the toggle shows its state at once; this record | -## Gates (before lane A merges) +## Gates - tsc, the whole workspace: clean (after the merge of main). - common: 4695 at the branch start (1 failure in a run that raced the lane's first edits, not reproduced) → 4717 @@ -62,8 +67,14 @@ scan never fetches a body; `collapse=digest` by default; no model anywhere. - test:scripts: 1315 (1311 pass, 4 skipped) → 1315 (1311, 4). - docs: `docs env` regenerated (ENVIRONMENT.md), `docs cli` regenerated (COMMANDS.md); `docs env|files|cli --check` and `settings example --check` clean. -- e2e: `wayback-captures.spec.ts` 1/1 (20.1 s wall, after an 87 s stamped build); `navigation.spec.ts` 5/5 (17.0 s) - as a neighbour check of the tab change. +- e2e before A: `wayback-captures.spec.ts` 1/1 (20.1 s wall, after an 87 s stamped build); `navigation.spec.ts` 5/5 + (17.0 s) as a neighbour check of the tab change. +- After merging lane A (main d261ab33): tsc clean; common 4787 / 4785 pass / 0 fail / 2 skipped; editor unit 357/357 + (+4: A's and the form test keeping `auto`); test:scripts 1316 (1312 + 4 skipped); docs env/files/cli and settings + `--check` clean (CHANNEL.md, ENVIRONMENT.md, COMMANDS.md regenerated); e2e `wayback-captures.spec.ts` + + `wayback-pages.spec.ts` 2/2 (35.0 s; the first run failed on the toggle — a controlled checkbox waiting for the + refresh — fixed with local state). A second neighbour run (navigation + channel-rename) never got the heavy slot in + two 10-minute tries and was not run; the full suite is the orchestrator's. ## Rulings followed