feat(manager): Media page, photo field for products and categories (platform-v2 step 5.2)

- Management → Media (src/pages/media/): every picture and video, search,
  pictures / videos, batch upload (many files or drop on the page) with a
  result per file, details (preview, display name, kind, resolution, length,
  file size, uploaded file, when / who, the sizes made, what uses it, delete
  off while used).
- MediaField: upload on the spot (into the library and set at once), pick
  from the library (MediaPicker, which can also upload), remove; after an
  upload on the spot "Name it after the product / category" renames it in
  Latin letters. Used by the product editor and the category dialog.
- nav: `anyPerm` (any of the keys that manage pictures); the route guard uses
  the same rule. Product rows have test ids.
- @xenia/i18n: latin() (Greek to Latin, the way venues write it) + tests.
- tests: manager media.test.mjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 15:57:50 +02:00
co-authored by Claude Opus 5.5
parent 5ad4c4ef55
commit e09056a7a4
20 changed files with 810 additions and 57 deletions
+2
View File
@@ -30,6 +30,7 @@ import TabsPage from './pages/financials/TabsPage'
// Management
import ProductsPage from './pages/Management/ProductsPage'
import MediaPage from './pages/media/MediaPage'
import TablesConfigPage from './pages/Management/TablesConfigPage'
import StaffPage from './pages/Management/StaffPage'
import SessionsPage from './pages/staff/SessionsPage'
@@ -161,6 +162,7 @@ export default function App() {
{/* ── Management (Headquarters) ── */}
<Route path="management/products" element={<ProductsPage />} />
<Route path="management/media" element={<MediaPage />} />
<Route path="management/tables" element={<TablesConfigPage />} />
<Route path="management/staff" element={<StaffPage />} />
<Route path="management/sessions" element={<SessionsPage />} />