Wrap list chips, add list sharing and public/unlisted/private visibility

- Home page list chips wrap to new rows instead of scrolling off the edge
- Lists are public, unlisted or private (migrated from the visible flag)
- Unlisted lists are reachable only at /s/<token>; slug URLs are public-only
- Share button on list pages and in the editor/dashboard; owners can reset an unlisted link

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cdnutterandClaude Opus 5.5 committed 2026-11-19 09:51:16 -08:00
1 parent 268af7b9ed
commit 87e3d1fb30
16 files changed
+292 -28

No files matched your search

+2 -1
View File
@@ -12,10 +12,11 @@
{{with .List.Description}}<p class="list-desc">{{.}}</p>{{end}}
<p class="list-meta">
{{num .List.ItemCount}} {{plural .List.ItemCount "entry" "entries"}}{{if lt .List.ItemCount .List.MaxItems}} <span class="muted">of {{num .List.MaxItems}}</span>{{end}}
{{if not .List.Visible}}<span class="badge badge--warn">{{icon "eye-off"}}Hidden</span>{{end}}
{{if eq .List.Visibility "unlisted"}}<span class="badge badge--muted">{{icon "link"}}Unlisted</span>{{else if eq .List.Visibility "private"}}<span class="badge badge--warn">{{icon "lock"}}Private</span>{{end}}
</p>
</div>
<div class="list-actions">
{{with .List.SharePath}}<button class="btn btn--ghost" type="button" data-share="{{.}}" data-share-title="{{$.Data.List.Title}}">{{icon "link"}}Share</button>{{end}}
{{if $.LoggedIn}}<a class="btn btn--ghost" href="/admin/lists/{{.List.ID}}">{{icon "pencil"}}Edit</a>{{if .Items}}{{template "export" .List.Slug}}{{end}}{{end}}
{{if .Items}}
<nav class="segmented" aria-label="Style">