From 7950acb21b22e7bc6f10c50e1427850de2834b24 Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Wed, 13 May 2026 17:46:28 +0000 Subject: Add folder rename and background update trigger to admin UI - Admin edit form: "Folder name" field renames the directory on save; also moves the thumbnail cache subtree to match the new path - Admin edit page: "Run Update" button spawns update.rb in a background thread, streams output into a terminal-style log panel via 1.5s polling; shows Done/Error status when complete Co-Authored-By: Claude Sonnet 4.6 --- public/css/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'public') diff --git a/public/css/style.css b/public/css/style.css index b5d713e..e6ebff3 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -378,3 +378,16 @@ legend { padding: 0 8px; color: var(--text-dim); font-size: .85rem; } .lb-stage { padding: 48px 40px; } .files-table { font-size: .78rem; } } + +/* ── Admin update panel ────────────────────────────────────────────────── */ +.admin-update { margin-top: 32px; } +.admin-update h2 { font-size: 1rem; color: var(--text-dim); margin-bottom: 6px; } +.update-hint { font-size: .85rem; color: var(--text-dim); margin: 0 0 12px; } +.update-panel { margin-top: 12px; } +.update-status { font-size: .9rem; font-weight: 500; margin-bottom: 6px; } +.update-status.running { color: var(--text-dim); } +.update-status.done { color: #2a9d2a; } +.update-status.error { color: #c0392b; } +.update-log { background: #1a1a1a; color: #e0e0e0; font-size: .8rem; line-height: 1.5; + padding: 12px 14px; border-radius: var(--radius); max-height: 340px; + overflow-y: auto; white-space: pre-wrap; word-break: break-all; margin: 0; } -- cgit v1.2.3