Skip to content

Makes commit summary window expandable - #1080

Merged
joshaber merged 68 commits into
masterfrom
scroll-through-summary-lane
Apr 25, 2017
Merged

joshaber merged 68 commits into
masterfrom
scroll-through-summary-lane

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Mar 28, 2017 •

Copy link
Copy Markdown
Contributor

This PR fixes issue #519

  • Add a click handler to icon
    • toggle CSS class on commit-summary-description RichText component
    • toggle icon's symbol
  • Add new style, commit-summary-description-expanded
  • Style icon to look like mockup

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

hmm, this might be a shot in the dark, but you might be able to get away with something like width: 80%

@donokuda , I tried this out yesterday, but the result is still to place the icon on a separate line.

2017-03-28_10-16-45

Note that this image is not using the width: 80% rule because the result was almost the same.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

This is ready for review 💯

Collapsed

2017-03-29_17-36-35

Expanded

2017-03-29_17-36-49

@donokuda and @niik, how close is this to your original design intentions?

@iAmWillShepherd iAmWillShepherd changed the title [WIP] Adds ability to expand the commit summary window Makes commit summary window expandable Mar 29, 2017
@niik niik self-assigned this Mar 30, 2017
@niik

niik commented Mar 30, 2017

Copy link
Copy Markdown
Member

Great start @iAmWillShepherd, a few notes.

It seems like the expand button is showing even if there's no expanded description available

image

It also seems like the expand/collapse button is visible even when the commit description fits within the container, ideally it would only show when the container overflows. I suspect we'll want to implement this in React by checking if the scrollHeight is greater than the height of the container.

Finally I think a commit description which overflows should still be scrollable, you shouldn't have to expand to read it all.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

...ideally it would only show when the container overflows.

I actually prefer if it's always visible when there is text in the commit description. If I'm a user and I see icons appearing and disappearing based on the size of my window, I would be curious.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

Finally I think a commit description which overflows should still be scrollable, you shouldn't have to expand to read it all.

I have no preference here. When @donokuda and I talked about it yesterday, I came away thinking to have no scroll was preferred since we provide a way to expand the content.

@donokuda

Copy link
Copy Markdown
Contributor

Finally I think a commit description which overflows should still be scrollable, you shouldn't have to expand to read it all.

Subjective feels, but I'm not super keen on having the collapsed view be scrollable mostly because I don't find the experience of scrolling through three lines at a time pleasurable. I'm also not a big fan of seeing the scrollbar in such a small space.

I actually prefer if it's always visible when there is text in the commit description. If I'm a user and I see icons appearing and disappearing based on the size of my window, I would be curious.

I'm leaning towards @niik with showing the icon only if the commit description overflows, but I'm open to trying out how it works currently and evaluating it afterwards.

@niik niik mentioned this pull request Apr 24, 2017
@niik niik removed their assignment Apr 24, 2017
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

This seems to be ready with @niik's code and master merged. 💯

@joshaber joshaber self-assigned this Apr 25, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems legit 👍 Nice collaboration 🤘

@joshaber
joshaber merged commit 45aff06 into master Apr 25, 2017
@joshaber
joshaber deleted the scroll-through-summary-lane branch April 25, 2017 13:33
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