Make the mobile hamburger menu on the User Profile page more useful at least for admins by adding a menu item to access the Manage page for that user (e.g. for disabling the user account or making them an administrator).
See also:
Differential D25685
Allow admins to access "Manage" page from user profile page menu on mobile aklapper on Jun 7 2024, 17:12. Authored by
Details
Make the mobile hamburger menu on the User Profile page more useful at least for admins by adding a menu item to access the Manage page for that user (e.g. for disabling the user account or making them an administrator). See also: As an admin, go to a user profile page like http://phorge.localhost/username/ on a screen with 920px or less width and click the hamburger menu item in the upper right corner. Click the "Manage $username" item to end up on a page which offers an "Actions" button which allows you to access actions like "Disable User" or "Make Administrator" also on mobile now and not only on desktop anymore. Great for disabling accounts on the go when a full PC computer would not come handy!
Diff Detail
Event TimelineComment Actions Better than before. In an ideal world we should make this manual menu nuked, and simply auto-generate the mobile menu with the same things as the left desktop menu (F311948).
Comment Actions As T15224 suggest, this menu should have the same content as the side-menu on non-mobile view; And in most places, the framework handles that, by actually moving that menu. I think @valerio.bozzolan did a similar thing to Home a while back? Comment Actions Completely agree but I don't know how 🤔
Ah! That T15216! It was awesome! Unfortunately that was an easy CSS bug. Comment Actions
@avivey I agree; ideally I'd also like to see the same menu entries without having to manually define entries for the mobile menu. However for now I cannot put time/priority into investigating how to fix this perfectly. Comment Actions To me it makes sense thanks. Maybe just add a comment somewhere to say that the menu should be automatically generated - T15224 Comment Actions There is no reason to expose "Manage" for admins only. I'm abandoning this in favor of D25687. On a related note, https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/controller/DiffusionRepositoryManagePanelsController.php says TODO: This is messy for now; the mobile menu should be set automatically in buildApplicationMenu(). Also, grep'ing the source I find both buildSideNavView and buildSideNav functions in classes which extends PhabricatorController. They seem to do the same, so there is some inconsistency here. |