Page MenuHomePhabricator

Convert PHUIObjectBoxView to AphrontTagView
ClosedPublic

Authored by chad on Feb 17 2016, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 10:10 AM
Unknown Object (File)
Thu, Apr 25, 6:57 PM
Unknown Object (File)
Thu, Apr 25, 6:57 PM
Unknown Object (File)
Thu, Apr 25, 3:44 AM
Unknown Object (File)
Mon, Apr 15, 5:16 AM
Unknown Object (File)
Mon, Apr 8, 6:47 PM
Unknown Object (File)
Thu, Apr 4, 7:03 PM
Unknown Object (File)
Mar 30 2024, 7:31 PM
Subscribers

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rP12d852005962: Convert PHUIObjectBoxView to AphrontTagView
Summary

Attempting to clean PHUIObjectBoxView up a little as well as finally being able to addClass on the sucker. I'm running into some issue with addTabs though, which on Files isn't firing.

Test Plan

Bounce around tons of screens.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Convert PHUIObjectBoxView to AphrontTagView.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.

How can I reproduce the tabs issue? Just load up Files?

yeah, I just go to Files, click on tabs but they don't change.

I think the issue is:

  • getTagAttributes() is called first, and reads $this->tabMap, but it's currently empty.
  • Later, getTagContent() is called, and builds and save $this->tabMap, but it's never read.

Easiest fix is probably:

  • Implement willRender().
  • Build tabMap there.

That may not be super easy since the construction of tabMap is a little complicated, but it doesn't look too unmanageable.

chad edited edge metadata.
  • i guess this works?
epriestley edited edge metadata.
This revision is now accepted and ready to land.Feb 17 2016, 8:51 PM
This revision was automatically updated to reflect the committed changes.