jimniels / readlists

A readlist is a mixtape, but for online content.

Home Page:https://readlists.jim-nielsen.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import url as part of the app URL parameter

thejeshgn opened this issue · comments

For example I have copied your list here. To open it if I can give a URL like this. It's so much easy to share.

https://readlists.jim-nielsen.com?import=https://data.thejeshgn.com/readlists/paul-miller-offline

  • Assuming CORS is set.

I actually already semi-created this feature. It’s sitting latent in the code because I never figured the UX out entirely (or the name, maybe it should be import=...). But you can try it by passing a param titled url, i.e.

https://readlists.jim-nielsen.com/?url=https://cdn.jim-nielsen.com/readlists/paul-miller-offline.json

The UX part that's tricky is that what if you already have a readlist in localstorage, but your URL is pointing to a readlist. Which one do you use? Today it's using the one in local storage, which is the right decision I think because that's your only copy of that one, but I could see people getting confused like "why isn't the one I pointed to with url= working? Probably need some kind of hint in the UI, like this:

CleanShot 2022-05-20 at 12 39 25@2x