Spaces:
Runtime error
Runtime error
Commit History
-
feat: replace default number inputs with custom styled SpinBox component
MATSUMURA Taishi489cb95 -
Fix build error: remove unused isDesc param in renderCell
MATSUMURA Taishi +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>35bd9d1 -
Fix AccountCard: remove stale @dnd-kit/core import, apply tap-select UI
MATSUMURA Taishi +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0760af7 -
Add 第2問(勘定記入)・第3問(財務諸表)
MATSUMURA Taishi +1: Claude Sonnet 4.6Architecture: - navStore: activeSection 'journal' | 'ledger' | 'statement' - ledgerStore: T字勘定の状態管理・judgeLedger による採点 - statementStore: 財務諸表の状態管理・judgeStatement による採点 - App.tsx: section ルーティング追加 Data model (types.ts): - LedgerCell/LedgerRow/LedgerProblem/LedgerResult - StatementCell/StatementRow/StatementProblem/StatementResult Judge (judge.ts): - judgeLedger: 各行の desc(語群記号) + amount をセル単位で採点 - judgeStatement: blank_amount / blank_contra(△ + 純額) / blank_account を採点 Migration: problem_data jsonb カラム追加 + 前払家賃 / 貸借対照表 問題を投入 UI: - LedgerScreen: T字勘定グリッド(select + number input) - StatementScreen: 2列財務諸表(blank_contra = △入力 + 純額入力) - StageSelect: 第1問/第2問/第3問 タブを追加 - EventCard: props で問題を受け取れるよう拡張(第2問/第3問対応) Sample data embedded in each store for guest mode Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>ebe620b -
Revamp to 簿記3級 第1問(仕訳)exam format
MATSUMURA Taishi +1: Claude Sonnet 4.6Data model: - Problem: add section/topic/symbols/documents fields (backward-compat) - accounts.ts: add 'contra' category, expand to ~40 accounts for 3Q scope - Add TOPIC_MASTER (6 topics: payroll/receivable/fixed_asset/merchandise/cash/capital) - Migration: add columns + insert 15 exam problems with symbol mappings Scoring: reuse existing multiset judge unchanged (handles permutation) remove isSolvable filter (calc problems don't list all amounts in text) UX — tap-select replaces drag & drop: - AccountCard: 借方へ/貸方へ buttons, symbol badge, no useDraggable - CardTray: grid layout, symbol lookup from problem.symbols - DropZone: symbol badge per row, no useDroppable, side-colored borders - GameScreen: remove DndContext entirely - EventCard: render ProblemDocument tables (Q15 invoice), show topic label - StageSelect: topic chips (6 topics + 全範囲) replace Lv/difficulty pickers - Result: show symbol in correct-answer display sampleProblems: rewritten in new format (7 problems coveri…f31cb63
-
Add login link in guest mode header
MATSUMURA Taishi +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0823e05 -
Add authentication with guest mode
MATSUMURA Taishi +1: Claude Sonnet 4.6- AuthScreen: email/password login + guest option (sample problems only) - authStore: Zustand store for auth state, session restore via getSession, onAuthStateChange for live updates - App: auth gate before game phases (initializing → unauthenticated → guest/authenticated) - gameStore: remove usingSample fallback; guest uses SAMPLE_PROBLEMS only, authenticated uses Supabase only with error on failure (no silent fallback) - supabase: fetchProblems/generateProblems now throw on error instead of returning [] - StageSelect: guest badge, logout button; remove "Supabase 未設定" fallback notice - recordAttempt only called for authenticated users Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8418e62 -
Add Docker config for Hugging Face Spaces deployment
MATSUMURA Taishi +1: Claude Sonnet 4.6- Dockerfile: multi-stage build (Node 22 → nginx 1.27), port 7860 - nginx.conf: SPA fallback routing, gzip - .dockerignore: exclude node_modules/dist/.env - README.md: add HF Spaces YAML frontmatter VITE_SUPABASE_URL / VITE_SUPABASE_ANON_KEY are injected via HF Spaces Variables (build-time ARGs). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7d7e1a3