Page MenuHomePhabricator

Converted the pinned applications selector to a typeahead.
ClosedPublic

Authored by jcox on Aug 26 2016, 5:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 11:09 PM
Unknown Object (File)
Fri, Apr 19, 5:15 PM
Unknown Object (File)
Wed, Apr 17, 12:57 PM
Unknown Object (File)
Fri, Apr 12, 9:19 AM
Unknown Object (File)
Fri, Apr 12, 9:19 AM
Unknown Object (File)
Thu, Apr 11, 7:48 AM
Unknown Object (File)
Thu, Apr 4, 2:30 AM
Unknown Object (File)
Wed, Apr 3, 3:05 AM
Tokens
"Yellow Medal" token, awarded by avivey."Love" token, awarded by michaeljs1990."100" token, awarded by epriestley.

Details

Summary

Fixes T11513. Previously the selector was just a giant dropdown which was just... just too much. Now there's a handy typeahead.

Test Plan

Happy Path:
Go to Settings -> Home Page -> Pin Application, start typing in the form then select one of the options. Click on "Pin Application". The application should now be in the list.

Other paths:

  • Type nothing into the box and submit, nothing should happen.
  • Choose an application that is already pinned. The list should stay the same.
  • Type nonsense into the box and submit, nothing should happen.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jcox retitled this revision from to Converted the pinned applications selector to a typeahead..
jcox updated this object.
jcox edited the test plan for this revision. (Show Details)
jcox edited edge metadata.
epriestley added a reviewer: epriestley.

Nice, this feels a lot nicer to me.

It would also be nice to add subtitles + icons to the browse view of this datasource, similar to the improvement to application document types in D16446:

Screen Shot 2016-08-26 at 10.19.45 AM.png (451×631 px, 36 KB)

I think you can $application->getIcon() to get an icon, and $application->getShortDescription() to get a reasonable subtitle/attribute.

This revision is now accepted and ready to land.Aug 26 2016, 5:22 PM
jcox edited edge metadata.
  • Added some nice icons and descriptions to the browse view of the typeahead form

ah good call. That looks way better:

pasted_file (354×596 px, 35 KB)

chad added inline comments.
src/applications/meta/typeahead/PhabricatorApplicationDatasource.php
41–43

do we need setImageSprite ?

We might still need that for this menu:

Screen Shot 2016-08-26 at 10.39.43 AM.png (672×417 px, 76 KB)

Yeah, we lose the big icons in the main search menu without setImageSprite().

We don't appear to need setImageURI(), though.

Just go ahead and land this, we can figure out the setIconURI() thing separately. That method can probably be removed from all Application classes too, so it's a bigger change.

Yeah as is it just shows the same icon twice on these entries:

pasted_file (549×360 px, 47 KB)

Without setImageSprite, the little ones just become globes.

This revision was automatically updated to reflect the committed changes.