Skip to content

Conversation

@alethiophile
Copy link
Contributor

This is an initial implementation of some basic filtering for batch operations, as previously discussed in e.g. #893 and #570.

This basically just copies the search UI from the index page to the batch page, then populates the batch archive list from the search results instead of the all-archive list. The old behavior is available behind the "Use all archives" button. The batch page's search bar has tag autocomplete as well; to facilitate this, I moved the loadTagSuggestions function from index into common. That specific function could be pulled out with very little change.

The search UI is not complete here; it lacks categories or any way to apply other search filters. I'm primarily looking for feedback on the basic concept. Personally, this version satisfies one of my big problems with the batch operation interface.

This basically just copies the search UI from the index page into the
batch operations page, then uses the search results to populate the
archive list. The old behavior is available behind the "Use All
Archives" button.

Still to be done: more search options including category, flags;
better UI in general
This restores the prior behavior in index.js of storing the
Awesomplete instance on Index.awesomeplete. That reference wasn't
ever used AFAICT, but it might as well stay.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant