Skip to content

Dev - #7

Merged
Retsomm merged 3 commits into
mainfrom
dev
Jul 11, 2026
Merged

Dev#7
Retsomm merged 3 commits into
mainfrom
dev

Conversation

@Retsomm

@Retsomm Retsomm commented Jul 11, 2026 •

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Added a TypeScript-based application foundation for improved reliability and consistency.
    • Added responsive navigation that moves to a fixed bottom tab bar on smaller screens.
    • Improved mobile profile layouts for easier viewing.
  • Bug Fixes
    • Added safeguards for missing quiz levels and safer progress import handling.
  • Chores
    • Builds now include type checking, with a dedicated type-check command available.

Retsomm and others added 3 commits July 11, 2026 17:35
所有 .jsx/.js 改成 .tsx/.ts,function 宣告式一律改成箭頭函式;新增 src/types.ts
統一共用型別,tsconfig.json 開 strict 模式,build/typecheck 腳本先過 tsc --noEmit
再交給 vite。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
前一個 commit 只有 git mv 的純重新命名,型別標註、箭頭函式改寫、共用型別
抽取等實際內容變更漏了沒 stage 進去,這裡補上。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
同一次 TS 化重構的一部分:tsconfig.json(single-project 設定,見專案記憶
的踩坑紀錄)、src/types.ts(共用型別來源)、src/vite-env.d.ts(Vite client
型別參考),前面兩個 commit 漏加了。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
easy-learn Ready Ready Preview, Comment Jul 11, 2026 9:38am

@Retsomm
Retsomm merged commit 24dc242 into main Jul 11, 2026
2 checks passed
@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 517c20cf-89e4-4d2d-b7ac-da24e9be34a9

📥 Commits

Reviewing files that changed from the base of the PR and between e869ad4 and 5b18b59.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (27)
  • index.html
  • package.json
  • src/App.tsx
  • src/components/CodeBlock.tsx
  • src/components/Icons.tsx
  • src/components/Mascot.tsx
  • src/components/Navbar.jsx
  • src/components/Navbar.tsx
  • src/components/QuestionCard.tsx
  • src/components/QuestionReview.tsx
  • src/data/chapters.ts
  • src/data/typeMeta.ts
  • src/hooks/useProgress.ts
  • src/index.css
  • src/main.tsx
  • src/screens/ChapterMap.tsx
  • src/screens/Home.tsx
  • src/screens/Notes.tsx
  • src/screens/Profile.tsx
  • src/screens/QuestionBook.tsx
  • src/screens/Quiz.tsx
  • src/screens/Stats.tsx
  • src/types.ts
  • src/utils/quiz.ts
  • src/vite-env.d.ts
  • tsconfig.json
  • vite.config.ts

📝 Walkthrough

Walkthrough

The app was migrated to typed TypeScript modules, including shared models, data access, progress state, React components, screens, and Vite tooling. The entrypoint now loads main.tsx, and responsive navbar and profile layouts were added.

Changes

TypeScript application migration

Layer / File(s) Summary
TypeScript tooling and data contracts
package.json, tsconfig.json, vite.config.ts, src/vite-env.d.ts, src/types.ts
Adds TypeScript compiler settings, Vite integration, type-checking scripts, and shared models for questions, chapters, levels, and progress.
Typed data and progress APIs
src/data/*, src/hooks/useProgress.ts, src/utils/quiz.ts
Adds explicit types to chapter lookup, question metadata, quiz helpers, progress state updates, and import/export logic.
Typed shared components
src/components/*
Converts shared components to typed props and typed exports, and replaces the JavaScript navbar with Navbar.tsx.
Typed screens and navigation state
src/App.tsx, src/screens/*
Types navigation views, screen props, quiz state, callbacks, and missing-level handling across the application screens.
Bootstrap and responsive layout
index.html, src/main.tsx, src/index.css
Loads the TypeScript entrypoint and adds mobile bottom-tab navigation plus narrow profile layout rules.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

  • Retsomm/EasyLearn#3: Touches the same wrong-question, review, streak, and progress codepaths updated in this migration.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

1 active deployment
Preview — 5b18b59f Deployed Jul 11, 2026 by vercel[bot]
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.

1 participant