Show indication of arhived page

Issue #8 on hold
Former user created an issue

When you see a page, sometimes it is hard to remember whether it just looks familiar or I read it some time ago. Would be nice to see an indicator that pocket Archive already has the page in it similar to an indication that current page is in the list that is shown in the address bar (maybe the same icon with a tick on it).

Comments (7)

  1. Pierre-Adrien Buisson repo owner

    Thanks for your suggestion. It's something that's never been suggested yet.

    However, I think this will be hard to implement as of now. I see two ways of doing it :

    1. retain in memory every archived page of the pocket account, which is really huge. There would be performance issues, and for some accounts with a large history, there could be storage issues as well.
    2. for every page, you visit, ask pocket API if it's present in the archived pages of the account. But to be accurate, this must be done everytime you navigate to a URL (which can be pretty often), and the number of calls to Pocket API is limited, we would for sure go over the limit very quickly.

    I keep this in mind and will create a ticket in my backlog. Still, based on the previous reasons, don't expect this feature to land anytime soon. Thanks for your feedback anyway!

  2. Ivan Danilov

    You don't need to retain in memory entire pages, only their URLs? Hashset even with hundred thousands items would be of manageable size yet. If it will be too memory or CPU hungry - it is possible to do opt-in or opt-out in options.

    Sure, doing it asynchronously by visiting pocket API would be more scalable, but due to calls limitation - it's unfeasible. But I guess it might be a good point to contact Pocket themselves - e.g. for paid subscriptions they might have set higher limits or something.

  3. Pierre-Adrien Buisson repo owner

    Yes, retain the url of every page is what I meant, sorry for not being more precise. Maybe I can work something out, using a different kind of storage, or optimizing the way urls are stored.

    As I said, I do keep this in mind and in my backlog for research and implement one day if it's feasible with good perfs. I've become a tad conservative with this kind of features, because some users deal with thousands of items and years of archives, and I've already had my share of performances troubles already :)

    Thanks Ivan!

  4. Ivan Danilov

    I can be an early tester if you like - I have ~5-10k of items each year for a few years in a row and 812 items in the current reading list.

    • Have no idea where to look at actual stats, I'm taking my numbers from the yearly Pocket mail.
  5. Pierre-Adrien Buisson repo owner

    Alright, I'll let you know when I'll be able to work on this and supply something that could be tested. Don't expect any work on this soon though... but I'll contact you back when I'll start working on this. Thanks for your help 👍

  6. Kirill Goncharov

    There are other ways how this could be implemented:

    • Extension could check the archive when page is being added to Pocket and show some warning if it is found.
    • If storage is the problem, we can store only 100 or 200 of latest urls, this should be useful too.
    • Custom action in context menu which searches the archive for current page URL.
  7. Log in to comment