soroban-abacus-flashcards/apps/web
Thomas Hallock 3d835d67cd feat(flowchart-workshop): add version history with preview mode
- Add flowchart_version_history table to store snapshots after generate/refine
- Create versions API endpoint (GET list, POST restore)
- Add History tab with version list showing source, validation status, timestamp
- Implement inline preview mode to view historical versions without restoring
- Preview mode shows amber banner and updates diagram, examples, worksheet, tests
- Hide structure/input tabs (not useful currently)
- Add preview notice in refinement panel clarifying behavior
- Update React Query documentation with comprehensive patterns
- Add versionHistoryKeys to central query key factory

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 13:52:59 -06:00
..
.claude feat(flowchart-workshop): add version history with preview mode 2026-01-23 13:52:59 -06:00
.storybook Add KidNumberInput component for kid-friendly number entry 2026-01-17 15:44:37 -06:00
__tests__
content/blog
data feat(flowchart): add animated background tiles to FlowchartCards 2026-01-20 10:10:49 -06:00
docs feat(flowchart): add animated background tiles to FlowchartCards 2026-01-20 10:10:49 -06:00
drizzle feat(flowchart-workshop): add version history with preview mode 2026-01-23 13:52:59 -06:00
e2e
public feat(flowchart): add animated background tiles to FlowchartCards 2026-01-20 10:10:49 -06:00
scripts feat(flowchart): add animated background tiles to FlowchartCards 2026-01-20 10:10:49 -06:00
src feat(flowchart-workshop): add version history with preview mode 2026-01-23 13:52:59 -06:00
test-results
.dockerignore.test
.gitignore
CARD_SORTING_PORT_PLAN.md
COMPLEMENT_RACE_PORT_PLAN.md
DEVELOPMENT_STANDARDS.md
LINTING.md
README.md
biome.jsonc
drizzle.config.ts
eslint.config.js
litefs.yml refactor(flowchart): remove legacy schema-specific formatting, add display.problem check 2026-01-22 11:03:15 -06:00
next-env.d.ts
next.config.js
next.openapi.json
package.json Add visual debug mode and documentation for flowchart system 2026-01-18 09:24:28 -06:00
panda.config.ts feat: Restructure FlowchartWalker with centered Time Machine layout 2026-01-19 04:48:23 -06:00
playwright.config.ts
pnpm-lock.yaml
server.js
svg-processing-test.js
test-arcade-api.sh
test-flashcards-final.pdf
test-flashcards.pdf
test-simplified.pdf
test_fullscreen_persistence.html
test_panda_simple.html
tsconfig.json
tsconfig.server.json
vitest.config.ts

README.md

Soroban Web Application

Interactive web application for learning soroban (Japanese abacus) calculation with tutorials, practice sessions, and multiplayer arcade games.

Features

  • Tutorials - Step-by-step lessons for learning soroban techniques
  • Practice Sessions - Adaptive practice with progressive help system
  • Arcade Games - Multiplayer educational games for reinforcement
  • Worksheet Generator - Create printable math worksheets

Getting Started

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Run type checks
npm run type-check

# Run all quality checks
npm run pre-commit

Documentation

Components

Component Description
Decomposition Display Interactive mathematical decomposition visualization
Worksheet Generator Math worksheet creation with Typst PDF generation

Games

Game Description
Arcade System Modular multiplayer game architecture
Know Your World Geography quiz game

Developer Documentation

Located in .claude/ directory:

  • CLAUDE.md - Project conventions and guidelines
  • CODE_QUALITY_REGIME.md - Quality check procedures
  • GAME_SETTINGS_PERSISTENCE.md - Game config architecture
  • Z_INDEX_MANAGEMENT.md - Z-index layering system
  • DEPLOYMENT.md - Deployment and CI/CD

Project Structure

apps/web/
├── src/
│   ├── app/                 # Next.js App Router pages
│   ├── components/          # Shared React components
│   │   ├── decomposition/   # Math decomposition display
│   │   ├── practice/        # Practice session components
│   │   └── tutorial/        # Tutorial player components
│   ├── contexts/            # React context providers
│   ├── arcade-games/        # Multiplayer game implementations
│   ├── hooks/               # Custom React hooks
│   ├── lib/                 # Utilities and libraries
│   └── db/                  # Database schema and queries
├── .claude/                 # Developer documentation
├── public/                  # Static assets
└── styled-system/           # Generated Panda CSS

Technology Stack

  • Framework: Next.js 14 (App Router)
  • Language: TypeScript
  • Styling: Panda CSS
  • Database: SQLite with Drizzle ORM
  • Abacus Visualization: @soroban/abacus-react

Parent: Main README - Complete project overview Abacus Component: packages/abacus-react - Abacus visualization library