Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: APP-360 redirect to project buy after google login #2494

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

r41ph
Copy link
Contributor

@r41ph r41ph commented Oct 3, 2024

Description

https://regennetwork.atlassian.net/browse/APP-360


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

  1. This needs to be tested with: feat: APP-204 buy credits #2477

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for regen-website ready!

Name Link
🔨 Latest commit 0cac65c
🔍 Latest deploy log https://app.netlify.com/sites/regen-website/deploys/6703afa9c95c1a0008b66e3f
😎 Deploy Preview https://deploy-preview-2494--regen-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@r41ph r41ph requested a review from blushi October 3, 2024 13:45
Comment on lines 6 to 7
createProject: boolean = false,
buyCreditsFrom?: string,
Copy link
Member

@blushi blushi Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we're adding more custom redirect routes, maybe we should just refactor this to take an optional redirectRoute as param?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, passing redirectRoute as a param definitely makes sense!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment now should be:

<LoginFlow
  isModalOpen={isModalOpen}
  onModalClose={onModalClose}
  wallets={walletsUiConfig}
  modalState={modalState}
  # New prop:
  redirectRoute={`${projectHref}/buy`}
/>

@r41ph r41ph force-pushed the feat-APP-360-redirect-after-google-login branch from deb922c to 0cac65c Compare October 7, 2024 09:53
@r41ph r41ph requested a review from blushi October 7, 2024 10:20
@blushi
Copy link
Member

blushi commented Oct 9, 2024

Maybe let's wait on #2477 to be merged before merging this

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