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

Add the ilab-public org signup link to the login page #278

Closed
wants to merge 1 commit into from

Conversation

nerdalert
Copy link
Member

@nerdalert nerdalert commented Oct 16, 2024

Screencap:

image

Tracked in #277

Signed-off-by: Brent Salisbury <bsalisbu@redhat.com>
Copy link
Contributor

@andybraren andybraren left a comment

Choose a reason for hiding this comment

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

Thank you Brent! Here are a few small tweaks that I think would increase the likelihood that first-time visitors join the org first before clicking the "Sign in with GitHub" button.

With these tweaks it'd look like this:

2024-10-18 16 32 34

style={{ backgroundColor: 'black' }}
onClick={handleSignUpClick}
>
Sign up
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Sign up
Join the beta (required)

Copy link
Contributor

@andybraren andybraren Oct 18, 2024

Choose a reason for hiding this comment

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

This wording isn't perfect since they're technically joining an org, but for now this would indicate to the user that this is a "beta" and that clicking this button is also required (just once) until we improve this flow in the future.

icon={<CustomLogoIcon />}
iconPosition="left"
size="lg"
style={{ backgroundColor: 'black' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
style={{ backgroundColor: 'black' }}
style={{ backgroundColor: '#24274e' }}

Quick hack to make this slightly less primary-looking (only required once).

@@ -32,11 +47,21 @@ const GithubLogin: React.FC = () => {
icon={<GithubIcon />}
iconPosition="left"
size="lg"
style={{ backgroundColor: 'black' }}
style={{ backgroundColor: 'black', marginRight: '20px' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind flipping the order of these buttons so that "Sign in with GitHub" is on the right instead?

For left-to-right readers, placing the one-time/required button on the left will make it likelier to be noticed and clicked on first. Hopefully in the future we won't need two buttons, but reordering would work as a quick improvement for now.

@vishnoianil
Copy link
Member

@nerdalert As per our discussion, based on your inviter code, i created this PR. #282

@andybraren Please take a look at the PR.

@nerdalert and myself did some brainstorming around this and decided that we should ask user to login, and once authenticated with the github, if user is not part of the instructlab-public org, show a popup to join the organization. Pop up has button to self-invite, and once user accept the invitation it can access the UI. So user doesn't have to worry about any invited link or password.

@andybraren
Copy link
Contributor

Nice! That's even more streamlined. 👍

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.

3 participants