Media library: show the name of a website item, address small under it #322

Closed
opened 2026-11-18 09:53:37 +00:00 by vivy · 1 comment
Owner

Product owner, panel test on 10.4.80.205 (dev 56dd99c), 2026-11-18 — screenshot on GRI-2051.

What he sees: a website item in the media library reads

Campus AM LesRooster — url (—) https://snor.kobam.be/public/digitalsignage/index.php?hash=547CF97F-…

The name, the kind, an empty size (—) and the full address all run together on one line.

Cause: MediaLibraryScreen.tsx:360 renders every non-document item as {name} — {kind} ({formatSize(size)}) {describe(item)}, and describe() returns the whole URL for kind === 'url' (line 40). A URL item has no size, so it shows (—).

Wanted (same shape as #320 for the playlist):

  • Line 1: the item name, as the main text.
  • Line 2, small and muted: the address, as a link that opens in a new tab (rel="noopener noreferrer"), long addresses wrap or are cut with an ellipsis and the full one in title.
  • No url (—): a website has no file size, so the size part is left out for url items. A small "Website" tag may replace the kind word.

Scope: panel only, no server or database change. Keep the other kinds as they are, except that they may use the same two-line layout if that is simpler.

Done when: a Vitest test renders a url item and finds the name, the address as a link with the right href, and no (—).

Related: #320 (same problem in the playlist).

Product owner, panel test on 10.4.80.205 (dev `56dd99c`), 2026-11-18 — screenshot on GRI-2051. **What he sees:** a website item in the media library reads > Campus AM LesRooster — url (—) https://snor.kobam.be/public/digitalsignage/index.php?hash=547CF97F-… The name, the kind, an empty size `(—)` and the full address all run together on one line. **Cause:** `MediaLibraryScreen.tsx:360` renders every non-document item as `{name} — {kind} ({formatSize(size)}) {describe(item)}`, and `describe()` returns the whole URL for `kind === 'url'` (line 40). A URL item has no size, so it shows `(—)`. **Wanted** (same shape as #320 for the playlist): - Line 1: the item **name**, as the main text. - Line 2, small and muted: the address, as a link that opens in a new tab (`rel="noopener noreferrer"`), long addresses wrap or are cut with an ellipsis and the full one in `title`. - No `url (—)`: a website has no file size, so the size part is left out for `url` items. A small "Website" tag may replace the kind word. **Scope:** panel only, no server or database change. Keep the other kinds as they are, except that they may use the same two-line layout if that is simpler. **Done when:** a Vitest test renders a `url` item and finds the name, the address as a link with the right `href`, and no `(—)`. Related: #320 (same problem in the playlist).
vivy closed this issue 2026-11-18 11:00:36 +00:00
Author
Owner

Landed in dev with PR #324 (name on line 1, address as a link on line 2, no url (—)).

Landed in dev with PR #324 (name on line 1, address as a link on line 2, no url (—)).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage#322
No description provided.