feat: study-unit list screen and summary card UI — closes #9, #11 - #25
Merged
Conversation
Implements the first product screens in the web app. Study unit list (#9): - StudyUnitList loads the demo user's sources and first source's units from the API (GET /api/sources, GET /api/sources/:id) with explicit loading / error / empty states - Citation offsets rendered as evidence badges ([start, end)) so the grounding story is visible in the UI from day one - Injectable fetcher for tests; vite dev proxy /api -> :3000 Summary card (#11, mock data as specified): - SummaryCardView renders the @study-os/summary card shape: summary, key concepts, confusion points, tone-preset badge, and an explicit 'AI 생성' provenance label (provider/model/prompt version) - mockSummaryCard mirrors the mock provider's output Testing: vitest jsdom environment (globals on for Testing Library auto-cleanup); 6 component tests covering render, provenance label, empty-confusion omission, citation badges, empty and error states. Closes #9 Closes #11 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
What
First product screens in
apps/web.Closes #9
Closes #11
Study unit list (#9)
StudyUnitListloads the demo user's sources + first source's units from the real API (GET /api/sources,GET /api/sources/:id) with explicit loading / error / empty states.근거 [start, end)) — the grounding story is visible in the UI from day one./api → :3000(pnpm devruns web + API together).Summary card (#11 — mock data, as the issue specifies)
SummaryCardViewrenders the@study-os/summarycard shape: summary, key concepts, confusion points, tone-preset badge, and an explicit AI-generated provenance label (provider/model/prompt version — per the repo's AI-labeling gate).mockSummaryCardmirrors the mock provider's output exactly.Verified
🤖 Generated with Claude Code