Page MenuHomePhabricator

Convert PHUIObjectBoxView to AphrontTagView
ClosedPublic

Authored by chad on Feb 17 2016, 8:13 PM.
Tags
None
Referenced Files
F14351747: D15291.diff
Thu, Dec 19, 10:00 AM
Unknown Object (File)
Wed, Dec 18, 1:10 AM
Unknown Object (File)
Sat, Dec 14, 6:36 AM
Unknown Object (File)
Mon, Dec 9, 1:08 AM
Unknown Object (File)
Sat, Dec 7, 4:53 AM
Unknown Object (File)
Thu, Dec 5, 2:48 AM
Unknown Object (File)
Sat, Nov 30, 9:09 PM
Unknown Object (File)
Sat, Nov 30, 9:15 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 10733
Build 13201: Run Core Tests
Build 13200: 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.