feat(onboarding): add first-login guided tour for operators (#159) - #245
Merged
Conversation
…nx#159) Introduce a step-by-step onboarding tour that walks first-time operators across the dashboard, outages, and payments pages, with a persisted opt-out so it never nags returning users. Feature: - OnboardingTour controller (driver.js) mounted once in the root layout; gates on authenticated session + unset onboardingTourDone flag, drives the tour one step at a time with route-aware advance (router.push + waitForElement), an injected "Skip tour" button, and a catch-all onDestroyed that persists the opt-out. - Declarative 6-step list in src/lib/onboarding/steps.ts (dashboard KPIs & filters, outages search & list, payments filters & table). - data-tour targets added across Navigation, dashboard, outages, and payments views (class names untouched). - Server-synced persistence via lib/preferences.ts: new onboardingTourDone flag (localStorage + PUT /user/preferences, server-wins hydration). - Settings "Replay onboarding tour" button via apexchain:start-tour event. - i18n onboarding block (en/es/pt) and .apex-tour popover styling (light + dark) in globals.css. - Unit tests (OnboardingTour.test.tsx): no-start when done, auto-start when authenticated + unset, no-start when unauthenticated, opt-out persisted on tour end. 4/4 passing. Incidental fixes on the same branch: - Align react to ^19.2.7 (was 19.2.3) to match react-dom; add @testing-library/dom devDependency; add driver.js dependency. - payments-view.tsx: add missing preferences imports. - client.ts: correct buildApiUrl import path (@/lib/url). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@Agaki00 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
usmanimamu17-create
approved these changes
Jul 29, 2026
4 tasks
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.
Introduce a step-by-step onboarding tour that walks first-time operators across the dashboard, outages, and payments pages, with a persisted opt-out so it never nags returning users.
Feature:
Incidental fixes on the same branch:
Description
Type of Change
Related Issue
Testing
Checklist
npm run test)npm run build)npm run lint)Screenshots
Additional Notes
Closes #156
Closes #157
Closes #158
Closes #159