summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorKen D'Ambrosio <ken@jots.org>2026-05-13 17:46:28 +0000
committerKen D'Ambrosio <ken@jots.org>2026-05-13 17:46:28 +0000
commit7950acb21b22e7bc6f10c50e1427850de2834b24 (patch)
tree4502b913f9719e60d363a9d08b979fd9578207d1 /public
parent63ee58aac2ab7b24eecbec791757cf6ecb5a2296 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'public')
-rw-r--r--public/css/style.css13
1 files changed, 13 insertions, 0 deletions
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; }