Page MenuHomePhabricator

Convert Macro to PHUITwoColumnView
ClosedPublic

Authored by chad on Mar 1 2016, 4:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 10:05 PM
Unknown Object (File)
Wed, Dec 18, 1:27 AM
Unknown Object (File)
Wed, Dec 18, 1:27 AM
Unknown Object (File)
Sun, Dec 15, 10:26 PM
Unknown Object (File)
Thu, Dec 12, 10:19 AM
Unknown Object (File)
Sun, Dec 8, 5:11 AM
Unknown Object (File)
Nov 27 2024, 5:35 AM
Subscribers

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rP6f481aa84faf: Convert Macro to PHUITwoColumnView
Summary

Converts Macro to new layout

Test Plan

Add Macro, Edit Macro, Mobile, Desktop layouts

Diff Detail

Repository
rP Phabricator
Branch
macro (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10945
Build 13509: Run Core Tests
Build 13508: arc lint + arc unit

Event Timeline

chad retitled this revision from to Convert Macro to PHUITwoColumnView.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
src/applications/macro/controller/PhabricatorMacroViewController.php
143–147

Is this information already on the Handle somewhere?

epriestley edited edge metadata.
epriestley added inline comments.
src/applications/macro/controller/PhabricatorMacroViewController.php
143–147

Yes, $handle->getImageURI().

This revision is now accepted and ready to land.Mar 1 2016, 7:36 PM
chad planned changes to this revision.Mar 1 2016, 9:14 PM
chad edited edge metadata.
  • cleaner code
  • clean up Macro
  • test audio
This revision is now accepted and ready to land.Mar 2 2016, 6:17 PM
src/applications/macro/controller/PhabricatorMacroViewController.php
143–147

Is this correct or is there still a cleaner way? I could probably add this to be automatic in PHUITwoColumnView as well with setAttribution

src/applications/macro/controller/PhabricatorMacroViewController.php
143–147

Perhaps slightly cleaner as:

- $author = $viewer->renderHandle($author_phid)->render();
+ $author = $handles[$author_phid]->renderLink();

But pretty much the same thing.

This revision was automatically updated to reflect the committed changes.