Skip to content

Conversation

@ComputelessComputer
Copy link
Collaborator

Description

  • Implemented prevention of trial expired modal during onboarding
  • Added pro subscription modal trigger logic to handle billing flow

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 4c080f3
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6978a3eb4b70bc0008c67020

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for howto-fix-macos-audio-selection failed.

Name Link
🔨 Latest commit 09e21ff
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/69785d15199169000838b406

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 4c080f3
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6978a3eb0e49520008dd3a67

@ComputelessComputer ComputelessComputer force-pushed the feat/prevent-trial-expired-onboarding branch 2 times, most recently from 606bfb8 to 597d2b7 Compare January 27, 2026 11:25
Centralize the "is onboarding" check by adding useOnboardingState() and
replace inline useLocation pathname checks across several hooks. This
removes repeated logic, simplifies imports, and makes onboarding
detection reusable.

Changes:
- Add apps/desktop/src/hooks/useOnboardingState.ts to expose a memoized boolean for onboarding path.
- Update useProSubscriptionModalTrigger, useTrialExpiredModalTrigger, and useTrialStartOnFirstLaunch to use the new hook instead of directly using useLocation.
- Remove unused useLocation imports and tidy up related effects (rename startTrial mutation usage and its dependency).
@ComputelessComputer ComputelessComputer force-pushed the feat/prevent-trial-expired-onboarding branch from 597d2b7 to 4c080f3 Compare January 27, 2026 11:39
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