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

Collapse collection items in Sidebar #503

Merged
merged 11 commits into from
Oct 4, 2019

Conversation

ashmaroli
Copy link
Member

To improve UX in sites with numerous collections.

  • Renders as the first item in the Sidebar giving it ample space to expand downwards.
  • Renders a counter showing count of items within panel when collapsed.
  • Renders link to 'Posts' separately.

ashmaroli and others added 4 commits September 30, 2019 11:20
To improve UX in sites with numerous collections.
  - Renders as the first item in the Sidebar giving it ample space to
    expand downwards.
  - Renders a counter showing count of items within panel when collapsed
  - Renders link to 'Posts' separately
src/containers/Sidebar.js Outdated Show resolved Hide resolved
src/containers/Sidebar.js Outdated Show resolved Hide resolved
src/containers/Sidebar.js Outdated Show resolved Hide resolved
src/containers/Sidebar.js Outdated Show resolved Hide resolved
src/containers/Sidebar.js Outdated Show resolved Hide resolved
src/containers/Sidebar.js Outdated Show resolved Hide resolved
@ashmaroli
Copy link
Member Author

@mertkahyaoglu The diff changed slightly since your last review. Notably,

  • there is no <div /> enclosing the accordion list-item
  • there won't be an empty <div /> rendered when there are no collections + "posts" are hidden + drafts are not rendered.
  • As a side-effect, there will now exist two <Splitter /> if "pages" and "posts" are hidden in a site without drafts and other collections. I plan to resolve that in a separate PR.

Would be great if you could do a re-review.
Thanks.

Copy link
Collaborator

@lexoyo lexoyo left a comment

Choose a reason for hiding this comment

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

Nice addition! 👍

Copy link
Member

@mertkahyaoglu mertkahyaoglu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ashmaroli
Copy link
Member Author

Thank you very much, guys 😃

@ashmaroli ashmaroli merged commit 8723f07 into jekyll:master Oct 4, 2019
@ashmaroli ashmaroli deleted the collections-accordion branch October 4, 2019 07:14
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.

3 participants