Page MenuHomePhabricator

Patroller Tasks: user information popup dialog
Closed, ResolvedPublic

Assigned To
Authored By
Dbrant
Aug 8 2023, 5:36 PM
Referenced Files
F37671809: User information.png
Sep 8 2023, 1:14 PM
F37670678: Screenshot_20230907-153749_Wikipedia Dev.jpg
Sep 7 2023, 10:47 PM
F37670679: Screenshot_20230907-153820_Wikipedia Dev.jpg
Sep 7 2023, 10:47 PM
F37670312: User information modal.png
Sep 7 2023, 4:16 PM
F37666384: Group 5555.png
Sep 6 2023, 12:58 PM
F37160430: User information modal.png
Aug 29 2023, 11:52 PM
F37543168: Menu.png
Aug 29 2023, 11:52 PM

Description

The designs call for a small popup dialog that contains certain bits of user information (Tenure, Edit Count).

When tapping on any user name in the "List of edits" screen, it should pop up a menu that includes an option to see "User information". When that option is selected, this popup is shown.

  • When the dialog is shown, it can make an API call to get the user's tenure and (global) contributions.

5. Tapping username opens menu6. 'User information' from menu
Menu.png (720×360 px, 50 KB)
User information modal.png (720×360 px, 34 KB)
  1. Tapping username opens menu
  • Tapping on the username button will display a menu with the following options:
  • View user page
  • View talk page
  • User information
  • View user contributions
  • Thank
  1. User information' from menu
  • User information
  • Taping this option from the menu opens a modal with the editors ‘Tenure’, and ‘Edit count’.

APK: https://github.com/wikimedia/apps-android-wikipedia/pull/4160/checks

Event Timeline

Dbrant triaged this task as Medium priority.Aug 8 2023, 5:36 PM
cooltey added a subscriber: OTichonova.

Hi @OTichonova

The user information dialog implementation is completed, please download the APK from the ticket description, thanks!

Hi @cooltey, thank you! Just one question below.

User information modal
Group 5555.png (863×786 px, 83 KB)

Hi @OTichonova

Hi @cooltey, thank you! Just one question below.

User information modal
Group 5555.png (863×786 px, 83 KB)

Yes, will do.


Another question:
Feedback from @Dbrant about the wording on the user information dialog.
https://github.com/wikimedia/apps-android-wikipedia/pull/4168#discussion_r1317356160

Are we sure everyone knows what the word "Tenure" means? Would it be simpler if we just say "Joined Wikipedia nnn years ago"? Or even "Joined Wikipedia on [date]" (in the standard date format)? This way we wouldn't need to hand-craft unnecessary strings and logic for time spans.

It actually makes sense to me that in the translated zh-tw string, the text has been translated to a word that might confuse users.

Would it be possible to change Tenure to Joined Wikipedia on [date]?

cc @JTannerWMF

Hi @cooltey! The updated user information modal.

User information modal.png (720×360 px, 34 KB)

Hi @OTichonova

It looks like the wording is slightly long in this case if we choose to use MMM dd, YYYY here.

Maybe we need to:

  1. Shorten the horizontal padding to 12dp to keep the word in a single line.
  2. Shorten the wording: for example: Joined on.
  3. Customize the short date format to MM/dd/YY
  4. Adjust the layout to fit the text and also the date.
Screenshot_20230907-153820_Wikipedia Dev.jpg (2×1 px, 79 KB)
Screenshot_20230907-153749_Wikipedia Dev.jpg (2×1 px, 79 KB)
12dp horizontal padding24 horizontal padding

You can download the latest APK from the ticket description to see the changes.

cc @JTannerWMF

Hi @cooltey, thank you for writing this out!
I wouldn't touch the padding in this case and as you mentioned it would be good to have consistency of how the date is displayed throughout the app.

Maybe we can change the text to 'Account from:'
I was looking at 'Joined on:' and I think it might be a little unspecific.

User information.png (720×360 px, 34 KB)

Hi @cooltey, thank you for writing this out!
I wouldn't touch the padding in this case and as you mentioned it would be good to have consistency of how the date is displayed throughout the app.

Maybe we can change the text to 'Account from:'
I was looking at 'Joined on:' and I think it might be a little unspecific.

User information.png (720×360 px, 34 KB)

@OTichonova
Done! Please download the latest APK to see the change. Thanks!