Hi everyone,
This proposal is a follow-up to UI improvements for Live Data's edit mode, focusing this time on edit mode’s integration in XWiki.
As a reminder, edit mode is currently reachable through a checkbox in the live data’s dropdown menu (when the source declares hasEditMode=true). A problem of this approach is that it’s basically hidden: a user in front of an editable live data has no indication that it supports edit mode at all.
For this problem, I’ve prototyped the following possibilities based on previous feedback:
1. An “in-place” edit button

The same pencil button that in-place editing displays next to section headings, but attached to the live data.
It reuses a UI element users already know, but it might be positioned akwardly (either on the right, moving the LD to the left, or on top which doesn’t look great). There’s also a concern around the in-place editing integration: clicking it should turn on in-place editing for the whole document for consistency, but it then displays a Save / Cancel bar for the page content that has no incidence on the LD itself.
2. Automatically enable when in-place editing is on
As an alternative, it’s possible to not rely on an explicit button but just turn edit mode on when the user clicks the page’s edit button (or another section’s edit button). It also displays a Save / Cancel bar that has nothing to do with the actual data of the LD, but at this point it’s expected by the user to see this bar (since they started edition of the document explicitly).
3. An edit action
The live data gets its own edit button in the top bar, left of the dropdown menu, which simply turns edit mode on and off.
It has no relation to the document’s edition, so there’s no Save / Cancel bar to explain away. It also doesn’t depend on page edition at all (meaning it could technically be used by users that have edit rights in the location holding the data while being restricted to read-only on the document showing the LD).
Maximized view
Another point to consider with edit mode is that the table can grow quite large when every property is displayed. Which is why an optional “maximized view” was suggested, making edit mode easier to use. When pressed, it would simply open the LD in a maximized popout, which is quite easy to do. The question is where to display the toggle:
a) a visible button in the top bar, next to the dropdown menu, always
b) a visible button in the top bar, next to the dropdown menu, but only for edit mode
c) an entry inside the dropdown menu, always
d) an entry inside the dropdown menu, but only for edit mode.

Conclusion
Personally, I’m +1 for having both 2 and 3, at the same time, and -1 for 1.
For the maximized toggle, +1 for a, +0 for c and -1 for the others (I don’t really see a point in hiding the feature outside edit mode).
What do you think? Don’t hesitate to add anything I might have missed.
Thanks.


