Page MenuHomePhabricator

Timeless: avoid doubling up on categories in the html
Closed, DeclinedPublic

Description

Currently categories are duplicated in the sidebar and the footer, with only one lot shown based on device width. It would be nicer if the duplication could be avoided, and would allow T181344: HotCat compatibility for Timeless skin to be solved without changes to the script itself (except perhaps adding Timeless-specific styles).

One possible approach would be to treat the categories sidebar chunk like the others:

  • Desktop-full and dektop-mid: Placed in the sidebar
  • Desktop-small: Heading goes up to the top of screen, contents available via hover -- which can be styled to take up the full width of screen, with multiple items per line (rather than one-per-line, like in the views with sidebars)
  • Mobile: An icon shown at the top of screen, contents shown on click

I have experimented with this in https://gerrit.wikimedia.org/r/#/c/430854/ ; Some open questions are:

  • Are the mobile/desktop-small approaches acceptable?
  • What should the icon be for mobile view?
  • Where should HotCat-specifc styles go?
    • Probably in HotCat itself, but they are only needed (or rather, not needed) for certain viewport widths -- so if the mobile/desktop small cuttoff values ever get changed, then that's another place where they need to be updated. Unless there's a way to make the cuttoff values available to the HotCat script?

Also relevant:
T160645: Better category handling in Timeless
T193921: Timeless: Use standard category output instead of (or as well as) unique sidebar approach

Event Timeline

Vvjjkkii renamed this task from Timeless: avoid doubling up on categories in the html to kkdaaaaaaa.Jul 1 2018, 1:11 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
CommunityTechBot renamed this task from kkdaaaaaaa to Timeless: avoid doubling up on categories in the html.Jul 2 2018, 4:26 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)

Withdrawing this task as T198026: Sort and prioritise categories in the sidebar seems like a better idea.