-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Show visibility status of email in own profile #23900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
432c458
to
7d46c5b
Compare
I just made a force-push as I made a typo in the commit summary, apologies :D |
This change was apparently made redundant last week and I didn't precisely notice that change, apologies once again: 6706ac2 I'll revamp the PR as I believe that I could improve the UX a little bit with my own idea. |
7d46c5b
to
f333d0f
Compare
I've heard many reports of users getting scared when they see their own email address for their own profile, as they believe that the email field is also visible to other users. Currently, using Incognito mode or going over the Settings is the only "reasonable" way to verify this from the perspective of the user. A lock indicator should be enough to indicate otherwise. A globe icon is used if the email address is public.
This comment was marked as off-topic.
This comment was marked as off-topic.
f333d0f
to
854b52c
Compare
Hi, sorry for the mess. I introduced the "show main email on the user's profile" thing again, but ended up using icons to clearly differentiate between public and no visibility. I think this is consistent with the overall look of the personalized Profile page, as similar indicators are present next to the users' repositories, and this leaves some room for additional, purely hypothetical, changes in the future, like e.g. "only users that are logged in can see my email". I am not used to modifying templates, this is a first contribution and I see that the coverage has dropped. Feedback is appreciated. The change was tested against the latest Gitea commit. |
Hmm, instead of adding an additional icon which does not really fit there, why not indicate on mouseover via |
I don't think that non-obvious xkcd-style "hover over it" tips will be helpful when you e.g. think that your email address has been leaked (I'm comparing this to the situation before the aforementioned commit was merged). I think that not including the address at all, which is the case right now, would be relatively better. |
oh, uh, this seems to be breaking the tests now :D |
IMHO, add right-side icon https://primer.github.io/octicons/info-16, with Also check if there are other conditions besides the logged-in condition. There might be an option to always hide the address from everyone but yourselves. |
I don't want to get super annoying about this, but I am not sure that not using clear iconography to describe the privacy status is productive. I can see this making a lot of sense with the icons that I am using right now, but I don't believe that an ℹ️ box with a hint should not adequately fix the "super scary and confusing UI" problem that I brought up - I'd like for a hint to play a complementary role to confirm what the user is seeing, instead of showing them something in such a confusing way that prompted 6706ac2 (aka. just the email address, with the addition of an omnipresent info box) and then telling them "oh, you're fine, everything is the way you want it (?)" in a smaller hint box. |
Oh, sorry, just noticed that I kind of messed up that part after I tried to scramble everything together to adjust my change so that it'd work with this codebase. I did it the way I wanted to do it, but I also used hints and also a hyperlink that leads the user directly to the right checkbox. Logged inLogged out(Email address is not supposed to be hidden here.) |
I'll push one final fix for the email-address-not-showing-up thing, started making some very trivial mistakes while trying to apply fixes. |
Hi again, thanks for your patience.
|
so, I'd guess in the file linked above lines 79 and/or 88 need to be changed (e.g. if this problem is fixed in |
I think gitea/tests/integration/setting_test.go Lines 64 to 65 in 376396a
gitea/tests/integration/setting_test.go Lines 74 to 90 in 376396a
gitea/tests/integration/setting_test.go Lines 53 to 58 in 376396a
Those lines should be removed and no additional checks should be introduced, if I am not wrong. I will take another careful look later, just wanted to post a small status update. |
Nevermind, I just changed the last part ( |
(p.s. before squashing and merging, please check that the attribution using my full name is correct and that github isn't adding some |
Maybe this string should be altered as well: gitea/options/locale/locale_en-US.ini Line 615 in 8117462
|
Yeah but that one is not related to this PR, would do in another PR. |
Got it. |
Checked the merge message, there is only a |
if it contains the username |
It contains your original username from the initial commit. I can't alter this on the UI here, and also would prefer not to :) |
Should be fine then, I'm just conditioned to double-checking that my information does not show up double / "two authors, one email" as e.g. Gitea does not handle that as well as GitHub and that ends up ruining things like internal contribution statistics. Sorry and thanks, I am just a bit of a perfectionist even if it doesn't matter in the end of the day :) |
I've heard many reports of users getting scared when they see their own
email address for their own profile, as they believe that the email
field is also visible to other users. Currently, using Incognito mode
or going over the Settings is the only "reasonable" way to verify this
from the perspective of the user.
A locked padlock should be enough to indicate that the email is not
visible to anyone apart from the user and the admins. An unlocked
padlock is used if the email address is only shown to authenticated
users.
Some additional string-related changes in the Settings were introduced
as well to ensure consistency, and the comments in the relevant tests
were improved so as to allow for easier modifications in the future.
Screenshot (EDIT: Scroll down for more up-to-date screenshots)
Please remove this section before merging.
This lock should only appear if the email address is explicitly hidden using the
Hide Email Address
setting. The change was originally tested on top of and designed for the Forgejo fork, but I don't expect any problems to arise from this and I don't think that a documentation-related change is strictly necessary.