Merged
Conversation
✅ Deploy Preview for vortex-sandbox ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vortexfi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the account authentication feature in the Vortex Finance widget by improving the user experience and navigation flow. The changes primarily focus on refining the authentication states, improving back navigation behavior, and updating template URLs for consistency.
Changes:
- Enhanced authentication flow with
postAuthTargetcontext field to track post-authentication navigation state - Added back button functionality to authentication screens (email and OTP steps) via MenuButtons component
- Hid history menu button for unauthenticated users
- Updated footer URLs in email templates to use language-specific paths and updated copyright to 2026
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| supabase/templates/signup.html | Updated footer links to language-specific URLs and copyright year to 2026 |
| supabase/templates/magic_link.html | Updated footer links to language-specific URLs and copyright year to 2026 |
| docs/architecture/ramp-machine-widget-flow.md | Added comprehensive documentation for the ramp machine state flow and authentication gating changes |
| apps/frontend/src/machines/types.ts | Added postAuthTarget field to RampContext for tracking post-auth navigation |
| apps/frontend/src/machines/ramp.machine.ts | Implemented postAuthTarget logic, added GO_BACK handlers to auth states, removed auto-transition from Idle to CheckAuth, added auth gating before registration |
| apps/frontend/src/hooks/useStepBackNavigation.ts | Added isAuthStep logic and refined useEffect to only trigger on specific conditions |
| apps/frontend/src/components/widget-steps/AuthOTPStep/index.tsx | Added MenuButtons for back navigation, removed "Use different email" button, improved responsive layout for OTP input |
| apps/frontend/src/components/widget-steps/AuthEmailStep/index.tsx | Added MenuButtons for back navigation |
| apps/frontend/src/components/menus/SettingsMenu/index.tsx | Updated terms and conditions link to use language-specific path (has issue - see comments) |
| apps/frontend/src/components/menus/HistoryMenu/HistoryMenuButton/index.tsx | Added authentication check to hide button when user is not logged in |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sharqiewicz
approved these changes
Feb 12, 2026
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.
This PR includes the following changes, among others: