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

[v16] Display warning if a user that wants to authorize a web session is not logged in Connect #50046

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

gzdunek
Copy link
Contributor

@gzdunek gzdunek commented Dec 11, 2024

Backport #49836 to branch/v16

I had to modify the warning to the old Alert API. Also, we don't have the storybook control addon on v16, so I reverted the stories to the non-control version.

…t logged in Connect (#49836)

* Display warning if a user that wants to authorize a web session is not logged in Connect

* Make the instructions more specific

* Fix types

* Convert the story to use controls

* Fix test name

(cherry picked from commit cfe482b)
We don't have the addon on v16.
@gzdunek gzdunek added the no-changelog Indicates that a PR does not require a changelog entry label Dec 11, 2024
@github-actions github-actions bot requested review from avatus and ravicious December 11, 2024 09:30
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-50046.d1v2yqnl3ruxch.amplifyapp.com

Comment on lines +124 to +133
<Link
css={`
cursor: pointer;
`}
onClick={() => {
ctx.commandLauncher.executeCommand('cluster-logout', {
clusterUri: rootCluster.uri,
});
}}
>
Copy link
Member

Choose a reason for hiding this comment

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

This is not great, but <ButtonText> seems to be even worse. If we ever need to do something like this on master, it'd be a good idea to add some kind of inline prop to <ButtonText> that adds underline and removes font-size, color and min-height.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, I wasn't very happy doing it :(

@gzdunek gzdunek enabled auto-merge December 11, 2024 16:11
@gzdunek gzdunek added this pull request to the merge queue Dec 11, 2024
Merged via the queue into branch/v16 with commit 763fe05 Dec 11, 2024
42 checks passed
@gzdunek gzdunek deleted the gzdunek/backport-49836/v16 branch December 11, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants