On Fri, Mar 1, 2013 at 2:15 PM, Jean-Vincent Drean <[email protected]> wrote:

> On Fri, Mar 1, 2013 at 12:34 PM, Denis Gervalle <[email protected]> wrote:
> > Hi,
> >
> > Like Vincent, I do not really think we have thoroughly worked
> > our templates. IMO, templates should not be considered a good base for
> > implementing UI extension point blindly.
> >
> > Currently templates were closely linked with our distributed skin. When
> we
> > have introduce Colibri, new templates were added, especially to support
> the
> > new content menu for example, and other were ignored, left over since no
> > more useful. Do you consider UI extension point to be closely linked with
> > our skin ? What would happen when we implement the bootstrap based skin ?
> >
>
> When I look at the list of UIXP I pasted I don't see it closely
> related to a specific skin.
>

You should look closer, almost all are related to the way our current skin
is. Let takes more examples:

platform.template.menuview.*
platform.template.contentmenu.* implies we have 2 defined sets of menubars,
not less, not more

platform.template.shortcuts.* was inexistant before colibri, why wouldn't
it be remove next time ?

platform.template.*inline.* implies these * are displayed separately and
inline, by the way, you mention only comments, but there are others...

Do you really see those as semantic UIX ?


> Some names are not perfect, but again I don't think we can afford
> renaming them (because of our skin overriding mechanism).
>

This is not a matter of names, this a matter of semantic IMO.
Or, you consider UIX are linked to Skin. We will soon support Skin
extension (I hope), so we may depends on it. This way, you need a different
extension for each kind of skin (you may mutualize the source somewhat of
course). This could be a way to go.


> What problem do you foresee with a bootstrap based skin ? Would it be
> difficult to keep current template names ?
>
> > Just think about the proposal from Cathy, there is no more left panels...
>
> Does the fact that the proposal have a single panel in the left column
> means that we should consider dropping the panel feature ?
>

This seems to be the idea, have I missed something ?


>
> > but an applications panel or whatever, how do you expect to support
> > platform.template.leftpanels.top, platform.template.leftpanels.bottom,
> what
> > would be there meaning ?
> >
>
> We could drop leftpanels.vm and rightpanels.vm and make the panel app
> hook itself to platform.template.endpage.top.
>

You start thinking about the skin in terme of UIX, and you start minimizing
your templates. Very good.
This is therefore important not to create these UIXP now.


>
> > For sure doing 1) is harder, but creating truly semantic UIXP could have
> > real advantage for maintenance and compatibility of code that use those
> > UIXP. So I would really prefer a few initial set of those semantic UIXP
> to
> > start with, than that long list of not necessarily useful  and meaningful
> > ones. And, at least, I would like to read more opinion to consider 2).
> >
>
> 1) is harder and I'm afraid it can start endless discussions :)


When we add a function for an API, we now have both a deprecation strategy
and an @Unstable annotation to prevent further difficulties. This does not
prevent discussion !
We lacking deprecation for UIX and we have not sufficiently think about it.
So, until we see a nice way to go, please let's only create UIXP for what
we are sure it will be both useful and supported later.
I am sure we could find some semantic UIXP that will not really suffer
discussion like:

- UIXP to add a menu for global feature
- UIXP to add a menu for content feature
- UIXP to add a menu for edit content feature
- UIXP before/after header, footer, content
...

All these concern UI element that will not be dropped, even if we increase
our UI usage. Note that I have not suggested something like UXIP
before/after title, hierarchy,... since those could be implemented as a
UIXP themselves.

This is not endless discussion that we needs, this is more some reflexion
on how we expect to use UIX in the near future.
Starting to think about the implementation of Flamingo skin with that in
mind would probably be a good start. And to avoid lengthy discussion, start
with the obvious, just a few UIXP at a time, taking care of the potential
risk, and exposing some potential usage. I see not point to add a UIX
without at least a small idea on what it could be used for.

Thanks,



>




> JV,
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to