@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Workboard: improve the Create Task link to mention the Project slug

Summary:
This expands a specific link in a specific menu of Workboard Columns.

You may never notice this difference unless you like to open links in another tab.

If you go to a Workboard, and you open its context menu, and you hover your mouse on the
Create Task action, you see this URL or a similar one:

http://example.com/maniphest/task/edit/form/default/

After this change, you see this URL or a similar one:

http://example.com/maniphest/task/edit/form/default/?tags=test

You see that the PhutilURI class was used to add the Project slug to the 'tags' query param so
that users can still open the URL in a new tab and have the form prefilled with the Project Tag.

Closes T15147

Test Plan:
- visit a Workboard
- open the context menu of a Column (the pencil icon)
- see that the Create Task link has the Project slug is in the URL of its prefilled form

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15147

Differential Revision: https://we.phorge.it/D25068

authored by

dylsss and committed by
Valerio Bozzolan
5e2b3677 d98c4704

+2 -1
+2 -1
src/applications/project/controller/PhabricatorProjectBoardViewController.php
··· 696 696 $column_items[] = id(new PhabricatorActionView()) 697 697 ->setIcon($spec['icon']) 698 698 ->setName($spec['name']) 699 - ->setHref($spec['uri']) 699 + ->setHref(id(new PhutilURI($spec['uri'])) 700 + ->replaceQueryParam('tags', $project->getPrimarySlug())) 700 701 ->setDisabled($spec['disabled']) 701 702 ->addSigil('column-add-task') 702 703 ->setMetadata(