Page MenuHomePhabricator

Preserve open/collapsed state of the accordion [M]
Closed, ResolvedPublic

Description

Motivation

Patrollers use IP Information frequently would prefer the state of the accordion preserved when they frequent different IP contributions pages or refresh a page - they saves them an extra click in expanding the accordion every time they land on the contributions page.

Tech Specs
  • On load, check if the user preference is set and set the accordion to that
  • On opening/closing the accordion, set a user preference for that accordion state
Acceptance criteria
  • When a user visits the contributions page for any IP address, the IP Information accordion should stay open or closed based on their previous preference.
  • If the user changes the state of the accordion, this should be the new "remembered" state of the accordion.

Event Timeline

ARamirez_WMF renamed this task from Preserve open/collapsed state of the accordion to Preserve open/collapsed state of the accordion [M].Sep 29 2021, 4:32 PM
STran renamed this task from Preserve open/collapsed state of the accordion [M] to Preserve open/collapsed state of the accordion.Sep 29 2021, 4:42 PM
STran updated the task description. (Show Details)
ARamirez_WMF renamed this task from Preserve open/collapsed state of the accordion to Preserve open/collapsed state of the accordion [M].Sep 29 2021, 4:43 PM

Change 730017 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/IPInfo@master] Save user preference for infobox state

https://gerrit.wikimedia.org/r/730017

Change 730017 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Save user preference for infobox state

https://gerrit.wikimedia.org/r/730017

Verified that:

    • Opening/closing the accordion, set a user preference for that accordion state
    • When a user visits the contributions page for any IP address, the IP Information accordion stays open or closed based on their previous preference.
    • When the user changes the state of the accordion, that became the new "remembered" state of the accordion when the user refreshes the page or view any IP contribution pages
  • Tested on Chrome, Firefox, Safari, IE, Edge, and Opera.

Issue:
On IE when IP info has been collapsed, when screen is refresh IP info is open. Does not persist well in IE.

Screen shots of open/collapsed state:
https://en.wikipedia.beta.wmflabs.org/wiki/Special:Contributions/31.10.149.140

Screen Shot 2021-10-25 at 12.02.32 AM.png (1×2 px, 557 KB)
Screen Shot 2021-10-25 at 12.50.47 PM.png (1×2 px, 598 KB)

On IE when IP info has been collapsed, when screen is refresh IP info is open. Does not persist well in IE.

@imaigwilo can you file a task for this bug please? We may not prioritize it right now but good to have the bug documented.

@Niharika I have created the task for the bug.
Thank you.

Niharika moved this task from In Progress to Closed on the IP Info board.