Page MenuHomePhabricator

Move Diffusion Browse to a single column layout
ClosedPublic

Authored by chad on Apr 22 2017, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 3:29 AM
Unknown Object (File)
Sun, Apr 14, 5:49 AM
Unknown Object (File)
Thu, Apr 11, 7:50 AM
Unknown Object (File)
Wed, Apr 10, 8:15 AM
Unknown Object (File)
Wed, Apr 10, 3:01 AM
Unknown Object (File)
Wed, Apr 10, 2:26 AM
Unknown Object (File)
Wed, Apr 10, 2:21 AM
Unknown Object (File)
Wed, Apr 10, 1:50 AM
Subscribers

Details

Summary

The main change here is moving (compare, search, history) into buttons in the header bar on all browse views. This allows Directory Browsing to be full width, since there is no other curtain information. File, Image, LFS, Binary all stay in TwoColumn layouts with the same buttons in the header.

Test Plan

Test viewing a directory, file, image, binary file, readme, and fake a gitlfs.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This doesn't really feel any cleaner to me, and I think it makes this view more confusing (actions are a more random mixture of buttons and links):

Screen Shot 2017-04-23 at 8.07.23 AM.png (563×1 px, 113 KB)

...but I don't think it's particularly worse either if you like it better.

This revision is now accepted and ready to land.Apr 23 2017, 3:10 PM

I'm trying to do this in smaller pieces. I'd like to get rid of all the two column layout stuff in diffusion.

src/applications/diffusion/controller/DiffusionBrowseController.php
399–404

test

src/applications/diffusion/controller/DiffusionBrowseController.php
399–404

ure testin' my patience bub

chad marked an inline comment as done.

rebase

erm, I arc patch'd this and rebased, and when I arc diff it tries to upload 5700 files. I feel I missed something locally here.

MacBook-Pro-3:phabricator chad$ arc which
REPOSITORY
To identify the repository associated with this working copy, arc followed this process:

    Configuration value "repository.callsign" is empty.

    This repository has no VCS UUID (this is normal for git/hg).

    The remote URI for this working copy is
    "ssh://dweller@secure.phabricator.com/diffusion/P/phabricator.git".

    Found a unique matching repository.

This working copy is associated with the Phabricator repository.

COMMIT RANGE
If you run 'arc diff', changes between the commit:

    5457135951f85d42  [Redesign] Full Lato font kit

...and the current working copy state will be sent to Differential, because
it is the merge-base of 'origin/redesign-2015' and HEAD, as specified in
'.git/arc/default-relative-commit'.

You can see the exact changes that will be sent by running this command:

    $ git diff 5457135951f85d42..HEAD

These commits will be included in the diff:
 A BILLION THINGS

What does cat .git/arc/default-relative-commit show?

origin/redesign-2015

Can't think of any reason it could have ended up there.

Is this a bug or should I just change it and move along

If arc magically wrote garbage to that file somehow that's a bug, but everything else is consistent with "at some point in the past, you typed arc diff and answered the wrong thing at the prompt" or something like that. T6136 discusses adding some warnings and improving the UI when users get into this state.

You should be able to delete the file and arc diff again.

This revision was automatically updated to reflect the committed changes.

landing and moving forward, will clean up in tabs diff, yell if I super broke anything.