Skip to content

Feature/copy images and tags to clipboard, "Inherited tag" and "saving" optimizations, and bug fixes.#51

Merged
RafaUC merged 9 commits into
masterfrom
feature/copy-to-clipboard
Jul 5, 2025
Merged

Feature/copy images and tags to clipboard, "Inherited tag" and "saving" optimizations, and bug fixes.#51
RafaUC merged 9 commits into
masterfrom
feature/copy-to-clipboard

Conversation

@RafaUC

@RafaUC RafaUC commented Jul 5, 2025

Copy link
Copy Markdown
Owner
  • Fix bug where copy image to clipboard fails to copy if the app isn't in focus.
  • Add toasts while copying an image to the clipboard.
  • Add copy/paste tags from files Feature.

Things added while testing the other features:

  • Add a saving indicator to the toast container to let the user know if the app is saving files to the database.
  • Fix: prevent duplicate file savings if saveFilesToSave is called again before previous save completes.
  • Optimization to calculate the file's "Inherited tags" and "file tags editor counter."

RafaUC added 9 commits July 2, 2025 00:03
…t in focus. Switch from navigator.clipboard.write to use electron's clipboard.writeImage().

* Add toasts informing the copying status when copy image to clipboard.
…nsion for performance. Return logic that used canvas to convert the image data as a fallback, since nativeImage is not compatible with some extensions.
* Disable copy image buttons to video files.
*Add variables and methods to UiStore, File, and TagStore.

*Add menu options to copy and paste tags to file contextual menus.
…imes when a large number of files is selected: from ~40,000ms to ~7,000ms while selecting ~17,000 files with tags.

* Cached tag `impliedAncestors` using computed.

* Switched to arrays instead of sets when possible, since arrays iterate faster.

* Avoided the most unnecessary iterations, conversions between arrays and sets, or recreations.
… app is saving files to database

* Prevent broken files to decrease untagged count then trying to add tags to them
…n before previous save completes

* Copy and clean the filesToSave list before saving to the backend. Prevents sending files multiple times if saveFilesToSave is triggered again before the first promise resolves.

* Set isSaving to false only after all file-saving promises are complete.
…mpletely the file visible inherited tags calculation and just return the file's tags.
@RafaUC RafaUC merged commit 5106770 into master Jul 5, 2025
2 checks passed
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