Page MenuHomePhabricator

Update project profile image composer for new IconSet code
ClosedPublic

Authored by epriestley on Jan 18 2016, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 10:07 PM
Unknown Object (File)
Thu, Dec 19, 7:02 PM
Unknown Object (File)
Wed, Dec 18, 1:06 AM
Unknown Object (File)
Wed, Dec 18, 1:06 AM
Unknown Object (File)
Wed, Dec 18, 1:06 AM
Unknown Object (File)
Wed, Dec 18, 1:06 AM
Unknown Object (File)
Sun, Dec 15, 5:24 PM
Unknown Object (File)
Thu, Dec 12, 7:41 AM
Subscribers
None

Details

Summary

Fixes T6856. Fixes T10164.

  • Make the profile image composer code use the underlying icon name instead of the top-level icon key, so it works instead of 404'ing.
  • Change the button to show a preview of the profile icon instead of the text "Use Icon and Color".
  • When creating a new non-milestone project, automatically set the profile image to the icon + color image.
Test Plan
  • Created several new projects, saw appropriate default icons.
  • Edited projects, saw icon previews.
  • Clicked icon buttons to set icons.
  • Poked around other applications which use builtins (Pholio, user profiles) to look for anything I broke, but everything seemed fine.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Update project profile image composer for new IconSet code.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

Screen Shot 2016-01-18 at 2.06.55 PM.png (1×1 px, 197 KB)

That build failure is because gd is not installed on the build tier, I'll get it installed.

  • I updated the deployment scripts to install php5-gd on all tiers, since some obscure build/repo jobs need them.
  • I deployed sbuild001.
  • I restarted the build, and it's now green.
This revision is now accepted and ready to land.Jan 18 2016, 11:07 PM

One minor thing is that the icons are now configurable, but we don't have 2x sprites for all of them, so the default may end up picking a generic icon (currently, an umbrella) if you, say, add fa-rebel as a Project icon. We can probably cross that bridge when we come to it, unless you have some super efficient process for automatically generating all 2000 other 2x PNGs.

This revision was automatically updated to reflect the committed changes.

I presumed these were no longer going to be images, but bg-color + fonticon.

T6856 specifically was about making these fonts over images.

It's probably less work to just automate the icon slicing than special case all the rendering code.

I can probably dig up all the font awesome icons as pngs, is that what you need?

If it takes you like ~10 minutes, yeah. If it takes you more than that, don't bother and I'll build some kind of automated pipeline for it sooner or later.

I found https://github.com/exiang/php-font-awesome-to-png but haven't tried it. Oddly hard to find "zip file of all font awesome images as png". I did find them as pngs but someone decided all the icons needed new names.