Page MenuHomePhabricator

B4. Update existing TOC to use OOJS-UI
Closed, ResolvedPublic5 Estimated Story Points

Assigned To
Authored By
Mattflaschen-WMF
Apr 22 2015, 6:29 PM
Referenced Files
F189409: toc spacing.jpg
Jul 6 2015, 10:09 PM
F188590: Screen Shot 2015-07-03 at 5.36.04 PM.png
Jul 4 2015, 12:42 AM
F188572: Screen Shot 2015-07-03 at 3.44.58 PM.png
Jul 4 2015, 12:42 AM
F188574: Screen Shot 2015-07-03 at 4.54.34 PM.png
Jul 4 2015, 12:42 AM
F188576: Screen Shot 2015-07-03 at 3.45.11 PM.png
Jul 4 2015, 12:42 AM
F188588: Screen Shot 2015-07-03 at 5.35.38 PM.png
Jul 4 2015, 12:42 AM
F188566: Screen Shot 2015-07-03 at 4.34.05 PM.png
Jul 4 2015, 12:42 AM
F188570: Screen Shot 2015-07-03 at 3.50.56 PM.png
Jul 4 2015, 12:42 AM

Description

Since this is JS-only functionality (and most of it will have to be, especially once search is added), it's a good use case for OOJS-UI. First we need to port over the existing functionality.

Related Objects

StatusSubtypeAssignedTask
Resolved DannyH
Resolved DannyH
OpenNone
OpenNone
InvalidNone
OpenNone
OpenNone
Resolvedmatthiasmullie
OpenNone
OpenNone
OpenNone
DuplicateNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
Resolvedmatthiasmullie
Resolvedmatthiasmullie
OpenNone
OpenNone
Resolvedmatthiasmullie
DeclinedNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedMooeypoo
ResolvedMooeypoo

Event Timeline

DannyH renamed this task from Update existing TOC to use OOJS-UI to A9. Update existing TOC to use OOJS-UI.Apr 22 2015, 8:04 PM
DannyH moved this task from Current workboard to Untriaged on the Collaboration-Team-Triage board.

Punting this back to backlog, it's too big for right now.

DannyH renamed this task from A9. Update existing TOC to use OOJS-UI to B4. Update existing TOC to use OOJS-UI.May 6 2015, 8:45 PM

Change 209671 had a related patch set uploaded (by Mooeypoo):
[WIP] Create an OOUI ToC widget

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

Change 209671 merged by jenkins-bot:
Create an OOUI ToC widget

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

Checked http://en.wikipedia.beta.wmflabs.org/wiki/Talk:ET3 and compared with https://www.mediawiki.org/wiki/Talk:Flow_QA in Chrome 43.

Note: In screenshots, Talk:Flow QA refers to mediawiki; Talk:ET3 refers to beta.

  1. mediawiki
    • 'Newest topics' label is not bold
    • hovering over topics make topics blue on the grey background
    • selected/viewed topic is indicated in bold; in beta - in blue
    • down-pointing arrow is different

Screen Shot 2015-07-03 at 4.34.05 PM.png (346×1 px, 40 KB)

Screen Shot 2015-07-03 at 5.35.38 PM.png (437×1 px, 51 KB)

Screen Shot 2015-07-03 at 5.36.04 PM.png (312×1 px, 31 KB)

beta
Screen Shot 2015-07-03 at 3.50.56 PM.png (563×1 px, 70 KB)

  1. mediawiki displays tooltips for 'Newest topics' & 'Recently active topics' - beta does not display them.
  1. mediawiki: icons for 'Newest topics' & 'Recently active topics'

Screen Shot 2015-07-03 at 3.44.58 PM.png (275×1 px, 61 KB)

Screen Shot 2015-07-03 at 4.54.34 PM.png (172×1 px, 30 KB)

beta swaps the icons for 'Newest topics' & 'Recently active topics'

Screen Shot 2015-07-03 at 3.45.11 PM.png (229×1 px, 41 KB)

Screen Shot 2015-07-03 at 5.10.26 PM.png (190×1 px, 28 KB)

  1. After selecting a different sort order

mediawiki does not change the background for a previously selected option.

beta indicates the previously selected order by changing the background color and providing the same icon for both options 'Newest topics' & 'Recently active topics'

Screen Shot 2015-07-03 at 4.53.24 PM.png (260×1 px, 37 KB)

Screen Shot 2015-07-03 at 4.53.57 PM.png (179×1 px, 28 KB)

  1. mediawiki - when a selection is made from 'Browse topics' - no page scrolling is noticeable.

beta - the scrolling is present. Note: checked in the Chrome(Mac) browser.

Change 223072 had a related patch set uploaded (by Catrope):
Follow-up a16357b8c5: fix order icons

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

Change 223072 had a related patch set uploaded (by Catrope):
Follow-up a16357b8c5: fix order icons

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

Fixes #3 and #4 from Elena's comment.

Re #1: the style is a bit different, but I believe that's intended

Re #5: I believe this is intended too, but I'm not sure

Re #2: good point

Change 223072 merged by jenkins-bot:
Follow-up a16357b8c5: fix order icons

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

There are two things that still need to be corrected.

#1 - When you choose an item in the ToC, it should bring you to a point that's just a little above the top of the topic header. Right now, depending on which item you choose, you get a few different results. The screenshot shows the correct spacing:

toc spacing.jpg (346×741 px, 149 KB)

#2 - The ToC item that you're currently on needs to be in bold, so that it's easy to keep track of where you currently are while you're scrolling up and down in the ToC. The item needs to stay bold while you scroll. It should also line up under the floating bar, to indicate that the bar is showing ToC items as you scroll.

Change 223472 had a related patch set uploaded (by Mooeypoo):
Correct placement of the scroll when we scroll to topic

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

Change 223472 merged by jenkins-bot:
Correct placement of the scroll when we scroll to topic

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