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

🥊 Glue auth components #4282

Merged
merged 17 commits into from
Jun 9, 2023
Merged

Conversation

WRadoslaw
Copy link
Contributor

Copy link
Contributor

@drillprop drillprop left a comment

Choose a reason for hiding this comment

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

Amazing work with gluing this together. I managed to create a channel and post a video without using any extension 🤯 . Some things that I found when I was testing this:

  1. I already told you about this on discord, but I'll post this here as well. Deployment preview is not working because we're getting error from polkadot
    image

  2. I think I broke this, but there are dividers in a few modal, and they shouldn't be here
    image
    image

  3. I didn't go any errors when I used email that is already used in this step:
    image

  4. I don't think we should show the error-type snackbar.
    image
    Please check what we have currently:
    image

  5. Once I created a video without extension and transaction modal disappeared I didn't have a new video in my videos. It seems that we didn't refetch user videos.

  6. I'm experiencing multiple redirects when I refresh the studio(signed user with extension)

Nagranie.z.ekranu.2023-06-6.o.09.42.28.mov
  1. Once you switch the channel to a member there is a weird gap in the member dropdown

image

EDIT - Actually I can't reproduce this anymore, so possibly this can be ignored.

  1. Once I signed up I wasn't automatically logged in.

I'm fine if we do these fixes in follow-up PRs, please create issues on GH if you feel that we should tackle these separately.

packages/atlas/src/providers/auth/auth.store.ts Outdated Show resolved Hide resolved
return <SignUpModal />
default:
return null
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Because of this switch statement once you close the modal there is no ending transition animation. The modal closes immediately.

packages/atlas/src/providers/auth/auth.provider.tsx Outdated Show resolved Hide resolved
packages/atlas/src/providers/auth/auth.provider.tsx Outdated Show resolved Hide resolved
packages/atlas/src/providers/auth/auth.provider.tsx Outdated Show resolved Hide resolved
packages/atlas/src/providers/auth/auth.provider.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@drillprop drillprop left a comment

Choose a reason for hiding this comment

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

There is another issue. If someone doesn't have a wallet installed he'll see this:
image

Copy link
Contributor

@drillprop drillprop left a comment

Choose a reason for hiding this comment

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

Few bugs:

  • If a user provides an email that already exists, and then corrects the email and signs up again, he won’t be logged in automatically after signing up a second time

  • found another redirecting bug. Steps to reproduce:

  1. log into your account using your wallet. The account needs to have a channel
  2. Go to the studio
  3. Logout
  4. Click login CTA
  5. Use a different account that doesn’t have a channel
  6. The app is constantly redirecting from studio to sign-in, and I’m ending up in an infinite loop of redirecting

I think we don’t clear the channelId from local storage after logging out. This could be a reason

  • You forgot to add a handler to this button
    image

Copy link
Contributor

@drillprop drillprop left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice 🎉 !

@WRadoslaw WRadoslaw merged commit b69b985 into Joystream:accounts Jun 9, 2023
attemka pushed a commit to attemka/atlas that referenced this pull request Jul 5, 2023
* Add correct flows between auth modals

* Initial work on internal login

* external login

* Further work on ExternalSignInModal

* Fix sometimes incorrect type

* Fix minor issues when switching from internal to external login in one session

* Fix loading issue

* Resolve todos

* Unmount auth modals when not needed

* Re export

* fix dividers issue

* CR fixes v1

* Fix circular deps

* Login after signup

* Lint

* CR fixes v2

---------

Co-authored-by: drillprop <drylbartosz@gmail.com>
attemka added a commit that referenced this pull request Jul 6, 2023
* anonymous user interaction (#4168)

* 🔑 Protected actions (#4164)

* 🔐 Login modal (#4182)

* Sign up flow (#4210)

* 🤯 External wallet login (#4252)

* 🌳 Rearrange user, wallet, and auth provider (#4260)

* Public profile settings (#4275)

* 🥊 Glue auth components (#4282)

* 🩹 My channel (#4329)

* 🦢 Swap sign up step (#4317)

* 🧠 Forgot password flow (#4325)

* 🌵 Channel creation modal (#4334)

* 🐉 Dropdown rework (#4337)

* Wallet settings, change password and download mnemonic (#4326)

* Update packages/atlas/src/views/viewer/MembershipSettingsView/MembershipWallet/MembershipWallet.tsx

* Simplified ypp sign up (#4351)

* 👯‍♀️ Account followup fixes (#4394)

---------------------
Co-authored-by: Bartosz Dryl <drylbartosz@gmail.com>
Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com>
Co-authored-by: Artem Slugin <attemka@gmail.com>
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