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

Adding styles to new views #423

Merged
merged 7 commits into from
Apr 26, 2016
Merged

Adding styles to new views #423

merged 7 commits into from
Apr 26, 2016

Conversation

ryankeairns
Copy link
Contributor

Going through and tidying up layouts and styles:

  • sign-in
  • projects (info and build tabs)
  • forms
  • top bar/nav

Note: I did some angular hacking in the AppComponent to remove the side nav from the sign-in view... I wanted to keep this particular screen solely focused on the act of signing in since this is a key metric we'd like to track (# of sign-ups).

@thesentinels
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @smith and @fnichol to be potential reviewers

[route]="state.router.route"></hab-side-nav>
<section class="hab-main">
[route]="state.router.route"
*ngIf="!hideNavCheck()"></hab-side-nav>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need this to be a function. *ngIf="hideNav" should work, and the function definition is not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sweet, that worked perfectly - much simpler!

@ryankeairns ryankeairns force-pushed the rk/applying-moar-design branch from 5ed43a4 to 4312b3d Compare April 22, 2016 12:50
@@ -162,6 +163,11 @@ export class AppComponent implements OnInit {
// route data.
router.subscribe(value => store.dispatch(routeChange(value)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you combine these two together to be:

router.subscribe(value => {
    this.hideNav = value === "sign-in";
    store.dispatch(routeChange(value)));
});

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've poked at this a few times and can't quite get it right... ok if we push it to a follow-up PR so that I can get all this UI work merged?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, but not sure I understand what the problem is. Are you getting some kind of error using the code I put in the comment above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Figured it out with a clearer head this morning... I had a couple of issues going on (lint error, needed to declare the hideNav variable, added if statement since return url now has params on it, etc.)

Speaking of the redirect url, it seems unexpected to return to the sign in/sign out screen... I would prefer they return to their Projects. Is that as simple as changing the redirect URL on github?

Thanks for the feedback on this!

@smith
Copy link
Contributor

smith commented Apr 25, 2016

There's a couple things on the sign in page:

Note that the shaded border on the bottom appears twice. I made the sign out button the same width as the sign in button but it looks like that got broke.

@reset
Copy link
Collaborator

reset commented Apr 25, 2016

@ryankeairns you'll need to rebase this guy!

@ryankeairns
Copy link
Contributor Author

Making good progress catching up to @smith's latest work. I'll rebase in the morning and aim to get this merged tomorrow.

@ryankeairns ryankeairns force-pushed the rk/applying-moar-design branch from 3f059e3 to 825572c Compare April 26, 2016 12:35
@smith
Copy link
Contributor

smith commented Apr 26, 2016

👍 looks great. Merge after the lint fixes and removing that unnecessary if statement.

gif-keyboard-540620833795872710

@ryankeairns
Copy link
Contributor Author

giphy

@ryankeairns ryankeairns merged commit 4b7b351 into master Apr 26, 2016
jtimberman pushed a commit that referenced this pull request Jun 12, 2016
* sign-up styles and alternative layout

* styles on projects, forms, sign-in, misc global

* remove hideNavCheck function

* styles for switch, repo select, orgs, notfiications, add forms, etc

* consolidate router subscribe statements

* resolve linting, update logo

* remove hideNav if statement
@smurawski smurawski deleted the rk/applying-moar-design branch February 3, 2017 17:29
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.

4 participants