This is one of the features I’ve been missing from Goodreads (along with batch editing :)) As an experiment I went ahead and implemented a little bookmarklet to add similar inline filtering:
If you want to try this yourself, you can drag the bookmarklet from this page to your bookmarks bar. After adding the Grouvee inline filters bookmarklet to your bookmarks bar, activate it on any Grouvee page listing games and the inline filter box will be added to each shelf toolbar.
@peter if you like this maybe you can include it in the site directly Original JavaScript source is here.
Thanks, no rush on the export I decided to focus on moving my various notes and spreadsheet data into Grouvee first and work on the data viz stuff after more of my data is there. While building this extension I discovered that I have over 100 shelves so you can see why it is useful to me at least.
If people often have a small number of shelves, it might be helpful to only inject this if there are maybe 15 shelves or more.
Minor update: Checked shelves are now sorted to the top (when the menu is shown, so they don’t move around while it is open). Bookmarklet and code links above are updated.
Hmm, actually I do see a couple things that aren’t quite working right:
Focus isn’t going into the filter textbox when you click the shelves button
After filtering and then closing the shelves, if you click the shelves button again, the filter textbox is empty but the previous filter is still being applied
I haven’t taken a look at your code for this but let me know if I can help.
It looks a lot like yours I actually only changed the section where it creates the text box in js since I do that in my templates and there’s some more logic to it.
The focus thing should be easy enough to fix
I’ll have to look at why it’s clearing the box out. It doesn’t seem like it should, but I’ll look at that code a little closer tonight.
Ok I realized these were probably the same issue and took a quick look at the Chrome console. The code in the setTimeout on the shelf button click is throwing because filterShelves function isn’t in scope. Should be easy to fix
Oh and just to clarify, it was supposed to clear out the filter box – you’ll see in the code, I set the filter box value to empty string then call filterShelves to reset the shelves and finally set focus to the filter box. I don’t think it is helpful to remember the filter state after the shelf menu is closed (in fact I think that would be annoying).
Thanks!!