v2
📝 Changelog - Datasets Images EditSelect (v2.0)
This major update focuses on ergonomics, execution speed (workflow), and full compatibility with the new versions of Gradio (v4+). The application transitions from a classic clickable tool to a truly ultra-responsive "desktop-like" software.
🚀 Major Features
- Selection System Overhaul (Windows Style): * Image selection no longer causes the gallery to blink (100% JavaScript processing).
- Support for [Ctrl + Click] to add/remove individual images.
- Support for [Shift + Click] to select a complete range of images at once.
- Support for [Ctrl + A] to select everything instantly.
- Fix: A single click now instantly displays the image in the viewer while resetting the selection.
- Context Menu (Right Click): * Added a native flyout menu on gallery images for quick actions without moving the mouse: Save, Add to stats, Clear selection.
- Silent Save (Auto-Save): * No more need to click "Save". When navigating to another image (via arrows or click), the tool detects changes to the caption and automatically saves the file in the background (creating a .bak security backup).
⚡ Ergonomics & Tables ("Excel-like")
- Indestructible Drag & Drop: Rewrote the Drag & Drop system in the recipe tables to withstand Gradio 4's dynamic reloads.
- "Excel-like" Editing:
- A single click on a table cell simulates a double-click and instantly selects all the text. Typing a new number overwrites the old one without needing to use the Backspace key.
- Smart Swap 2.0: If a tag's priority is changed to an already occupied number, the old tag automatically takes the vacant spot (zero duplicates). Added protection against out-of-bounds indices.
- Quick Input Panel: Added dropdown menus under the recipe table to instantly change priorities and targets.
- Movement buttons: Added ⬆️ Move Up, ⬇️ Move Down, and 🗑️ Delete buttons to reorganize the table without using the mouse.
⌨️ Keyboard Shortcuts (Secured)
- AZERTY/QWERTY Independence: Shortcuts now use e.code to guarantee they work regardless of the keyboard language.
- New shortcuts:
- [Alt + Up/Down Arrow]: Move the selected row in the table.
- [Ctrl + F]: Place the cursor directly in the search bar.
- Dynamic legend: Added an insert reminding the shortcuts under the image viewer, updated according to the chosen language (FR/EN).
🐛 Bug Fixes (Gradio 4+ fixes)
- Keyword infinite loop: Statistics calculation no longer triggers on every typed letter, but only when typing a comma ,, hitting the Enter key, or leaving the box. No more unwanted deletions!
- HTML highlighting bug ("Background"): Fixed a flaw where keywords (like "background" or "color") corrupted the HTML <mark> tag used for highlighting. The Regex engine now processes the longest words first and in a single pass.
- Ghost buttons (Gradio 4): Replaced visible=False with CSS display: none !important for Python/JS synchronization buttons, as Gradio 4 was completely destroying DOM elements, making scripts inoperative.
- CivitAI copy button: Removed the obsolete parameter show_copy_button=True which caused crashes on launch, and generated a purely formatted Markdown table instead.
- col_count warning: Updated the deprecated parameter col_count to column_count for a clean terminal.
- Startup bug: Secured interface functions (MSG[lang].get) to prevent KeyError: None crashes if Gradio initialization occurs before the languages are fully loaded.
🌍 Internationalization
- Complete update of the fr.json and en.json files to integrate instructions related to Drag & Drop, new keyboard shortcuts, and automatic saving.