Ref T12732. Currently, different ways of setting a profile image can leave you in different places.
Instead, always send the user back to the "Manage" page.
Differential D17967
Make editing project images redirect to "Manage" more consistently epriestley on May 19 2017, 8:54 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Ref T12732. Currently, different ways of setting a profile image can leave you in different places. Instead, always send the user back to the "Manage" page. Used "Current Picture", "use picture", "Build picture" and "upload picture", always ended up in the same spot.
Diff Detail
Event Timeline
Comment Actions Yeah, ⌘+F hits nothing. We could probably detect this in lint, it just doesn't come up too terribly often. Comment Actions Oh, I think we'd get false positives right now because the linter doesn't do a great job of "{$variable}" in strings until T8049, maybe? Comment Actions I'd love a lint rule for this. I bet it would prevent typos more than anything else, but in PHP that seems extremely useful. Comment Actions We can detect this version of things ("use of undeclared variable"), which I think gets most of the typos: Error (XHP5) Use of Undeclared Variable Declare variables prior to use (even if you are passing them as reference parameters). You may have misspelled this variable name. 25 26 $manage_uri = $this->getApplicationURI('manage/'.$project->getID().'/'); 27 >>> 28 do_a_thing($maneg_yoori); 29 30 $supported_formats = PhabricatorFile::getTransformableImageFormats(); 31 $e_file = true; We just can't currently detect the opposite, "declared but unused variable". |