Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-02-07 Thread Jan Dittrich
I created an issue on phabricator for "CONSULTATION/PLAN: Managing Complex State and GUI on Mediawiki (e.g. for Wikidata/Wikibase UI)" https://phabricator.wikimedia.org/T157014 And added people who showed interest here as subscribes (hope that is fine) Jan

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-02-01 Thread Krinkle
On Mon, Jan 30, 2017 at 1:57 PM, Jan Dittrich wrote: > > State management and data/event propagation goes beyond of what OOUI can > provide, as far as I (Jan) know. So an obvious candidate was looking into > MVVM solutions of which the most well known is the React library. If considering React

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-02-01 Thread Jan Dittrich
Hi John, Thanks for sharing your evaluation and your experiences – and, in, particular, working examples. > So I'm curious... for something like Wikidata which is so different from > standard Mediawiki instances =(the rendering and editing experiences are > fundamentally different) what's stopp

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-02-01 Thread Jan Dittrich
> > Regardless of UI framework, for state management I'd strongly recommend > using redux , and after the fact pair it with > whatever UI framework you prefer. Yes, that (referred to as "State management" or so in my mail) may have been a bit buried under all the other stuf

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-02-01 Thread Jan Dittrich
> Many of these new JS libraries, such as React, have some very heavy > dependancies. Yes, this is true. The usage of such dependencies is often not connected to the way such frontends work, though. E.g. vue can be used without a loader and does not need an extra JSX compiler. It is often used wi

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-31 Thread Joaquin Oltra Hernandez
Hi Jan, Regardless of UI framework, for state management I'd strongly recommend using redux , and after the fact pair it with whatever UI framework you prefer. Here are some of the reasons for using it: - Very popular and widely used - Excellent documentation (see htt

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-31 Thread Jon Robson
I think at this point Mediawiki's frontend stack and its dependencies on RL and supporting user gadgets don't lend itself well to frameworks like React or Vue. With regards to moving away from jQuery UI your path of least resistance inside MediaWiki feels like it might be to use a library such as

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-31 Thread Jan Drewniak
Certainly a topic for the front-end standards group, but to give my two cents: Many of these new JS libraries, such as React, have some very heavy dependancies. React requires JSX which needs to be transpiled into JS, ES6 Class syntax which needs to be transpiled into ES5, which requires Babel and

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-31 Thread Derk-Jan Hartman
This discussion seems exactly what we have a Frontend Standards group for: https://www.mediawiki.org/wiki/Front-end_standards_group https://phabricator.wikimedia.org/project/profile/1616/ DJ On Mon, Jan 30, 2017 at 2:57 PM, Jan Dittrich wrote: > Hello Wikitext-l, > > ---

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-30 Thread Cyken Zeraux
Vue.js is becoming quite popular, and is more unrestrictive than other frameworks of its kind. Laravel is backing it, and overall, though young for V2, seems quite capable of solving UI problems elegantly. https://vuejs.org/ https://about.gitlab.com/2016/10/20/why-we-chose-vue/ On Mon, Jan 30, 2

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-30 Thread Bryan Davis
On Mon, Jan 30, 2017 at 10:17 AM, Isarra Yos wrote: > Er, what does this mean? What is MVVM? A bit of software pattern jargon: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel > On 30/01/17 13:57, Jan Dittrich wrote: >> >> Hello Wikitext-l, >> >> ---

Re: [Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-30 Thread Isarra Yos
Er, what does this mean? What is MVVM? On 30/01/17 13:57, Jan Dittrich wrote: Hello Wikitext-l, --- TL;DR: The Wikidata team is considering to use a MVVM/Single-State solution for Wikidata’s UI. What are requirements and concerns would be important to consider? -

[Wikitech-l] MVVM/Single-State solution for our UIs?

2017-01-30 Thread Jan Dittrich
Hello Wikitext-l, --- TL;DR: The Wikidata team is considering to use a MVVM/Single-State solution for Wikidata’s UI. What are requirements and concerns would be important to consider? --- Wikidata’s current UI is built on jQuery UI.