Panel: split Media into Add media (default) and Media library with a left menu #268

Closed
opened 2026-11-16 08:29:34 +00:00 by vivy · 2 comments
Owner

Product owner request, 2026-11-16 08:25 UTC (GRI-2051): "media upload/add website and Media list in their own menu with upload/add website as standard screen when you click media. (this I want to be fixed as soon as possible.)"

Today

frontend-web/src/screens/MediaScreen.tsx is one page: upload, Add website (AddUrlForm) and the whole library list, under one heading "Media library". With many items the add controls and the list compete on one page.

Wanted

The Media section gets the same left sub-menu as Settings and Playlists (SectionNav / SectionLayout, #210):

Menu entry URL Content
Add media (default) /media Upload a file (with the upload % and conversion progress from #233) and Add website
Media library /media/library The list: documents with their pages, campus selector (#242), expand, delete
  • Clicking Media in the top bar opens Add media.
  • After an upload or Add website succeeds, the page says so and links to the new item in the library. It does not jump away by itself, so a colleague can upload several files one after another.
  • A conversion still running shows its progress on both pages.
  • Each page has its own URL, so the browser back button and a bookmark work.
  • A user with only view rights (no upload permission) sees only Media library, and /media falls back to it — same rule as SettingsSectionScreen.

Done when

  • Both pages exist with their own URL and the left menu, Add media is the default.
  • Tests: default page, fallback for a user without upload rights, upload success links to the library.
  • All gates green, branch up to date with dev.

Note: the test servers are frozen for the demo — merge to dev only, no deploy.

Product owner request, 2026-11-16 08:25 UTC (GRI-2051): *"media upload/add website and Media list in their own menu with upload/add website as standard screen when you click media. (this I want to be fixed as soon as possible.)"* ## Today `frontend-web/src/screens/MediaScreen.tsx` is one page: upload, *Add website* (`AddUrlForm`) and the whole library list, under one heading "Media library". With many items the add controls and the list compete on one page. ## Wanted The Media section gets the same left sub-menu as Settings and Playlists (`SectionNav` / `SectionLayout`, #210): | Menu entry | URL | Content | |---|---|---| | **Add media** (default) | `/media` | Upload a file (with the upload % and conversion progress from #233) and *Add website* | | **Media library** | `/media/library` | The list: documents with their pages, campus selector (#242), expand, delete | - Clicking **Media** in the top bar opens **Add media**. - After an upload or *Add website* succeeds, the page says so and links to the new item in the library. It does not jump away by itself, so a colleague can upload several files one after another. - A conversion still running shows its progress on both pages. - Each page has its own URL, so the browser back button and a bookmark work. - A user with only view rights (no upload permission) sees only **Media library**, and `/media` falls back to it — same rule as `SettingsSectionScreen`. ## Done when - Both pages exist with their own URL and the left menu, Add media is the default. - Tests: default page, fallback for a user without upload rights, upload success links to the library. - All gates green, branch up to date with `dev`. Note: the test servers are frozen for the demo — merge to `dev` only, no deploy.
Author
Owner

Assigned to prismancer directly (router had not picked it up after a few minutes). Order: #268 first — the product owner wants it as soon as possible. Then #269 and #270. All three: merge to dev only, the test servers are frozen for the demo.

Assigned to prismancer directly (router had not picked it up after a few minutes). **Order: #268 first** — the product owner wants it as soon as possible. Then #269 and #270. All three: merge to `dev` only, the test servers are frozen for the demo.
Member

PR #272 opened (dev <- feature/GRI-2140-media-add-library-split): split Media into Add media (default, /media) and Media library (/media/library), same left sub-menu as Settings/Playlists (#210). A user with no content_upload permission sees only Media library, /media falls back to it. Upload success stays on the page and links to the library. local-gates.sh --frontend-only green (prettier/oxlint/tsc/vitest 170 tests + build). CI running on the PR now.

PR #272 opened (dev <- feature/GRI-2140-media-add-library-split): split Media into Add media (default, /media) and Media library (/media/library), same left sub-menu as Settings/Playlists (#210). A user with no content_upload permission sees only Media library, /media falls back to it. Upload success stays on the page and links to the library. local-gates.sh --frontend-only green (prettier/oxlint/tsc/vitest 170 tests + build). CI running on the PR now.
vivy closed this issue 2026-11-16 10:15:19 +00:00
Sign in to join this conversation.
No project
No assignees
2 participants
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#268
No description provided.