feat(onboarding): install prompt, push notification prompt, and schedule tip - #119
Open
5sansiva wants to merge 3 commits into
Open
feat(onboarding): install prompt, push notification prompt, and schedule tip#1195sansiva wants to merge 3 commits into
5sansiva wants to merge 3 commits into
Conversation
5sansiva
force-pushed
the
93-hackerOnboardingWorkflow
branch
from
July 28, 2026 06:20
12bc065 to
883b7a7
Compare
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.
Summary
Chained onboarding flow for hackers: install PWA → enable push notifications → learn to browse the schedule. Shown one step at a time via toast instead of all at once.
What's new
InstallPromptHost,shared/install/) — detects platform viauseInstallPrompt. iOS shows manual "Tap Share → Add to Home Screen" steps (no native install API on Safari); Android/Chromium gets a real "Install" button wired tobeforeinstallprompt. Shown once per browser (install-prompted-v1).PushPromptHost,shared/push/usePushPrompt.ts) — fires once installed/standalone and permission is unset. Gated bypush-prompted-v1.ScheduleTipHost,shared/schedule-tip/) — one-time tip on browsing the schedule (tap events for details, use the filter icon). Chained after the push prompt resolves via apush-prompt-settledevent, and only shown if a schedule is configured (getScheduleDateRange().configured). Mounted globally inHackerLayout.Notes
go.mod/go.sumbump forgo.mozilla.org/pkcs7(unrelated, picked up incidentally).Testing
npm run build,npm run lint,npm run format:check,tsc -b --noEmitgo vet ./...