Background
IP auto-reveal mode can be switched on or off from the tools menu in the sidebar.
Behaviour
From T374869: Design an auto-reveal mode for temporary account IPs:
- User clicks link in tools menu to enable and dialog displays
- Session duration can be set to 30 minutes or 1 hour
- User can disable the feature [...] by clicking the link in tools menu.
Skin support
From T385823: IP Auto-reveal: finalise remaining product specs:
- Which features should be available in which skins?
- Basic on/off functionality in all skins
- Ability to manage expiry time / see expiry warning in Vector
- Stretch goal: ideally manage expiry time/see expiry would also be in Vector legacy, Timeless and Minerva
Technical notes
Permissions
As specified in T385823, any user who has the IP reveal right (unless it was manually assigned) should be able to use IP auto-reveal mode. That means we will need a separate right for IP auto-reveal. The right will be assigned to specific groups in T386492: IP auto-reveal: Assign the IP auto-reveal right to user groups.
Acceptance criteria
- A user with IP reveal rights enabled (which may involve checking a preference), who also has the checkuser-temporary-account-auto-reveal right sees an IP auto-reveal link in their sidebar menu
- Clicking on the link launches a dialog as specified
- On choosing a duration, IP auto-reveal mode is switched on. Any page with Show IP buttons reveals the IPs automatically.
- Clicking the link again launches a panel as specified
- Choosing to extend the duration causes the expiry time to be updated
- Choosing to switch the mode off causes the mode to be disabled. Any new Show IP buttons will not be revealed automatically.
Note that, on switching IP auto-reveal mode off, the IPs that have already been revealed will stay revealed for duration configured in $wgCheckUserTemporaryAccountMaxAge.





