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

show emails modal after member creation #4579

Merged
merged 5 commits into from
Oct 18, 2023

Conversation

kdembler
Copy link
Collaborator

@kdembler kdembler commented Oct 16, 2023

This PR adds email subscription modal right after new member is created. To achieve this with minimal changes, the existing behaviour of showing subscription modal to active users is used. Whenever new user is created (faucet/buy), members will be refetched and the active member will be set to newly created once the flow is finished. This will trigger the subscription modal.

I've also made some improvements to QN sync logic so that block height can be used to check QN tx inclusion.

Resolves #4235 and #4566

@vercel
Copy link

vercel bot commented Oct 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Oct 18, 2023 11:00am
pioneer-2 ✅ Ready (Inspect) Visit Preview Oct 18, 2023 11:00am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Oct 18, 2023 11:00am

Copy link
Collaborator

@thesan thesan left a comment

Choose a reason for hiding this comment

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

I see the design wasn't fully thought through here but here's what I'm proposing:

  1. no changes: buy membership form Screenshot from 2023-10-16 17-07-23
  2. no changes: the sign & send transaction modal Screenshot from 2023-10-16 17-07-48
  3. After the transaction succeeded the email registration modal Screenshot from 2023-10-16 17-08-19
  4. After the signup mutation (or the user has clicked "not now") the usual confirmation modal
    Screenshot from 2023-10-16 17-09-23

WDYT ?

packages/ui/src/common/hooks/useSignAndSendTransaction.ts Outdated Show resolved Hide resolved
@thesan thesan merged commit 986a41e into Joystream:backend Oct 18, 2023
@thesan thesan added scope:notifications Notifications subsystem community-dev issue suitable for community-dev pipeline labels Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-dev issue suitable for community-dev pipeline scope:notifications Notifications subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants