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

Profile updates #4

Merged
merged 9 commits into from Dec 9, 2016
Merged

Profile updates #4

merged 9 commits into from Dec 9, 2016

Conversation

theginbin
Copy link
Contributor

What is this?

Some Profile updates, namely:

  1. sort by end date (sorry people!)
  2. add the time-to-go badge (sorry people!)
  3. spruce up the style (add cardView, correct for grids, fonts, colors)
  4. tie the refresh control to the projects load
  5. screenies!

element?.layer.anchorPoint = CGPoint(x: CGFloat(anchorX), y: 0.5)
}
let scaleX = progress >= 1.0 ? 1.0 : progress
element?.transform = CGAffineTransformMakeScale(CGFloat(scaleX), 1.0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there was some funkadelic stuff happening with the progress bar overlapping the space if progress was greater than 1.0, although we use this logic in every place we have a progress bar. I think this could be improved by a math whiz.

Copy link
Contributor

Choose a reason for hiding this comment

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

you could do let scaleX = min(1.0, progress) or you could set some clipping properties on the enclosing view to prevent it from overlapping

Copy link
Contributor

@mbrandonw mbrandonw left a comment

Choose a reason for hiding this comment

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

cool stuff! just a few small comments!

element?.layer.anchorPoint = CGPoint(x: CGFloat(anchorX), y: 0.5)
}
let scaleX = progress >= 1.0 ? 1.0 : progress
element?.transform = CGAffineTransformMakeScale(CGFloat(scaleX), 1.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

you could do let scaleX = min(1.0, progress) or you could set some clipping properties on the enclosing view to prevent it from overlapping

DiscoveryParams.defaults
|> DiscoveryParams.lens.backed .~ true
|> DiscoveryParams.lens.sort .~ .endingSoon
}
Copy link
Contributor

Choose a reason for hiding this comment

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

could mapConst this since it doesnt depend on the value emitted.

|> UILabel.lens.font .~ .ksr_subhead(size: 12)

self.dividerView
|> UIView.lens.backgroundColor .~ .ksr_navy_400
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use separatorStyle for this

Copy link
Contributor

@mbrandonw mbrandonw left a comment

Choose a reason for hiding this comment

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

If tests pass locally I think this is g2g!

@theginbin
Copy link
Contributor Author

full suite passes locally. mergin!

@theginbin theginbin merged commit 0d721c2 into master Dec 9, 2016
@theginbin theginbin deleted the profile-updates branch December 9, 2016 22:37
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.

None yet

2 participants