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
@@ -117,6 +117,13 @@ CREATE INDEX items_list_rank ON items(list_id, rank);
|
||||
// rather than taking the source's; refresh leaves it alone unless asked.
|
||||
`ALTER TABLE items ADD COLUMN image_custom INTEGER NOT NULL DEFAULT 0;
|
||||
UPDATE items SET image_custom = 1 WHERE image_source = 'upload';`,
|
||||
// Public / unlisted / private, replacing the visible flag (kept in sync
|
||||
// for older code paths), plus a random token for unlisted share links.
|
||||
`ALTER TABLE lists ADD COLUMN visibility TEXT NOT NULL DEFAULT 'public';
|
||||
UPDATE lists SET visibility = 'private' WHERE visible = 0;
|
||||
ALTER TABLE lists ADD COLUMN share_token TEXT NOT NULL DEFAULT '';
|
||||
UPDATE lists SET share_token = lower(hex(randomblob(9)));
|
||||
CREATE UNIQUE INDEX lists_share_token ON lists(share_token);`,
|
||||
}
|
||||
|
||||
func (s *Store) migrate(ctx context.Context) error {
|
||||
|
||||
Reference in new issue
Block a user