diff options
| author | Ken D'Ambrosio <ken@jots.org> | 2026-06-09 13:09:23 +0000 |
|---|---|---|
| committer | Ken D'Ambrosio <ken@jots.org> | 2026-06-09 13:09:23 +0000 |
| commit | c13a40a970be156a231200c20362636b198d32ec (patch) | |
| tree | 9e7c0103d861bbd4dd5877d244431ca5ae07327f /views/admin/people.erb | |
| parent | cf1385bbd6d88a8db9f615512564e150c85a0b5f (diff) | |
Add face pool, blacklisting, and action explanations to people admin
Removed faces now go to an "Unidentified pool" cluster rather than
disappearing. Deleting a cluster blacklists all its members so they are
skipped by future re-clustering runs. Pool faces can be assigned to a
named person or individually blacklisted. A plain-English info box on
the detail page explains what each action does and that no photo files
are ever modified.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'views/admin/people.erb')
| -rw-r--r-- | views/admin/people.erb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/admin/people.erb b/views/admin/people.erb index c17e847..9715b95 100644 --- a/views/admin/people.erb +++ b/views/admin/people.erb @@ -26,6 +26,26 @@ </div> </section> + <% if @pool %> + <div class="people-pool-row"> + <div class="face-samples"> + <% @pool[:samples].each do |s| %> + <img src="/face/<%= ERB::Util.html_escape(s[:rel]) %>?box=<%= ERB::Util.html_escape(s[:box].join(',')) %>" + width="72" height="72" loading="lazy" + class="face-list-thumb" + data-thumb="/thumb/<%= ERB::Util.html_escape(s[:rel]) %>"> + <% end %> + <% if @pool[:count] > @pool[:samples].length %> + <a href="/admin/people/__pool__" class="face-more">+<%= @pool[:count] - @pool[:samples].length %> more</a> + <% end %> + </div> + <div class="people-admin-meta"> + <span class="face-count pool-label">Unidentified pool — <%= @pool[:count] %> face<%= @pool[:count] == 1 ? '' : 's' %></span> + <a href="/admin/people/__pool__" class="btn btn-sm">Review</a> + </div> + </div> + <% end %> + <% if @clusters.empty? %> <p class="empty-album" style="margin-top: 40px"> No face data yet — the face daemon is still processing, or run Re-cluster once it has finished a pass. |
