Page MenuHomePhabricator

Convert Macro to PHUITwoColumnView
ClosedPublic

Authored by chad on Mar 1 2016, 4:41 PM.
Tags
None
Referenced Files
F13200190: D15372.diff
Mon, May 13, 10:40 PM
F13182453: D15372.diff
Thu, May 9, 11:29 PM
Unknown Object (File)
Mon, May 6, 2:08 AM
Unknown Object (File)
Wed, Apr 24, 11:53 PM
Unknown Object (File)
Apr 13 2024, 7:45 PM
Unknown Object (File)
Apr 11 2024, 10:03 PM
Unknown Object (File)
Apr 11 2024, 8:09 AM
Unknown Object (File)
Apr 6 2024, 1:10 PM
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.