@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.

Personal API Token field: Auto-select on click

Summary:
When looking at an API Token you often probably want to copy it. While buttons are one way (that's D26222), clicking into the text field is another user pattern.
Highlight the entire string in the text field when doing so, as the "Clone" URIs in Diffusion have the same behavior.

Closes T16335

Test Plan:
* Go to http://phorge.localhost/settings/panel/apitokens/ and Generate Token
* Click on the listed Token
* In the "View API Token" dialog, click in the "Token" field

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T16335

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

+2
+2
src/applications/conduit/controller/PhabricatorConduitTokenEditController.php
··· 88 88 'requests between nodes in a cluster. You can not use this '. 89 89 'token in external applications.')); 90 90 } else { 91 + Javelin::initBehavior('select-on-click'); 91 92 $form = id(new AphrontFormView()) 92 93 ->setUser($viewer) 93 94 ->appendChild( 94 95 id(new AphrontFormTextControl()) 95 96 ->setLabel(pht('Token')) 96 97 ->setReadOnly(true) 98 + ->setSigil('select-on-click') 97 99 ->setValue($token->getToken())); 98 100 99 101 $dialog->appendForm($form);