Page MenuHomePhabricator

Decide on technology for Living Style Guide
Closed, ResolvedPublic

Description

Given the proposed structure of having controls include their own documentation as part of their code, but also needing non-control based sections, like iconography, color, and layout rules, we need to finalize on a technology for rendering dynamic and static states of controls, their write-ups, and the code used to generate them.

existing artifacts
https://tools.wmflabs.org/oojs-ui/oojs-ui/demos/index.html#widgets-mediawiki-vector-ltr
https://tools.wmflabs.org/styleguide/desktop/index.html

There would be many benefits from the tool residing within mediawiki, but we'd have to weigh the pros and cons, especially in light of the eventual goal of having the LSG evolve into a tool similar to Polymer designer

Related Objects

Event Timeline

Jaredzimmerman-WMF assigned this task to werdna.
Jaredzimmerman-WMF raised the priority of this task from to Needs Triage.
Jaredzimmerman-WMF triaged this task as High priority.
Jaredzimmerman-WMF updated the task description. (Show Details)
Jaredzimmerman-WMF changed Security from none to None.

@violetto can you create a pholio mockup, with the screen designs you have for this, and attach it to this task so Andrew can see the files. thanks!

I've started work on a MediaWiki extension that allows us to include OOUI components, and the code used to generate them, on wiki pages.

Obviously it needs a lot of work before it can get to prime time. It's on GitHub right now if you want to try it.

And there's now a live demo (read only right now because of XSS).

And there's now a live demo (read only right now because of XSS).

Nice!

I looked exhaustively at every documented configuration option for the subset of OOUI implemented in PHP, and none of them seem to trust any of the parameters passed into them. That is, they safely escape all parameters so there are no XSS issues.

I've therefore enabled open registration (with a CAPTCHA to avoid spam). If you can find an XSS, you'd better let me know about it!

In other progress, I've implemented the possibility to add items to group elements (currently the only group element available is a button group), and refactored extensively and written unit tests.

Live demo is now on a living-style-guide-specific skin.

Bam!

this is looking great, I'm super excited to see this progress.

We now have most of the OOUI Widgets converted to OOUIPlayground demos. Going to add some subtasks for remaining bugs.