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

feat(ui): update oss login page #17291

Merged
merged 4 commits into from
Mar 16, 2020
Merged

feat(ui): update oss login page #17291

merged 4 commits into from
Mar 16, 2020

Conversation

alexpaxton
Copy link
Contributor

@alexpaxton alexpaxton commented Mar 16, 2020

Completes half the work described in #17151
The other half is contingent upon this issue: influxdata/clockface#455

  • Use FunnelPage component in the OSS login page
  • Use InfluxDBLogo from Clockface in login panel
  • Factor out SplashPage components and styles

Screen Shot 2020-03-16 at 12 06 40 PM

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Well-formatted commit messages
  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Documentation updated or issue created (provide link to issue/pr)
  • Signed CLA (if not already signed)

@alexpaxton alexpaxton requested review from a team and glinton and removed request for a team March 16, 2020 19:21
Copy link
Contributor

@hoorayimhelping hoorayimhelping left a comment

Choose a reason for hiding this comment

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

Nice! love the deletion. Couple of comments / question

}

.cf-dapper-scrollbars--content {
display: flex !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this !important necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately yes, in clockface there's an !important present to override styles from a library, so the madness trickles down

Comment on lines 23 to 38
width: 70%;
height: auto;
margin-top: 1em;
margin-bottom: 3em;
}

.signin-page--cubo {
background-image: url('../../assets/images/auth-logo.svg');
background-size: 100% 100%;
background-position: center center;
background-repeat: no-repeat;
width: 100px;
height: 100px;
display: inline-block;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

ninor nit: wanna alphabetize these selectors?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that, though makes me think we could benefit from more thorough CSS formatting. I think prettier supports that? Maybe a nice little tooling improvement

Copy link
Contributor

Choose a reason for hiding this comment

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

@alexpaxton deffo. I usually just say "alphabetize absent any other organizing scheme. would be rad to have one in place"

<SplashPage.Logo />
<SplashPage.Header title="InfluxData" />
<div className="signin-page--cubo" />
<InfluxDBCloudLogo cloud={false} className="signin-page--logo" />
Copy link
Contributor

Choose a reason for hiding this comment

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

what is cloud={false} we have a CLOUD global variable that denotes whether we're in a cloud context or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that prop controls whether the word "Cloud" renders in the image. https://influxdata.github.io/clockface/?path=/story/graphics-brand-logos--influxdb-cloud

In this instance I left it false cuz this page is OSS only

@alexpaxton
Copy link
Contributor Author

@hoorayimhelping just pushed a commit that sorts the css attributes alphabetically

Copy link
Contributor

@hoorayimhelping hoorayimhelping left a comment

Choose a reason for hiding this comment

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

Code looks good to me, I haven't tested this thougn

@alexpaxton alexpaxton merged commit eda7e05 into master Mar 16, 2020
@alexpaxton alexpaxton deleted the feat/update-oss-login branch March 16, 2020 19:58
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