Page MenuHomePhabricator

Consolidate changeset rendering logic

Authored by epriestley on May 25 2014, 2:20 PM.
Referenced Files
F13254826: D9286.diff
Sat, May 25, 3:47 AM
F13234666: D9286.diff
Tue, May 21, 3:37 AM
F13212611: D9286.diff
Fri, May 17, 6:55 AM
F13197102: D9286.diff
Sun, May 12, 11:49 PM
F13188227: D9286.id22051.diff
Sat, May 11, 5:06 AM
F13178686: D9286.diff
Wed, May 8, 8:35 PM
Unknown Object (File)
Sat, May 4, 9:23 PM
Unknown Object (File)
Sat, May 4, 4:50 PM



Ref T5179. Currently, all the changeset rendering logic is in the "populate" behavior, and a lot of it comes in via configuration and is hard to get at.

Instead, surface an object which can control it, and which other behaviors can access more easily.

In particular, this allows us to add a "Load/Reload" item to the view options menu, which would previously have been very challenging.

Load/Reload isn't useful on its own, but is a step away from "Show whitespace as...", "Highlight as...", "Show tabtops as...", "View Unified", "View Side-By-Side", etc.

Test Plan
  • Viewed Differential.
  • Viewed Diffusion.
  • Viewed large changesets, clicked "Load".
  • Used "Load" and "Reload" from view options menu.
  • Loaded all changes in a large diff, verified "Load" and TOC clicks take precedence over other content loads.
  • Played with content stability stuff.

Diff Detail

rP Phabricator
Lint Skipped
Tests Skipped

Event Timeline

epriestley retitled this revision from to Consolidate changeset rendering logic.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 3 2014, 10:10 PM
epriestley updated this revision to Diff 22325.

Closed by commit rP7d0d6fbcf2e4 (authored by @epriestley).