157 lines · 3.1 KB · JSONRaw
{ "format_version": 1, "id": "playlist", "name": "Playlist", "plural": "Playlists", "picture": null, "builtin": false, "visibility": "owner", "engine": null, "columns": [ { "key": "name", "name": "Name", "type": "text", "required": true, "placeholder": "Name this playlist" }, { "key": "made_on", "name": "Made", "type": "date" }, { "key": "cover", "name": "Cover", "type": "photo" }, { "key": "songs", "name": "Songs", "type": "number", "units": { "one": "song", "other": "songs" }, "computed": { "rollup": { "table": "playlist_track", "link": "playlist", "op": "count" } } }, { "key": "length", "name": "Length", "type": "number", "format": "duration", "computed": { "rollup": { "table": "playlist_track", "link": "playlist", "op": "sum", "column": "duration" } } }, { "key": "spotify_id", "name": "Spotify id", "type": "text", "readonly": true }, { "key": "spotify_uri", "name": "Spotify", "type": "text", "readonly": true } ], "title": "name", "date": null, "project": null, "order": null, "slip": { "title": "name", "subtitle": null, "trailing": "songs", "photo": "cover", "toggle": null }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "cover", "name", "made_on" ] }, { "heading": "Songs", "list": { "table": "playlist_track", "link": "playlist", "empty": { "title": "No songs in this playlist", "message": "Add a song you keep to this playlist." }, "add": "Add a song" } } ], "sort": { "column": "name", "descending": false }, "empty": { "title": "No playlists yet", "message": "Make a playlist of songs you keep." }, "create": { "label": "Add a playlist" }, "instructions": "One row per playlist: its name and a cover. Its songs are its entries (playlist_track), in position order; songs counts them. A playlist from the person's Spotify account carries spotify_id and spotify_uri; the Spotify pull keeps it, and its songs in Spotify's order, by them.", "card": { "face": "playlist.cassette", "fields": [ { "slot": "photo", "column": "cover" }, { "slot": "title", "column": "name" }, { "slot": "date", "column": "made_on", "label": "label.face.playlist.date" }, { "slot": "count", "column": "songs" }, { "slot": "length", "column": "length", "form": "clock" } ], "opens": { "table": "playlist_track", "by": "playlist", "order": [ "position" ], "through": "track" } }, "groups": { "stack": "covers" }}