Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Refine Dock UX and API - #14143

Merged
nathansobo merged 55 commits into
masterfrom
mb-ns-dock-ui-refinements
Apr 10, 2017
Merged

nathansobo merged 55 commits into
masterfrom
mb-ns-dock-ui-refinements

Conversation

@maxbrunsfeld

@maxbrunsfeld maxbrunsfeld commented Apr 5, 2017 •

Copy link
Copy Markdown
Contributor
  • Allow docks to be auto-resized by double clicking the resize handle
  • Don't open docks when single-clicking the resize handle
  • Docks have a getElement method, but other workspace classes still use the legacy view provider system. Add getElement methods on those classes instead, and get rid of all the remaining view providers in core.
  • Add Workspace APIs for tracking which pane container is focused: getActivePaneContainer, onDidChangeActivePaneContainer.
  • Make workspace methods like getActivePane return panes in docks if docks are focused.

facebook-github-bot pushed a commit to facebookarchive/nuclide that referenced this pull request Apr 5, 2017
Summary: This tracks the Atom change in atom/atom#14143

Reviewed By: shushz

Differential Revision: D4838377

fbshipit-source-id: f5a2efaf3998e447683a69b7bf5eddc70711965f
@Ben3eeE

Ben3eeE commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

Don't know if this is correct place to post or if it should be a separate issue. Noticed today that double clicking the tab bar of a dock opens an untitled tab in the last focused pane instead of the dock. I can open an issue for this if you want ⚡️

docks

@maxbrunsfeld
maxbrunsfeld force-pushed the mb-ns-dock-ui-refinements branch from 3da436d to 446f037 Compare April 5, 2017 22:32
@maxbrunsfeld
maxbrunsfeld force-pushed the mb-ns-dock-ui-refinements branch from 446f037 to e40ef03 Compare April 5, 2017 23:03
@matthewwithanm
matthewwithanm force-pushed the mb-ns-dock-ui-refinements branch from e212c27 to e3bbe5f Compare April 6, 2017 08:46
@maxbrunsfeld
maxbrunsfeld force-pushed the mb-ns-dock-ui-refinements branch from bc3aaf0 to b32da59 Compare April 7, 2017 00:01
@maxbrunsfeld
maxbrunsfeld force-pushed the mb-ns-dock-ui-refinements branch from b32da59 to 63d27c5 Compare April 7, 2017 00:24
@ungb

ungb commented Apr 7, 2017 •

Copy link
Copy Markdown
Contributor

@Ben3eeE I noticed that it always opens a new window in the center.

I found two issues.

On windows, I can't move the tree view between docks(this works on mac, I haven't tired on linux)

dockmove
NOTE the difference between windows and mac, is mac has the Projects on top I believe

Another bug I can repro on mac and window, is if you start atom with the Telemetry Consent and dock it on the bottom or anywhere, it closes the window that is currently in the center. If there is none, it closes Atom.

telemetryreport

@Ben3eeE

Ben3eeE commented Apr 8, 2017

Copy link
Copy Markdown
Contributor

@ungb For the first issue is that because of the Always Show Tab Bar setting in the tabs package?

@ungb

ungb commented Apr 8, 2017

Copy link
Copy Markdown
Contributor

this setting doesn't seem to work on windows, which could be the issue.

tabs

@nathansobo

Copy link
Copy Markdown
Contributor

@ungb you can't drag items without a tab. So in the graphic what you're dragging is the root folder of the tree view rather than the tree-view itself. We probably need to get to the bottom of the setting.

@nathansobo

Copy link
Copy Markdown
Contributor

@ungb Are you sure you are using the dock-enabled tree view? Did you run apm install in the branch before launching dev mode?

@nathansobo
nathansobo merged commit 3292e3b into master Apr 10, 2017
@nathansobo
nathansobo deleted the mb-ns-dock-ui-refinements branch April 10, 2017 15:08
facebook-github-bot pushed a commit to facebookarchive/nuclide that referenced this pull request Apr 10, 2017
Summary: `atom.workspace.docks` was removed by atom/atom#14143. This updates the check.

Reviewed By: shushz

Differential Revision: D4860280

fbshipit-source-id: 2c7b1a4bf4a8d4256031e022f5b9a2c51564c52a
zardra pushed a commit to zardra/nuclide that referenced this pull request Apr 14, 2017
Summary: This tracks the Atom change in atom/atom#14143

Reviewed By: shushz

Differential Revision: D4838377

fbshipit-source-id: f5a2efaf3998e447683a69b7bf5eddc70711965f
zardra pushed a commit to zardra/nuclide that referenced this pull request Apr 14, 2017
Summary: `atom.workspace.docks` was removed by atom/atom#14143. This updates the check.

Reviewed By: shushz

Differential Revision: D4860280

fbshipit-source-id: 2c7b1a4bf4a8d4256031e022f5b9a2c51564c52a
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.

7 participants