Repository navigation
Conversation
We're gonna need it for the app toolbar
We'll add toolbar buttons soon
# Conflicts: # app/src/ui/app.tsx
From new design, this replaces the light style, one border for all.
Closed
Necessary for foldouts
We'll make the repository foldout into a flexbox soon enough
Member
Author
|
This is ready for review 🎉 |
joshaber
suggested changes
Nov 2, 2016
joshaber
left a comment
Contributor
There was a problem hiding this comment.
Reviewing this is pretty lulz, so just a couple comments.
| "license": "MIT", | ||
| "dependencies": { | ||
| "byline": "^4.2.2", | ||
| "classnames": "https://registry.npmjs.org/classnames/-/classnames-2.2.5.tgz", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| /** GitStores keyed by their associated Repository ID. */ | ||
| private readonly gitStores = new Map<number, GitStore>() | ||
|
|
||
| private sidebarWidth: number = defaultSidebarWidth |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Member
Author
Contributor
joshaber
approved these changes
Nov 2, 2016
Contributor
|
This is a strong #jolo |
This was referenced Nov 3, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


TODO
What does it do
It removes the old sidebar component and introduces a new
Toolbarcomponent withToolbarButtonandToolbarDropdown.We also have a new sidebar concept which is local to the
RepositoryView. Both changes and history have been refactored and their first columns have been moved out into sidebar components which are rendered into a resizable column by the repository view. The width of this sidebar is persisted via the dispatcher so that the first button (or two in the case of windows) of the toolbar can share the same width.What doesn't it do
There's a bunch of styling left do to do which I'm punting on in other to get this in before the merge hell gets even worse. The foldout stuff needs to be broken down a bit more and it needs to support non-relative placement, right now foldouts a positioned bottom left of the toolbar button and that works on macOS but on Windows we're going to have a hamburgler menu offset the first button but that shouldn't affect the placement of the repository foldout.
I've also left the redesign of the history view for a separate PR in order to cut down on scope.
Foldouts are only closable by clicking on the toolbar button again or clicking on the overlay. This needs to be extended to support Escape (regardless of wether that's still a thing on macs) as well as clicking on a non-dropdown area of the toolbar.
Review notes
There's a lot in here and I apologize for that. Worth noting as you review this is that I've created folders for changes, history, and toolbar styles. The diff will likely show it all as additions which is unfortunate but unavoidable.
There's one or two TODOs in the code which I'm going to leave in and address separately. The documentation (especially in scss) isn't quite what I would like it to be but that too is something I can address separately.