feat: owner review 2 phase 3: Library on the web panel, photo trash and web upload (#11)
CI / Build and test (push) Successful in 7m25s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 10s
CI / PostgreSQL 16 integration (push) Successful in 5m20s
CI / PostgreSQL 17 integration (push) Successful in 5m22s
CI / Docker image (push) Successful in 50s
Release / Build, test and publish (push) Successful in 12m1s
Release / Server image (push) Successful in 1m26s

- Web panel Library: browse, view, delete sequences and photos, mass operations (analyse, proxies, thumbnails, verify, retag, delete, CSV). It never edits the video.
- Photo trash with tombstones (migration 0008): crash-safe delete and restore, hash-checked restore with reasons, and emptying only by an explicit fingerprinted job. Sync and uploads keep deleted photos deleted; an explicit "Upload again" brings one back.
- Upload from the web panel: in-house SHA-256 in a worker with a fail-closed self-test, capture time from EXIF, chunked, resumable; no folders.
- Desktop trash dialog with photo entries and Empty.
- Admin files are revalidated (no-cache + ETag).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #11.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-10-27 15:08:39 +01:00
1 parent af9eeaab9b
commit 9aa818ed47
283 files changed
+24922 -293

No files matched your search

+10 -5
View File
@@ -176,17 +176,22 @@ svg.append('</svg>')
with write(os.path.join(here, "icons.svg")) as f:
f.write("\n".join(svg))
# The web admin's icons (its own names -> this set's), as inline SVG strings for app.js and the pages.
WEB = {"dashboard": "Library", "users": "Users", "archive": "Archive", "jobs": "Jobs", "settings": "Settings", "logs": "Logs",
"menu": "Menu", "power": "Power", "moon": "Moon", "refresh": "Refresh", "close": "Close", "plus": "Plus", "copy": "Copy",
"search": "Search"}
# The web admin's icons (its own names -> this set's), as inline SVG strings for app.js and the pages. The dashboard keeps
# the four tiles of mockup Admin.html, so the panel's Library (owner review 2, R6) is drawn as a photo.
WEB = {"dashboard": "Library", "library": "Image", "users": "Users", "archive": "Archive", "jobs": "Jobs", "settings": "Settings",
"logs": "Logs", "menu": "Menu", "power": "Power", "moon": "Moon", "refresh": "Refresh", "close": "Close", "plus": "Plus",
"copy": "Copy", "search": "Search", "grid": "ViewGrid", "list": "ViewList", "trash": "Delete", "upload": "Upload",
"download": "Download", "back": "Back", "previous": "ChevronLeft", "next": "ChevronRight", "star": "Star",
"starFilled": "StarFilled", "hero": "Hero", "image": "Image", "warning": "Warning"}
STROKE = 'fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"'
with write(os.path.join(here, "..", "..", "src", "Chronos.Server", "Admin", "web", "icons.js")) as f:
f.write("// Generated by branding/ui-icons/icons.py (same 16-px set as the desktop apps). Do not edit by hand.\n")
f.write("// Glyphs that point along the reading direction carry class=\"directional\" (mirrored in right-to-left pages, admin.css).\n")
f.write("export const icons = {\n")
for key, name in WEB.items():
stroke, fill = I[name]
paths = (f'<path d="{fill}" fill="currentColor"/>' if fill else "") + (f'<path d="{stroke}" {STROKE}/>' if stroke else "")
f.write(f' {key}: `<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">{paths}</svg>`,\n')
mirror = ' class="directional"' if name in DIRECTIONAL else ""
f.write(f' {key}: `<svg{mirror} viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">{paths}</svg>`,\n')
f.write("};\n")
print(len(I), "icons,", len(WEB), "web icons")