Page MenuHomePhabricator

Make ToolIcon compatible for special directories and hovering
Closed, ResolvedPublic3 Estimated Story Points

Description

The initial migration to Vue for the toolbar only affected the next and minimize options. When working on T349388, it was discovered that the Vue ToolIcon component was incompatible with the other toolbar options, like Mark as reviewed, Tags, Delete, etc.

A fix has already been implemented in the Gerrit patch. The objective of this task is to extract the relevant code from that patch and create a new patch with that fix only.

Acceptance Criteria:

  • ToolIcons use the resource loader appropriately.
  • There are no errors/changes in the toolbar.

Event Timeline

jsn.sherman set the point value for this task to 3.Oct 2 2024, 5:12 PM
Scardenasmolinar changed the task status from Open to In Progress.Dec 5 2024, 1:26 AM
Scardenasmolinar claimed this task.
Scardenasmolinar moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.

Change #1101131 had a related patch set uploaded (by Scardenasmolinar; author: Scardenasmolinar):

[mediawiki/extensions/PageTriage@master] Add specialDir prop to ToolIcon vue component

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

Switching out image paths on mouseenter/mouseleave to change icons is a somewhat outdated way of achieving hover and other icon states.

The standard way to do this in MW would be to define a ResourceLoader module with icon variants, and switch them out using CSS classes, and :hover for the hover states.

Thanks for the feedback! I'll do that.

Change #1101131 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Add useSpecialIcon prop to ToolIcon Vue component

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

jsn.sherman subscribed.

verified working on enwiki beta; leaving open until the train rolls out