Page MenuHomePhabricator

Convert PHUIObjectBoxView to AphrontTagView
ClosedPublic

Authored by chad on Feb 17 2016, 8:13 PM.
Tags
None
Referenced Files
F13234672: D15291.diff
Tue, May 21, 3:38 AM
F13228742: D15291.id.diff
Mon, May 20, 11:41 AM
F13214045: D15291.diff
Fri, May 17, 8:25 AM
Unknown Object (File)
Tue, May 7, 10:10 AM
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
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
Branch
object-box-tag (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10732
Build 13199: Run Core Tests
Build 13198: arc lint + arc unit

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.