1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 16:46:15 +01:00
phorge-phorge/src/applications/project/controller
epriestley 9ab22e21b3 Allow installs to customize project icons
Summary:
Ref T10010. Ref T5819. General alignment of the stars:

  - There were some hacks in Conduit around stripping `fa-...` off icons when reading and writing that I wanted to get rid of.
  - We probably have room for a subtitle in the new heavy nav, and using the icon name is a good starting point (and maybe good enough on its own?)
  - The project list was real bad looking with redundant tag/names, now it is very slightly less bad looking with non-redundant types?
  - Some installs will want to call Milestones something else, and this gets us a big part of the way there.
  - This may slightly help to reinforce "tag" vs "policy" vs "group" stuff?

---

I'm letting installs have enough rope to shoot themselves in the foot (e.g., define 100 icons). It isn't the end of the world if they reuse icons, and is clearly their fault.

I think the cases where 100 icons will break down are:

  - Icon selector dialog may get very unwieldy.
  - Query UI will be pretty iffy/huge with 100 icons.

We could improve these fairly easily if an install comes up with a reasonable use case for having 100 icons.

---

The UI on the icon itself in the list views is a little iffy -- mostly, it's too saturated/bold.

I'd ideally like to try either:

  - rendering a "shade" version (i.e. lighter, less-saturated color); or
  - rendering a "shade" tag with just the icon in it.

However, there didn't seem to be a way to do the first one right now (`fa-example sh-blue` doesn't work) and the second one had weird margins/padding, so I left it like this for now. I figure we can clean it up once we build the thick nav, since that will probably also want an identical element.

(I don't want to render a full tag with the icon + name since I think that's confusing -- it looks like a project/object tag, but is not.)

Test Plan:
{F1049905}

{F1049906}

Reviewers: chad

Reviewed By: chad

Subscribers: 20after4, Luke081515.2

Maniphest Tasks: T5819, T10010

Differential Revision: https://secure.phabricator.com/D14918
2016-01-08 14:01:53 -08:00
..
PhabricatorProjectArchiveController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectBoardController.php [Redesign] Update Workboards 2015-06-29 12:31:49 -07:00
PhabricatorProjectBoardImportController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectBoardReorderController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectBoardViewController.php Drop "-pro" suffix and "editpro" URIs for EditEngine in Maniphest 2015-12-08 17:56:59 -08:00
PhabricatorProjectColumnDetailController.php Remove all setObjectURI() from ActionListViews 2015-12-17 08:30:22 -08:00
PhabricatorProjectColumnEditController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectColumnHideController.php Various linter fixes 2015-08-11 22:36:55 +10:00
PhabricatorProjectController.php Allow installs to customize project icons 2016-01-08 14:01:53 -08:00
PhabricatorProjectEditController.php Add very basic UI for creating milestones and subprojects 2015-12-29 10:40:16 -08:00
PhabricatorProjectEditPictureController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectFeedController.php Add empty subproject/milestone controllers 2015-12-27 09:26:47 -08:00
PhabricatorProjectListController.php Convert projects to EditEngine 2015-12-27 15:42:50 -08:00
PhabricatorProjectLockController.php Move "Lock Project" to a separate action 2015-12-27 09:28:34 -08:00
PhabricatorProjectMembersEditController.php Add very basic UI for creating milestones and subprojects 2015-12-29 10:40:16 -08:00
PhabricatorProjectMembersRemoveController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectMilestonesController.php Add very basic UI for creating milestones and subprojects 2015-12-29 10:40:16 -08:00
PhabricatorProjectMoveController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectProfileController.php Smooth out milestone creation workflow 2015-12-29 10:40:28 -08:00
PhabricatorProjectSubprojectsController.php Add very basic UI for creating milestones and subprojects 2015-12-29 10:40:16 -08:00
PhabricatorProjectUpdateController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00
PhabricatorProjectViewController.php Simplify some logic in project controllers 2015-12-27 09:21:31 -08:00
PhabricatorProjectWatchController.php Update Project for handleRequest 2015-08-08 10:34:55 -07:00