Skip to content

Add Select Account Modal #3897

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

Merged
merged 1 commit into from
Apr 14, 2021
Merged

Add Select Account Modal #3897

merged 1 commit into from
Apr 14, 2021

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Apr 12, 2021

fixes #3754

Screen Shot 2021-04-13 at 10 29 46

@AlexTugarev AlexTugarev changed the title [server] push payload for /select-account via URL param Add Select Account Page Apr 12, 2021
@AlexTugarev AlexTugarev changed the title Add Select Account Page Add Select Account Modal Apr 12, 2021
@AlexTugarev AlexTugarev force-pushed the at/select-accout branch 4 times, most recently from 5e6e0ed to 60e75fd Compare April 13, 2021 08:30
@AlexTugarev AlexTugarev requested a review from gtsiolis April 13, 2021 08:31
@AlexTugarev AlexTugarev marked this pull request as ready for review April 13, 2021 08:31
@AlexTugarev AlexTugarev force-pushed the at/select-accout branch 2 times, most recently from ccb30a0 to 3df3bdf Compare April 13, 2021 08:56
@gtsiolis
Copy link
Contributor

gtsiolis commented Apr 13, 2021

Let's see what we have here! 👀

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Looks great @AlexTugarev! 🗃️

<div className="mt-4 flex rounded-md w-full bg-gray-200 p-4 mx-auto">
<img className="w-4 h-4 m-1 ml-2 mr-4" src={info} />
<span>
Disconnect a provider in one of you accounts, if you like to continue with the other account.
Copy link
Contributor

Choose a reason for hiding this comment

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

question: WDYT of the following? Alternatively, we could split the following into two alert components, one for information (gray) and one for warning (red).

Suggested change
Disconnect a provider in one of you accounts, if you like to continue with the other account.
This will disconnect the non-selected account and delete all its associated workspaces data and user settings like environment variables. To continue using the other account, go user settings and disconnect the existing provider connection.

} else {
continueWithCurrentAccount();
}
}}>Continue</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Shall we also offer a secondary option to go back to user settings, Integrations?

Copy link
Member Author

Choose a reason for hiding this comment

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

  1. in case we're seeing this on the /integrations page, the continue with current basically means stay here ✅
  2. in case we're seeing this on creation of workspaces, then it's translated to visiting /integrations ✅

please verify

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like a good MVC. Let's do it.

@AlexTugarev AlexTugarev force-pushed the at/select-accout branch 2 times, most recently from 0a58495 to 312837a Compare April 13, 2021 13:02
@gtsiolis
Copy link
Contributor

gtsiolis commented Apr 14, 2021

@AlexTugarev let me know if you need another review round for this one! 🏓

@AlexTugarev AlexTugarev merged commit 12ffead into main Apr 14, 2021
@AlexTugarev AlexTugarev deleted the at/select-accout branch April 14, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Implement /select-account
2 participants