Fixes T11513. Previously the selector was just a giant dropdown which was just... just too much. Now there's a handy typeahead.
Details
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
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:
I think you can $application->getIcon() to get an icon, and $application->getShortDescription() to get a reasonable subtitle/attribute.
src/applications/meta/typeahead/PhabricatorApplicationDatasource.php | ||
---|---|---|
41–43 | do we need setImageSprite ? |
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:
Without setImageSprite, the little ones just become globes.