From d1b8350263ee8f5cc6435c6c50f3a51f003577b7 Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Thu, 15 Oct 2026 11:28:27 +0200 Subject: [PATCH] feat(web): old covers from the Wayback Machine start off Co-Authored-By: Claude Opus 5.5 --- docs/DECISIONS.md | 8 ++++++++ docs/plans/002-download-and-history.md | 5 +++++ docs/specs/001-webtoons-covers.md | 2 +- docs/specs/002-download-and-history.md | 4 ++++ src/web/template.ts | 2 +- 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 34708df..dce28a8 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -16,6 +16,14 @@ the repo every session — measurably slower and more tokens). **Consequences:** Rule changes happen in one file; pointer files must stay thin. Plans are working artefacts: kept after merge they go stale and contradict the code, so the spec is the record. +## 2026-10-15 — Wayback history starts off +**Status:** accepted (amends spec 001 §4.9 "include history (on)") +**Context:** First user review: a Wayback run takes minutes at the 10 s pace, while the current covers +come back in seconds. +**Decision:** "Old covers from the Wayback Machine" is unticked by default; the granularity stays 6 months. +**Alternatives:** Keep it on and rely on "Skip the rest of the history". +**Consequences:** Historical covers need one extra click. + ## 2026-10-15 — Use our own dark theme when Dark Reader is on **Status:** accepted **Context:** With a light system theme the page is light, so the Dark Reader extension restyled it with diff --git a/docs/plans/002-download-and-history.md b/docs/plans/002-download-and-history.md index e99049c..c3d5c1e 100644 --- a/docs/plans/002-download-and-history.md +++ b/docs/plans/002-download-and-history.md @@ -40,6 +40,11 @@ checked in headless Chrome. The userscript only gains the shared download button --- +### Task 0: Wayback off by default + +- [x] `src/web/template.ts`: drop `checked` from `#history-on`; amend spec 001 §4.9 and spec 002; DECISIONS. + Commit `feat(web): old covers from the Wayback Machine start off`. + ### Task 1: ZIP writer (`src/core/zip.ts`) **Files:** Create `src/core/zip.ts`, `test/zip.test.ts`. diff --git a/docs/specs/001-webtoons-covers.md b/docs/specs/001-webtoons-covers.md index ca52ec2..0ec5e01 100644 --- a/docs/specs/001-webtoons-covers.md +++ b/docs/specs/001-webtoons-covers.md @@ -579,7 +579,7 @@ language: series.language, type, note, content_rating, is_default }`. **Static page** (`src/web/`, served by our server): 1. Two inputs: MangaBaka series link, Webtoons series link. Optional: "include - history" (on), granularity (every 1 / 3 / 6 / 12 months, default 6). + history" (off since 2026-10-15, spec 002 §1), granularity (every 1 / 3 / 6 / 12 months, default 6). 2. Runs the pipeline and shows one card per new cover (thumbnail, dimensions, suggested type, language, note, content-rating selector, checkbox), plus "already present" and skipped covers. diff --git a/docs/specs/002-download-and-history.md b/docs/specs/002-download-and-history.md index 92c7232..77abe90 100644 --- a/docs/specs/002-download-and-history.md +++ b/docs/specs/002-download-and-history.md @@ -8,6 +8,10 @@ Two additions from the first user review (2026-10-15). Design approved by the us with these answers: history restores instantly (images kept in the browser); download everywhere, history on the page only; one ZIP. Builds on [001](001-webtoons-covers.md). +Also from the review: **"Old covers from the Wayback Machine" starts off** (it was on, spec 001 §4.9). +A Wayback run takes minutes at the polite pace; the current covers come back in seconds, and the user +ticks it when they want the history. + ## 1. Goals and non-goals **Goals** diff --git a/src/web/template.ts b/src/web/template.ts index ec1e7cd..66ddf8a 100644 --- a/src/web/template.ts +++ b/src/web/template.ts @@ -14,7 +14,7 @@ export const APP_HTML = /* html */ ` The series page on the manga, manhwa or webcomic site. WEBTOON for now.
- +