Skip to content

feat: Per-section change indicators in title TOC#97

Merged
williamzujkowski merged 1 commit intomainfrom
feat/95-change-indicators
Mar 30, 2026
Merged

feat: Per-section change indicators in title TOC#97
williamzujkowski merged 1 commit intomainfrom
feat/95-change-indicators

Conversation

@williamzujkowski
Copy link
Copy Markdown
Collaborator

Summary

Phase 3 of #92 (IA epic) — shows which sections changed in which release point directly in the expandable title TOC.

Diff generation enhancement

  • generate-diffs.ts now produces changed-sections.json — a map of "title-N/section-M"["pl-117-159", ...]
  • Built from existing diff output directories, minimal additional I/O

Title browse page

  • Reads changed-sections.json at build time
  • Teal dot indicator next to sections that changed in any tracked release point
  • PL number shown as right-aligned text label
  • Tooltip with PL reference on hover
  • Empty spacer for unchanged sections (alignment)

Why this matters

This is the key differentiator vs Cornell LII and OLRC — neither shows per-section change tracking in their browse views. Users can scan a title and immediately see which sections Congress recently amended.

Issues

Test plan

  • svelte-check — 0 errors
  • pnpm test — all pass
  • Visual: verify dots + PL labels after deploy with diff data

🤖 Generated with Claude Code

Diff generation:
- Generate changed-sections.json index mapping section paths to
  the release point tags where they changed
- Built from existing diff output directories at end of generation

Title browse page:
- Read changed-sections.json at build time
- Show teal dot indicator next to recently-changed sections
- Show last-changed PL number as right-aligned label
- Dot has title tooltip with PL reference
- Empty spacer for unchanged sections to maintain alignment

This is the key differentiator vs Cornell LII and OLRC — neither
shows per-section change tracking in browse views.

Phase 3 of #92 (IA epic). Closes #95.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

enhance: Add per-section change indicators to title TOC

1 participant