Last modified: 2014-09-16 17:28:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72433, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70433 - componentize compact personal bar code into general list control
componentize compact personal bar code into general list control
Status: NEW
Product: MediaWiki
Classification: Unclassified
MediaWiki UI (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-05 06:00 UTC by Jared Zimmerman (WMF)
Modified: 2014-09-16 17:28 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jared Zimmerman (WMF) 2014-09-05 06:00:30 UTC
Take compact personal bar code and integrate generalized version as mediawiki.ui component
Comment 1 Jon 2014-09-05 08:32:17 UTC
Please provide documentation for this and examples of where it is being used outside this project.

* Is this mw-ui-menu?
* When does one use this element?

Flow has menus and it would be good to understand if they are different and if so why they are different.
Comment 2 Jared Zimmerman (WMF) 2014-09-05 17:56:01 UTC
With small changes (click rather than hover), this is the start of the dropdown list control, which is required extensively in preferences and special pages.
Comment 3 Gryllida 2014-09-06 03:34:53 UTC
How does this overlap with list controls OOjs UI already has?
Comment 4 Matthew Flaschen 2014-09-09 04:31:00 UTC
(In reply to Jon from comment #1)
> Flow has menus and it would be good to understand if they are different and
> if so why they are different.

It seems to be mostly the same as the Flow Newest topics/Recently active topics menu.  Although the Compact Personal Bar has a lot more items, it's more similar than different:

* Drop down menu
* Multiple choices
* One of the choices shows when the menu is not being hovered/clicked.  (For the sort menu, the current selection shows.  For CPB, your username link shows)
* There is an icon on the left

The only noticeable difference (other than styling) is that the CPB has special behavior if you click the displayed item (rather than hovering).  I.E. it goes to your user page.

The Flow ... menus are different.
Comment 5 Jared Zimmerman (WMF) 2014-09-09 05:42:56 UTC
Matt, I think we're saying the same thing, the CPB *is* a dropdown list, for mw.ui we just need to remove the hover expand behavior (but keep a hover behavior to be consistent with other controls) and expand the menu on click. My point was that its up to the devs to decide if it makes sense to bring it in to core and make some changes to it or make a new component from scratch with the same styling.
Comment 6 Matthew Flaschen 2014-09-09 08:19:34 UTC
Deploying a new select box control everywhere will be complex.

It can't be done with just "normal" styling and the standard element (e.g. <input>) like textboxes were.  I'm pretty sure it can't be done with even tricky styling like the checkboxes (CPB doesn't use <select> + tricky styling, but a nested structure with multiple elements per option, built around <li>).

Also, CPB doesn't have to deal with the issue of actually submitting a <select> control.  Although it's an drop-down, you don't actually submit a form; you're just clicking a well-styled link.

Other drop downs/lists in core (the preferences and special pages you mentioned) do have to submit.

Thus, I don't think it should block setting the global to true.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links