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

+7
View File
@@ -1,6 +1,7 @@
// Public pages: item detail dialog and grid/list toggle.
import { h, icon, openDialog } from "./common.js";
import { previewButton } from "./player.js";
import { quickShare } from "./share.js";
// Each ranked list on the page ships its items as JSON next to the markup.
const lists = [...document.querySelectorAll("[data-items]")].map((el) => ({
@@ -79,3 +80,9 @@ document.addEventListener("click", (e) => {
const found = findItem(Number(btn.dataset.item));
if (found) show(found.list, found.idx);
});
// Share button on a list page.
document.querySelector("[data-share]")?.addEventListener("click", (e) => {
const btn = e.currentTarget;
quickShare(new URL(btn.dataset.share, location.origin).href, btn.dataset.shareTitle);
});