feat: add 'Unuploaded' button to select images not yet on Commons#101
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| <Button | ||
| class="hover-primary" | ||
| severity="secondary" | ||
| outlined | ||
| label="Unuploaded" | ||
| :disabled="store.isBatchLoading" | ||
| @click="store.selectUnuploaded()" | ||
| /> |
There was a problem hiding this comment.
"Unuploaded" selects all items when status hasn't been checked
selectUnuploaded considers every item with existing.length === 0 as unuploaded. Before a Commons status check runs, all items have an empty existing array by default, so clicking this button is functionally identical to "All images" — but the label implies the system already knows which images are absent from Commons. The store already exposes anyItemsWithExistingFiles (true once at least one match has been found), which could gate the button's visibility via v-if="store.anyItemsWithExistingFiles" or at least disable it with a tooltip until status data is available.
|
Re Greptile's P2: no change needed. — Claude Sonnet 4.6 |
selectUnuploaded()action to the collections store — selects all items whereimage.existingis empty (no matching file found on Commons), deselects the restFixes https://phabricator.wikimedia.org/T426494
— Claude Sonnet 4.6