Skip to content

Add SuttaCentral parallels panel with fetch helpers and tests#58

Open
anantham wants to merge 3 commits into
mainfrom
codex/implement-polyglot-foundations-plan
Open

Add SuttaCentral parallels panel with fetch helpers and tests#58
anantham wants to merge 3 commits into
mainfrom
codex/implement-polyglot-foundations-plan

Conversation

@anantham
Copy link
Copy Markdown
Owner

Motivation

  • Surface SuttaCentral parallel witnesses in Sutta Studio so users can view related root texts without schema or storage changes.
  • Keep the work view-layer only (no persistence, no alignment, no polyglot schema), enabling future lens/analysis work to attach to a stable UI surface.

Description

  • Added services/scraping/scParallels.ts with fetchParallels and fetchParallelText that use the existing fetch-proxy and normalize/flatten the nested SC /api/parallels response, dedupe results, and assemble root text from root_text blocks.
  • Introduced ParallelType and ParallelInfo in types/suttaStudio.ts to type the service/UI contract.
  • Implemented a new ParallelsPanel React component (components/sutta-studio/ParallelsPanel.tsx) that is a collapsible sidebar listing parallels and loading a parallel's root text on demand.
  • Mounted the panel in SuttaStudioApp for suttacentral routes only and added a unit test tests/services/scraping/scParallels.test.ts to verify nested-parallels flattening and normalization.
  • Updated documentation and pickup-plan bookkeeping: docs/WORKLOG.md, docs/sutta-studio/PLANS/README.md, and added docs/sutta-studio/PLANS/SHIPPED/polyglot-foundations.md to record the shipped plan.

Testing

  • Ran npx vitest run tests/services/scraping/scParallels.test.ts, which succeeded (test verifies nested SC parallels are flattened and normalized).

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

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

Project Deployment Actions Updated (UTC)
lexicon-forge Ready Ready Preview, Comment May 15, 2026 1:54pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant