zulip-mobile icon indicating copy to clipboard operation
zulip-mobile copied to clipboard

Provide UI to update own profile

Open borisyankov opened this issue 6 years ago • 16 comments

Implement the functionality that exists on the web at: https://chat.zulip.org/#settings/your-account

Important:

  • Email, Full name, Password
  • Upload new avatar

Secondary:

  • Deactivate account
  • Custom profile fields

borisyankov avatar Feb 27 '19 17:02 borisyankov

@zulipbot claim

anh2111htd avatar Mar 02 '19 10:03 anh2111htd

I would like to work on this issue

AdityaHirapara avatar Mar 18 '19 14:03 AdityaHirapara

I am thinking of implementing it on profile tab like this, then pressing button will navigate to new screen like user status. Screenshot_2019-03-18-19-20-50-35

@borisyankov any suggestions?

AdityaHirapara avatar Mar 18 '19 14:03 AdityaHirapara

@AdityaHirapara we have some problems with vertical space here - some phone screens might not be high enough to fit this. I have an idea for a different style of 'Edit profile' button, but it is perfectly fine to start working on this with this implementation and we can fix that before merging it.

borisyankov avatar Mar 18 '19 17:03 borisyankov

We probably don't need to show local time for your own profile, so there may be some space optimization options available too.

timabbott avatar Mar 18 '19 18:03 timabbott

We probably don't need to show local time for your own profile, so there may be some space optimization options available too.

Yes, That can be done.

AdityaHirapara avatar Mar 18 '19 18:03 AdityaHirapara

We probably need this information somewhere though. If there is a timezone set it is not necessarily what the actual time of the device is.

Also, I haven't had set this for myself so my concern for the space was even without that line.

borisyankov avatar Mar 18 '19 19:03 borisyankov

Hi @AdityaHirapara, I've already been working on this issue :) I claimed 2 weeks ago but didn't update frequently as it took a while to learn the codebase and debug.

For now, user can edit their own full name, I'm working on allowing them to edit avatar and password. @borisyankov can you help me do a quick review for #3421 as it may relate to your PR #3403?

anh2111htd avatar Mar 20 '19 06:03 anh2111htd

Oh okay, Let me know if I can help you with anything :)

AdityaHirapara avatar Mar 20 '19 10:03 AdityaHirapara

We should be sure to disable the widget when changing a user's avatar is disabled (see zulip/zulip#12251) because the organization is syncing them from LDAP.

timabbott avatar May 03 '19 19:05 timabbott

@timabbott should we introduce a capabilities or permissions object with flags on register? The purpose will be to move the biz logic of determining what the client can do to the back-end.

So stuff like:

  • if ldap enabled => canEditProfile: false
  • if user is admin => canDeleteStream: true
  • etc.

borisyankov avatar May 03 '19 22:05 borisyankov

In this case, it is unnecessary... you can just check for the keys in the register response, using false (not disabled) as the default if not present

-Tim Abbott (mobile)

On Fri, May 3, 2019, 3:28 PM Boris Yankov [email protected] wrote:

@timabbott https://github.com/timabbott should we introduce a capabilities or permissions object with flags on register? The purpose will be to move the biz logic of determining what the client can do to the back-end.

So stuff like 'if ldap => canEditProfile: false, if admin => canDeleteStream: false` etc.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zulip/zulip-mobile/issues/3372#issuecomment-489259665, or mute the thread https://github.com/notifications/unsubscribe-auth/AAU6NWVSDUTEXWJR5VVMOCDPTS4CTANCNFSM4G2ULMQQ .

timabbott avatar May 03 '19 22:05 timabbott

We've had another report of this, here.

chrisbobbe avatar Apr 13 '20 18:04 chrisbobbe

This will require #3397 and some other parts of #3408 -- when we get an update to this information from the server, we'll need to apply it.

gnprice avatar Mar 03 '21 02:03 gnprice

In particular, I think, we'd want to get #5208 done, or else this will seem like a buggy experience, I think.

We've just had another report of this in a Play Store review: https://chat.zulip.org/#narrow/stream/48-mobile/topic/appfollow/near/1413737

chrisbobbe avatar Aug 01 '22 21:08 chrisbobbe

This came up a couple of times recently. Both were specifically about setting the avatar:

  • in 2024-06: https://chat.zulip.org/#narrow/stream/137-feedback/topic/Favorite.20editor/near/1836540
  • and in 2024-08 indirectly: https://chat.zulip.org/#narrow/stream/137-feedback/topic/The.203.20top.20features.20of.20your.20dreams/near/1926811 (though I think in that case having this feature wouldn't have solved the user's needs — they'd still want to set the avatar for all users in their realm up front using the API)

gnprice avatar Sep 05 '24 21:09 gnprice