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

#621 Crop varieties sidebar #729

Merged
merged 2 commits into from
May 20, 2015
Merged

Conversation

oshiho3
Copy link
Contributor

@oshiho3 oshiho3 commented Mar 12, 2015

Please review.

Implemented #621 with javascript as I didn't realize rails-y implementation was preferred over javascript here and I wanted the toggle to look smooth instead of refreshing the whole page.
Let me know if you want me to rewrite using different technology etc.

Thanks!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.65% when pulling 0c6b6e0 on oshiho3:621-crop-varieties-sidebar into 6505254 on Growstuff:dev.

visit crop_path(crop)

# It lists all 5 items (note: including the top level item.)
# It DOES NOT have "Show all/less" toggle link
Copy link
Contributor

Choose a reason for hiding this comment

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

You might use a within block to focus on that .crop-hierarchy class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion, thanks! Done now.

@oshiho3 oshiho3 force-pushed the 621-crop-varieties-sidebar branch from b29a9f5 to c253c86 Compare March 17, 2015 00:40
@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.65% when pulling c253c86 on oshiho3:621-crop-varieties-sidebar into 6505254 on Growstuff:dev.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.65% when pulling c253c86 on oshiho3:621-crop-varieties-sidebar into 6505254 on Growstuff:dev.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.65% when pulling c253c86 on oshiho3:621-crop-varieties-sidebar into 6505254 on Growstuff:dev.

@oshiho3
Copy link
Contributor Author

oshiho3 commented Mar 17, 2015

Code has been updated to incorporate @tygriffin's review and also

  • Added a couple of more test scenarios
  • Made crop/varieties partial to accept max param which specifies how many items can be seen without "Show all" button
  • Number of crops to include the number of descendants below child as well

Apologize for modifying some stuff after the review. Can you please review this again?

@pozorvlak pozorvlak added this to the Release 9 milestone Apr 7, 2015
@pozorvlak
Copy link
Member

Looks good to me - moving into release 9.

Skud added a commit that referenced this pull request May 20, 2015
@Skud Skud merged commit 9a2818b into Growstuff:dev May 20, 2015
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.

5 participants