Live Data new view and improvements to Card view

Hi everyone,

During the XWiki SAS Seminar of 2026 I started working on introducing a new view types for Live Data and also some improvements to Card view so it can be used as a gallery. It’d be nice to have some sort of feedback on them before I start a PR.

List View

Accessible like the other layouts, throught the kebab button. It presents users with a very compact list of all the entries in a table. The main objective is to have it as a very lowkey, compact view for space restricted UIs. All columns can be toggled on or off but the main column names are not shown.

Screenshots:

Gallery View
It’s an improved card view, with a new ‘poster’ option for the images that are featured inside the card

Properties:

Card view:

Text may also be used as a cover:

WDYT? Any feedback is welcome.
Thanks

+1 for the two new layouts.

One thing that is not explicit is, do you wish to have these layouts bundled in the standard distribution?

Yes, for me they should be included since they are very basic.

The question is actually, are they sufficiently generic to be beneficial to most users?
And I believe the answer is also yes.
Especially as they won’t clutter the UI too much (just two additional entries on a dropdown).

Hi @tkrieck, nice work! +1 overall.

I asked Claude Code to review the proposal (posts + screenshots + current Live Data code) to surface possible issues/questions that we need to answer/evaluate. Here’s the result:

Bundling in XS

  • Code-wise it’s cheap: non-table layouts are loaded on demand via the component store, so a List layout costs nothing to users who don’t use it. So +1 to bundle it.
  • UI-wise: the default layouts (liveDataConfiguration.json) apply to every Live Data in the wiki (including admin livetables). From the screenshot, “list” is added to all menus. Wouldn’t it be better to have it opt-in via the layouts macro parameter (or default only where it’s meant for, i.e. space-restricted UIs)? Which concrete places do you plan to use it in?

List view

  • No property labels: “1994 • Drama” is ambiguous for sighted users and has no labels for screen reader users. Could we have visually-hidden labels / aria-labels (or a tooltip)?
  • Filtering and sorting are only reachable via the dropdown panels (no header row). Fine, but should be stated.
  • Is inline editing / adding entries supported, or is it read-only?
  • Small thing: “list” is lowercase in the menu (missing translation?).

Cover / Gallery (Cards)

  • Good that it’s an option of Cards rather than a new layout.
  • From the screenshot the cover is selected by the viewer in the Properties panel. Can the author configure it too (macro parameter / meta property, e.g. a cover setting on the cards layout)? Otherwise each visitor has to enable it to see the gallery. This would also mean a Live Data API/meta change that needs to be specified (name, semantics, @since, doc).
  • The “Cover” radio is shown on every property row, even in Table layout where it has no effect. Should it only appear when the Cards layout is active?
  • “Use cover” checkbox + radio feels redundant: a “None” option in the radio group could replace the checkbox.
  • The cover property can be hidden (Poster is unchecked in the screenshot). Makes sense, but may be confusing.
  • Images: are they requested resized server-side (width/height params) and lazy-loaded? With large page sizes this could matter. Also how are non-matching aspect ratios handled?

Tests: unit tests for the new layout/option (like LayoutCards.test.js) + at least one functional test.

WDYT?

Thanks

It’s indeed added to every menu and we could add it only to the macro parameter, but I fear it would reduce its visibility quite a bit. The macro parameter doesn’t offer a picker, adding a hint would clutter the macro UI too and having this option only listed in documentation would hide it too much IMO.

I’d be ok for having it only on macro paramenters provided it features a picker.

Agreed

I’ll check for ways of doing this while keeping the UI clean.

Read-only

Claude might have missed it and I did too.

It should be configurable by the author, I’ll check if Claude did it otherwise I’ll include it in the proposal.

It appears only when selecting Card View

They disapear when “Use Cover” is disabled. I’ll try to have it as a “No Cover” radio option, the UI wouldn’t change too much on the number of elements though (but I agree it would be more streamlined).

I agree. But I don’t see a nicer way of doing it without introducing a mandatory, dedicated, image property when selectiong “Use Cover”.

I need to check this, thanks for the reminder.

Also a good reminder, I’ll check if CC included those.

Thanks for the feedback!

Thanks @tkrieck!

Good point, the layouts parameter is just a free-text string today, so making it opt-in would indeed hide it. Together with @mleduc’s remark, I’m fine with having it in the default list.

Just to clarify, my point was only that it should be mentioned in the documentation. Having filtering/sorting only in the dropdown panels sounds fine for a compact view.

OK. Then how does List view behave for Live Data that have action columns (edit/delete/rights) or row selection for bulk actions (e.g. Deleted documents, Users)? Are the actions still reachable, or would users need to switch back to Table?

Isn’t hiding the cover property actually what we want by default? Otherwise the image would be displayed twice (as cover and as a field).

For the author-configurable cover, could you post the proposed meta/parameter name and semantics here once you’ve checked, since it’s an API change?

Thanks

-1 as it would hurt discoverability, and I don’t see the point of developing a feature that no one would use.

At least in a first step, I’m personally fine with filtering and sorting being only accessible through the advanced panels.
But definitely +1 to find a way to improve that in a second step.

I would reconsider this, feels a bit arbitrary to be able to use edit/add features in some layout and not in others.
Or if we can avoid it, we need to communicate this clearly to users.

Note that this might raise some code architecture challenge as for now no layout has dedicated settings (if I remember correctly).

As long as dimensions are provided to the query, image provided as attachment should be resized on demand.

Looks great, thank you for working on this! I think the List view would be important to unlock some use cases like using Live Data in a panel. For the list view, I could imagine that an important use case would be displaying just one column, so make sure that accessibility labels don’t make this use case harder to use than it needs to be. I’m wondering also if in particular for a single property, some list item icon shouldn’t be added to improve readability for cases where a list item doesn’t fit in a line (I assume it would wrap in that case?). Apart from that, I mostly agree with what was already said.

Hi everyone,

Thanks for the feedback! I’ve worked on most of the points raised, so here is an update with screenshots.

If you want to check them, both branches have their draft PR at:

From now on the post is CC assisted


What changed since the first post:

  • Labels for screen readers (@vmassol, @MichaelHamann): each secondary value is labelled with its property name (“Genre:”, “Director:”…), hidden on screen but read by screen readers. The main value isn’t labelled, so that a list showing a single property reads like a regular list.
  • Long lines (@MichaelHamann): the values cut off by the end of the line show their full text as a tooltip, and when only one property is displayed, a marker is displayed before each entry.
  • Editing (@mleduc): the List is no longer read-only. Values can be edited like in the other layouts, and the List gets the same edit mode: the edit mode button in the top bar, a delete action per entry, and “Add entry” at the end of the list. In edit mode, empty values are displayed so that they can be filled, and the name of each property is displayed above its value.

Ellipsis on long lines

Single property entries

Edit mode (note the labels on each field)

When editing
I’m still not 100% sure on the UX on this seems a bit convoluted, but at least it works.

Card cover

What changed since the first post:

  • “No cover” option (@vmassol): the “Use cover” checkbox is replaced by a “No cover” option in the same group as the cover option of each property.
  • Hidden properties: a hidden property can’t be used as the cover: its option is disabled, and hiding the property used as the cover removes the cover. When the cover is used, its property isn’t repeated in the card.
  • Configurable by the author (@vmassol): proposal below.
  • Image size (@mleduc): when the cover is an attachment of the wiki, it’s requested at the width of the card (?width=, rounded up to 100px so that the cards share the same resized images), so the server resizes it instead of sending the full image. Images were already lazy-loaded.

“No Cover” changes
Note the disabled “Cover” radio on the “Seen” property and also the new “No cover” option.

API proposal: coverProperty

A new coverProperty parameter of the Live Data macro, @since 18.10.0RC1, with the id of the property used as the cover of the cards:

{{liveData
  id="movies"
  properties="doc.title,poster,genre,year"
  layouts="cards,table"
  coverProperty="poster"
  source="liveTable"
  sourceParameters="className=Movies.Code.MoviesClass"
/}}
  • It’s stored as a coverProperty field of the cards layout descriptor, which can also be set in the advanced (JSON) configuration, like the existing titleProperty: {"meta": {"layouts": [{"id": "cards", "coverProperty": "poster"}]}}.
  • The macro parameter wins over the JSON field. It doesn’t restrict the available layouts, and it’s ignored when the Cards layout isn’t available, or when the property is hidden.
  • It works from scripts too: $services.liveData.render({..., 'coverProperty': 'poster'}).
  • Users can still change the cover (or choose “No cover”) from the Properties panel; their choice is kept in the URL like the other Live Data settings.

WDYT about the name and the semantics?

Open questions

  1. Long lines in the List: values are cut off with “…” (with the full text as a tooltip). Should they wrap instead, or should it be an option?
  2. Cover framing: the cover has a fixed 16:9 frame and the image fills it, so portrait images (like movie posters) are heavily cropped. Should there be a “fit” option that shows the whole image?
  3. coverProperty: OK with the proposal above?

Thanks!