Currently, when using Cat-a-lot to organize files in Wikimedia Commons users will select images, categories from pages where they currently are and they can do actions to those pages. To improve usability, this task will involve creating a persistent "scratchpad" where users can temporarily store selected files.
Key Requirements:
- Allow users to add pages selected by Cat-a-lot to the scratchpad list.
- Scratchpad list persists selections across multiple page loads using local storage
- Create dedicated view where user can view current scratchpad content: https://commons.wikimedia.org/wiki/Special:BlankPage/Cat-a-lot_scratchpad.
- Scratchpad view features **
- Ensure the scratchpad vie follows the normal Cat-a-lot category page html structure so Cat-a-lot will work there with minimal modification.
- Ability to select/deselect files in scratchpad view using Cat-a-lot.
- Support Cat-a-lot batch operations (move, copy, categorize) directly from the scratchpad.
- Option to remove selected pages individually from the scratchpad.
- Provide a "Clear Scratchpad" button to reset selections.
- Allow users to save the scratchpad file list to a specified wikipage through a prompt dialog for entering the page name.
Technical Implementation notes:
- Implement this feature in a separate user script (only minimally modify the main cat-a-lot.js ).
- Utilize the provided function [[ URL | mw.libs.catALot.getMarkedLabels() ]] to access the selected pages from Cat-a-lot.
- To integrate with Cat-a-lot, follow the example implementation here: https://commons.wikimedia.org/w/index.php?title=User%3AZache-test%2Fcat-a-lot.js&diff=1014768341&oldid=1014286048