Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Candidate improvements #18

Merged
merged 21 commits into from
Jan 13, 2015
Merged

Candidate improvements #18

merged 21 commits into from
Jan 13, 2015

Conversation

noahmanger
Copy link
Contributor

Mega PR but don't be initmidated. This contains:

  • Showing linked Committees on Candidate pages
  • Showing linked Candidates on Committee pages
  • And a bunch of redesign work on the candidate and committee pages

Probably only need eyes on the first two bullet points, but feel free to read through the style updates.


if (typeof results[i].elections[0].affiliated_committees !== 'undefined') {
var committeesAll = [],
committeesA = [],
Copy link
Contributor

Choose a reason for hiding this comment

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

Totally a style thing, but I'd be in favor of switching these three arrays to more descriptive names, even if long. I think it reads a bit clearer that way. committeesAuthorized or authorizedCommittees and so on in that pattern works, I think. I also think its ok to abstract away some of the API's mappings here.

@theresaanna
Copy link
Contributor

This looks great. The two things I commented on are teensy tiny. Really fantastic work!

theresaanna added a commit that referenced this pull request Jan 13, 2015
@theresaanna theresaanna merged commit 4562419 into master Jan 13, 2015
@noahmanger noahmanger deleted the candidate-improvements branch January 28, 2015 23:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants