Closed mdoggydog closed 1 year ago
I went ahead and submitted a PR (#347) implementing "option 3", which I think will make the most sense to all of our future-selves.
(For what it's worth, I tested out all the new/old option values locally, and the code appears to actually do what it claims to do.)
I'd like to be able to display only the username on the
PersonalTools
dropdown button. The current behavior whenshowUserName
is enabled is to show the user's realname, and only show the username if the user has no realname. In our environment, not all of our users have realnames and we uniformly identify ourselves by username, so that inconsistency is kind of off-putting.I'd be happy to try submitting a patch for this myself, but my main question is, what would be the preferred way to address this functionality in a layout file? Some options that come to mind:
showUserName
option:showUserName = "no"
- show nothingshowUserName = "yes"
- try showing a realname, but fallback to usernameshowUserName = "username-only"
- show only the usernameshowUserName
:showUserName = "no"
- show nothingshowUserName = "yes"
- show only the usernameshowUserName = "try-realname"
- try showing a realname, but fallback to usernameshowUserName = "none"
- show nothingshowUserName = "try-realname"
- try showing a realname, but fallback to usernameshowUserName = "username-only"
- show only the usernameshowUserName = "no"
(deprecated) - show nothingshowUserName = "yes"
(deprecated) - try showing a realname, but fallback to usernamePersonally, I prefer option 3 (because it bugs me that "showUserName = yes" does not just show a username).