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:
1 parent
268af7b9ed
commit
87e3d1fb30
16 files changed
+292
-28
No files matched your search
@@ -106,6 +106,7 @@ func (s *Server) Handler() http.Handler {
|
||||
// Public
|
||||
mux.HandleFunc("GET /{$}", s.gated(s.handleHome))
|
||||
mux.HandleFunc("GET /l/{slug}", s.gated(s.handleList))
|
||||
mux.HandleFunc("GET /s/{token}", s.gated(s.handleSharedList))
|
||||
mux.HandleFunc("GET /l/{slug}/export", s.gatedAsset(s.handleExport))
|
||||
mux.HandleFunc("GET /preview/{id}", s.gatedAsset(s.handleItemPreview))
|
||||
mux.HandleFunc("GET /images/{name}", s.gatedAsset(s.handleImage))
|
||||
@@ -137,6 +138,7 @@ func (s *Server) Handler() http.Handler {
|
||||
api("POST /api/lists", s.apiCreateList)
|
||||
api("POST /api/lists/order", s.apiReorderLists)
|
||||
api("PUT /api/lists/{id}", s.apiUpdateList)
|
||||
api("POST /api/lists/{id}/share-link", s.apiResetShareLink)
|
||||
api("DELETE /api/lists/{id}", s.apiDeleteList)
|
||||
api("GET /api/lists/{id}/items", s.apiItems)
|
||||
api("POST /api/lists/{id}/items", s.apiAddItem)
|
||||
|
||||
Reference in new issue
Block a user