Skip to content

feat(desktop): add what's new upgrade wizard#191

Draft
AkaraChen wants to merge 1 commit into
feat/posthog-setupfrom
feat/whats-new-wizard
Draft

feat(desktop): add what's new upgrade wizard#191
AkaraChen wants to merge 1 commit into
feat/posthog-setupfrom
feat/whats-new-wizard

Conversation

@AkaraChen

Copy link
Copy Markdown
Owner

Summary

  • Extracts the What's New upgrade wizard out of the PostHog setup PR
  • Adds release-note storage and localized What's New copy
  • Keeps the PostHog setup PR focused on analytics/logging only

Stack

Base: #189 / feat/posthog-setup

Test Plan

  • Verified diff against feat/posthog-setup contains only What's New wizard files
  • Checked for conflict markers

…s for consent

Generalises the welcome wizard from a fixed three-step feature
tour into a step-driven flow that composes feature, what's-new,
and consent steps. The wizard opens on launch when any of the
three are pending and walks the user through them in order.

Step assembly per user state:

  First-time user (hasSeenWelcome=false):
    feature × 3 → consent

  Existing user with new release (no whatsNew acked yet):
    whats-new → consent (only if not yet acked)

  Existing user already on this version, consent already acked:
    nothing — wizard stays closed

Persistence:

- New `consentAcked` boolean in the desktop store, distinct from
  `analyticsConsent`. Existing users' consent value defaults to
  "granted" (status quo) but consentAcked stays false until they
  explicitly see and dismiss the consent step. That's what triggers
  the one-time re-prompt without flipping anyone's setting.
- New `lastSeenWhatsNewVersion` tracks the highest release entry
  the user has acknowledged. The wizard only surfaces entries
  strictly newer than this. First-time-seeing-notes users (lastSeen
  is null) only get the latest entry to avoid burying them in
  history.

Wizard rendering:

- WizardStepBody dispatches on step.type. Feature steps keep the
  existing two-column list+illustration layout. What's-new shows a
  single column "What's new in {version}" header plus a stacked
  list of {icon, title, description} items, sourced from
  src/lib/whats-new.ts (mock data for now). Consent shows a
  centred checkbox card.
- Footer logic adapts: shows "Get Started" on the last step when
  the wizard included feature steps (and triggers the product
  tour), otherwise "Finish" without the tour.
- Settings → "Show Welcome" replays the full feature wizard
  regardless of stored flags, matching the existing affordance.

Adds 11 new i18n keys × en/zh-Hans/zh-Hant covering the consent
section label, the v0.2.0 mock release notes, and the what's-new
header copy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b708c35e-19d0-4be5-9519-79840e6df813

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/whats-new-wizard

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 and usage tips.

@AkaraChen AkaraChen marked this pull request as draft May 30, 2026 03:48
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.

2 participants