Summary
Build the frontend code components needed for displaying user information card data.
Background
- An API has been created to providef user information card data (T386434: UserInfoCard: Add API endpoint in CheckUser extension)
- A WIP patch to add a button for opening the user info card is here https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/1141846. This is not the final approach we'll use for adding the button, but can be a useful starting point for the Vue frontend work. Adding the button properly will be done in T393411: UserInfoCard: Display button that opens the popover
- The popover should present information based on the API feed. See T384725: [Epic] WE4.2.18 UserInfoCard experiment for assisting patrollers and moderators for the designs.
User stories
When I click the user info icon, I should see a popover card with helpful contextual information about the user.
Technical notes
- Should build on top of https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/1141846
- Should use the Popover component in Codex T363375: [EPIC] Popover: Add Popover component to Codex)
Vue components
- Username
- Gender
- Date joined (local wiki)
- Active blocks (local blocks, across all wikis)
- Recent past blocks (local blocks, across all wikis, only show blocks made in the last year)
- Global edit count
- Local edit count
- Locally reverted edits
- New articles created (local)
- Thanks received (local)
- Thanks given (local)
- Number of CheckUser investigations (local)
- Date of last CU check (local)
- Groups (local)
- Active wikis
- Graph showing editing activity over last 60 days (local; using Growth team's sparkline code)
- Number of edits made over last 60 days (local)
Menu:
- View user contributions (links to Special:Contributions)
- View global account information (links to Special:CentralAuth)
- Add user page to Watchlist
- Block user (links to Special:Block)
- Turn off feature (links to Special:Preferences)
Acceptance criteria
- Frontend code exists and is functional in displaying the popover component with user information card data when an icon next to a username is clicked