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

+14
View File
@@ -64,6 +64,20 @@ func (s *Server) apiUpdateList(w http.ResponseWriter, r *http.Request) {
writeJSON(w, http.StatusOK, l)
}
func (s *Server) apiResetShareLink(w http.ResponseWriter, r *http.Request) {
id, err := pathID(r)
if err != nil {
s.writeErr(w, err)
return
}
l, err := s.store.ResetShareToken(r.Context(), id)
if err != nil {
s.writeErr(w, err)
return
}
writeJSON(w, http.StatusOK, l)
}
func (s *Server) apiDeleteList(w http.ResponseWriter, r *http.Request) {
id, err := pathID(r)
if err != nil {