Skip to content

fix: lower onboarding-tour cutoff to today's ship date#2457

Merged
aalemayhu merged 1 commit into
mainfrom
fix/onboarding-tour-cutoff
May 19, 2026
Merged

fix: lower onboarding-tour cutoff to today's ship date#2457
aalemayhu merged 1 commit into
mainfrom
fix/onboarding-tour-cutoff

Conversation

@aalemayhu
Copy link
Copy Markdown
Contributor

@aalemayhu aalemayhu commented May 19, 2026

What

Lowers the onboarding-tour MIGRATION_CUTOFF constant from '2026-06-08T00:00:00.000Z' to '2026-05-19T00:00:00.000Z' (today, the wave's ship date).

Why

The just-merged tour from #2456 gates on created_at >= MIGRATION_CUTOFF. The engineer used the migration filename 20260608000000_add_onboarded_at_to_users.js as the cutoff source, but migration filenames in this repo are sequential placeholders rather than calendar dates. Today is 2026-05-19, so:

  • Every existing user has created_at < 2026-06-08 → no tour (correct).
  • Every new account today through June 7 has created_at < 2026-06-08 → no tour (wrong — the spec says new accounts see it).

Spec language: "The tour does not appear for users with created_at more than 24 hours before the feature ships." Feature ships today; cutoff should be today.

How

One-line constant change. Vitest unit tests for OnboardingTour.tsx use their own local MIGRATION_DATE test constant and pass it as the migrationDate prop, so they continue to pass without modification.

Testing

  • pnpm --filter 2anki-web typecheck clean.
  • pnpm --filter 2anki-web test:run — 758/758 pass.
  • Manual: a new account created from now on will see the four-step tour on their first visit to /upload.

Risks

None. Pre-merge no real user could see the tour; after merge new accounts see it. No data change, no migration, no shape change.

Goal alignment

Activation. The wave's tour piece is wired but invisible without this fix; this is what makes the feature actually reach the audience it was specced for.

Notes

  • No changelog entry — the wave's combined entry (already in main) covers it. This is the gate fix, not a new feature.
  • No /security-review needed — pure constant change.
  • No sonar local — single-line edit, well under the trivial-change threshold.

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

The wave's onboarding tour was gated on created_at >= 2026-06-08, the
migration filename's sequential placeholder, not the calendar date.
Lower the cutoff to today (2026-05-19) so accounts created from the
ship date forward see the tour, matching the spec intent of "more than
24 hours before the feature ships".
@aalemayhu aalemayhu enabled auto-merge (squash) May 19, 2026 14:39
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for notion2anki failed.

Name Link
🔨 Latest commit 9f61490
🔍 Latest deploy log https://app.netlify.com/projects/notion2anki/deploys/6a0c7625b1d39100087b5b80

1 similar comment
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for notion2anki failed.

Name Link
🔨 Latest commit 9f61490
🔍 Latest deploy log https://app.netlify.com/projects/notion2anki/deploys/6a0c7625b1d39100087b5b80

@aalemayhu aalemayhu merged commit 727ef7b into main May 19, 2026
3 of 9 checks passed
@aalemayhu aalemayhu deleted the fix/onboarding-tour-cutoff branch May 19, 2026 14:40
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