feat(booktoki): support chapter fetch + scrape JSON import#15
Merged
Conversation
Context: BookToki chapters were only usable via manual workflows. Changes: Add BookToki adapter + supported site entry; accept BookToki Chrome extension JSON by converting to lexiconforge-full-1 before import. Impact: Users can fetch booktoki chapters directly and import scraped chapter dumps for offline translation. Tests: npx tsc --noEmit; npm test -- --run Docs: Updated docs/WORKLOG.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add first-class BookToki support: fetch/parse chapters via adapters, and import BookToki Chrome extension scrape JSON by converting it into
lexiconforge-full-1.Changes
config/constants.ts: registerbooktoki468.comas a supported siteservices/adapters.ts: addBookTokiAdapter+ wire intogetAdapter()services/import/booktoki.ts: detect + convert BookToki scrape payload → LexiconForge full payloadservices/importService.ts: accept BookToki payloads inimportFromUrl/importFromFiletests/services/importService.test.ts: add BookToki conversion coveragetests/services/adapters.booktoki.test.ts: ensure BookToki is considered supportedTesting
npx tsc --noEmitnpm test -- --runNotes
This PR is intentionally UI-light: it only enables fetching + importing; UX affordances can be layered later.