Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

@nathansobo
Copy link
Contributor

staging-selection

This PR makes the selection UX of the staging view consistent with the file patch view. It adds the following features:

  • Add/subtract selections with cmd- or ctrl-click/drag
  • Select ranges with shift-click
  • Select up and down with the keyboard, expanding selections with shift up/down
  • Select all, first, last
  • Display a diff for the head of a selection
  • Auto-scroll to a list item if it is out of view

Closes #271
Closes #260 (we've decided to continue to update the diff and revisit this UX later)
Closes #210
Closes #192

/cc @kuychaco

Nathan Sobo added 23 commits October 19, 2016 13:36
This will be used to model the selection state of the staging view.

Signed-off-by: Katrina Uychaco <kuychaco@github.com>
Signed-off-by: Katrina Uychaco <kuychaco@github.com>
...if the old head item is removed from the list.
Delete some that have been subsumed by unit tests on the selection.
We need to rework this whole code path, but this prevents issues in the
meantime.
@nathansobo
Copy link
Contributor Author

nathansobo commented Oct 29, 2016

Looks like there's just one Travis failure holding this back.

@nathansobo nathansobo force-pushed the ns-staging-selection branch from 648280c to baa30d0 Compare October 29, 2016 04:44
Nathan Sobo added 2 commits October 28, 2016 22:49
This works around a weird sequence of events in tests where a file patch
view can become activated for a repository right before it is destroyed.
@nathansobo
Copy link
Contributor Author

Gonna merge because this is a pretty clear improvement and we don't need to treat master with kid gloves at this stage in the project.

@nathansobo nathansobo merged commit 2462f67 into master Oct 29, 2016
@nathansobo nathansobo deleted the ns-staging-selection branch October 29, 2016 05:48
@kuychaco
Copy link
Contributor

Nice! ⚡️⚡️⚡️

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.

3 participants