Repository navigation
Greet new learners with a 3-tap walkthrough and a plan, not empty progress - #361
Draft
AQIB-NAWAB wants to merge 1 commit into
Draft
AQIB-NAWAB wants to merge 1 commit into
AQIB-NAWAB wants to merge 1 commit into
Conversation
…gress A new learner now answers three tap-only questions on the home screen (why they are here, which area, where they are now), gets one quick question from that area, then a plan: one course to start with a single "Start lesson 1" button, two other choices, and an optional daily pace. Skip and Back are always there. Answers are saved on the user (firstRun, firstRunAt) through PUT /api/v1/learner/first-run, and the daily pace becomes the study goal. Learners who already began a course, or who were given one by an invite or an organization, never see it. An enrolled course that nobody has opened now shows "Ready to begin" instead of "In progress, 0%". On a learner's first day the course cards drop the empty 0% bars and say how many lessons each course has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AQIB-NAWAB
marked this pull request as draft
December 3, 2026 13:18
This branch has not been deployed
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.
Why
A new learner who enrolled in two courses saw "In progress, 0%" cards under "Pick up where you left off" before opening any lesson. That is confusing, and it gives no direction. Enrolling set
startedAt, so the home screen never showed "Ready to begin".What changed
First-run walkthrough (home screen, new learners only)
frontend/src/lib/first-run.ts: free first, then fit to level, then rating, then course size. One card per title. No AI call, so no AI credits.firstRunAtis empty, no course begun, and no course from an invite, Pathment or an organization. Existing active learners never see it.Server
User.firstRun(JSON) andUser.firstRunAt, migration20261203180000_first_run.PUT /api/v1/learner/first-run: answers (strict enums) or{ skipped: true }.firstRun: { show }.Labels
Testing
sync-shared --checkpasses.tests/unit/lib/first-run.test.ts..envused port 3061. It passes withAPP_URL=http://localhost:3000.🤖 Generated with Claude Code