Page MenuHomePhorge

Separate repository home and browse view in tab menu
ClosedPublic

Authored by bekay on Feb 14 2024, 17:27.
Tags
None
Referenced Files
F2167660: D25538.diff
Sun, Apr 28, 02:17
Unknown Object (File)
Sat, Apr 27, 03:32
Unknown Object (File)
Sat, Apr 27, 03:32
Unknown Object (File)
Sat, Apr 27, 03:32
Unknown Object (File)
Sat, Apr 27, 03:32
Unknown Object (File)
Thu, Apr 25, 22:42
Unknown Object (File)
Thu, Apr 25, 10:48
Unknown Object (File)
Thu, Apr 25, 10:48
Tokens
"Orange Medal" token, awarded by 20after4.

Details

Summary

The tab menu in a repository can be a bit confusing. The first tab will be rendered active for two distinctive states:

  • the home view in the currently selected branch
  • the browse view in the currently selected branch

This diff will give the home view a dedicated extra tab. When switching the branches, we won't switch between home and browse view like it is done now.

And I have changed the crumb text for the browse view to "Code" to match it up with the tab name.

Additionally the readme is now the first content on the home view.

Fixes T15728

Test Plan

Browse in your favorite repos and feel an UX elevation.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bekay requested review of this revision.Feb 14 2024, 17:27
avivey subscribed.

I'd even suggest we can go one step further, and in the Home tab show the Readme above the files (and maybe change the order/highlight some other UI elements too).

This revision is now accepted and ready to land.Sat, Mar 30, 12:25
  • Moves readme to the top in home view

I'd even suggest we can go one step further, and in the Home tab show the Readme above the files (and maybe change the order/highlight some other UI elements too).

Good idea! I have implemented the readme-at-top suggestion... maybe quite a big change, but I think with the new code tab and the locate input the UX isn't disrupted that much.

Congratulations to both bekay and avivey. Minimum change, maximum result.

Whops, typo "Seperate" in the title - sorry for not noticing

bekay retitled this revision from Seperate repository home and browse view in tab menu to Separate repository home and browse view in tab menu.Tue, Apr 2, 14:36