TagSpaces is an offline, open source, document manager with tagging support
thumb and description fixes in KanBan
Stanimir0a0b8362edf3
diff --git a/package-lock.json b/package-lock.jsonindex f9b8f7182..da6d005e7 100644--- a/package-lock.json+++ b/package-lock.json@@ -21,10 +21,10 @@"@mui/lab": "7.0.0-beta.14","@mui/material": "^7.1.2","@mui/x-date-pickers": "^8.6.0",- "@tagspaces/tagspaces-common": "4.5.92",- "@tagspaces/tagspaces-common-aws3": "4.5.92",- "@tagspaces/tagspaces-common-cordova": "4.5.92",- "@tagspaces/tagspaces-indexer": "4.5.92",+ "@tagspaces/tagspaces-common": "4.5.93",+ "@tagspaces/tagspaces-common-aws3": "4.5.93",+ "@tagspaces/tagspaces-common-cordova": "4.5.93",+ "@tagspaces/tagspaces-indexer": "4.5.93","aws-amplify": "^4.3.8","clone": "^2.1.2","coordinate-parser": "^1.0.7",@@ -207,7 +207,7 @@"yarn": "please-use-npm"},"optionalDependencies": {- "@tagspacespro/tagspacespro": "5.0.170"+ "@tagspacespro/tagspacespro": "5.0.172"}},"node_modules/@adobe/css-tools": {@@ -19044,9 +19044,9 @@}},"node_modules/@tagspaces/tagspaces-common": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.92.tgz",- "integrity": "sha512-uFZYd7x5lxiJtwvqr7YgebPeO9iPZbSKTRb1UfUcb7X0UF81xe5+zA4QnlO3p25L0wSMF0uEvDBmUyHoEEoZ4g==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.93.tgz",+ "integrity": "sha512-W5CdW44fKCbEO3siHNGPICH3imEMhIYIePWezmuYwejawfm7sJK1dlQ2WYK3sacrs2EeZj+ypFHstjwHAAI2TA==","license": "MIT","dependencies": {"dompurify": "^3.2.3",@@ -19058,25 +19058,25 @@}},"node_modules/@tagspaces/tagspaces-common-aws3": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.5.92.tgz",- "integrity": "sha512-GJxfrLF1GDy4RItHnMz5nMhAFLNXg+LGDZfx71HjcKGq5sazMBMbzA+2I+E6AfKOLSyJPvqaOPX4Zy7uiFIQJA==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.5.93.tgz",+ "integrity": "sha512-4QTCi0wEC0iZCg2nxsquElrjbON5pzTyFzWrZ0T5PM2dIqWapDJjcCvM3oKWaeS5qCl6FP5eIobNCUyIe9D81w==","license": "MIT","dependencies": {"@aws-sdk/client-s3": "^3.665.0","@aws-sdk/lib-storage": "^3.665.0","@aws-sdk/s3-request-presigner": "^3.665.0",- "@tagspaces/tagspaces-common": "^4.5.92",+ "@tagspaces/tagspaces-common": "^4.5.93","crypto-js": "^4.2.0"}},"node_modules/@tagspaces/tagspaces-common-cordova": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.5.92.tgz",- "integrity": "sha512-T+MVPuh33JU0x+qAmRDOdG2fGRXnmZdOLFX5tuPEocYcT7nzx5ZJ7S1drqiRGFzHEHE5zPFBngLKhjHm8VA/9Q==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.5.93.tgz",+ "integrity": "sha512-3BWIG3Z/jWdeCWcTDDQUbtyya1QITsMHi+hvWuPDIaFqNIJBIwp/VzlAadPLA0YiWzfZStEa1TQbXEa5NAKWAg==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.92"+ "@tagspaces/tagspaces-common": "^4.5.93"}},"node_modules/@tagspaces/tagspaces-common/node_modules/cssstyle": {@@ -19283,18 +19283,18 @@}},"node_modules/@tagspaces/tagspaces-indexer": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.92.tgz",- "integrity": "sha512-ph4P/c+4gQi9s87zOdyD0fdp9UmcObnSwgdKQeOh+lyAzb/1DYdTmnpxijJ7rrZiQMh2YIM47vi7ZKpySvCNyA==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.93.tgz",+ "integrity": "sha512-5QUW7wnBhm0jCPB9516FZW6SYrg+2tpQUF07lVLfJxoodbS9xU6pNx0GjvNd0tkwqgztPvNHjkU9dMpNbBD+5g==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.92"+ "@tagspaces/tagspaces-common": "^4.5.93"}},"node_modules/@tagspacespro/tagspacespro": {- "version": "5.0.170",- "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.170/37c10ee5282081154e4a4bd4ace5cfab92c561ec",- "integrity": "sha512-qR1kGkA50ZVaiNXU+9W8V2yzXD9vgXRcOtJTSkkL6wy9VMPqzW5/JfDTRBodZJlg4b63i9YDWLOUpW8VGTBNLw==",+ "version": "5.0.172",+ "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.172/78e05565492338445a6d0d55fd35840f416450c6",+ "integrity": "sha512-JwmQwsHQ9Lc1KlMSvDKhPRMSwa+6PEVrAF9BOGDQRK1Oah9HXtnMnYRsg5NBbg6STyaD0HOZqgiWGcs5W14cxA==","license": "Proprietary","optional": true},diff --git a/package.json b/package.jsonindex a141af9d4..9b9e33a1a 100644--- a/package.json+++ b/package.json@@ -172,10 +172,10 @@"@mui/lab": "7.0.0-beta.14","@mui/material": "^7.1.2","@mui/x-date-pickers": "^8.6.0",- "@tagspaces/tagspaces-common": "4.5.92",- "@tagspaces/tagspaces-common-aws3": "4.5.92",- "@tagspaces/tagspaces-common-cordova": "4.5.92",- "@tagspaces/tagspaces-indexer": "4.5.92",+ "@tagspaces/tagspaces-common": "4.5.93",+ "@tagspaces/tagspaces-common-aws3": "4.5.93",+ "@tagspaces/tagspaces-common-cordova": "4.5.93",+ "@tagspaces/tagspaces-indexer": "4.5.93","aws-amplify": "^4.3.8","clone": "^2.1.2","coordinate-parser": "^1.0.7",@@ -245,7 +245,7 @@"zod-to-json-schema": "^3.24.1"},"optionalDependencies": {- "@tagspacespro/tagspacespro": "5.0.170"+ "@tagspacespro/tagspacespro": "5.0.172"},"devDependencies": {"@electron/notarize": "^2.5.0",diff --git a/release/app/package-lock.json b/release/app/package-lock.jsonindex f864dc526..f1dbf1d11 100644--- a/release/app/package-lock.json+++ b/release/app/package-lock.json@@ -1,19 +1,19 @@{"name": "tagspaces",- "version": "6.5.2",+ "version": "6.5.3","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "tagspaces",- "version": "6.5.2",+ "version": "6.5.3","hasInstallScript": true,"license": "AGPL-3.0","dependencies": {"@elife/pm2": "3.6.1","@tagspaces/extensions": "1.0.197",- "@tagspaces/tagspaces-common-node": "4.5.92",- "@tagspaces/tagspaces-ws": "4.5.92",+ "@tagspaces/tagspaces-common-node": "4.5.93",+ "@tagspaces/tagspaces-ws": "4.5.93","sharp": "0.32.6","ws": "8.18.1"},@@ -160,9 +160,9 @@}},"node_modules/@tagspaces/tagspaces-common": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.92.tgz",- "integrity": "sha512-uFZYd7x5lxiJtwvqr7YgebPeO9iPZbSKTRb1UfUcb7X0UF81xe5+zA4QnlO3p25L0wSMF0uEvDBmUyHoEEoZ4g==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.93.tgz",+ "integrity": "sha512-W5CdW44fKCbEO3siHNGPICH3imEMhIYIePWezmuYwejawfm7sJK1dlQ2WYK3sacrs2EeZj+ypFHstjwHAAI2TA==","dependencies": {"dompurify": "^3.2.3","dotenv": "^16.0.2",@@ -173,22 +173,22 @@}},"node_modules/@tagspaces/tagspaces-common-node": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.92.tgz",- "integrity": "sha512-z2wdZJSWscCP5cJafLDY6zG/lOc6J4UOPnpDaXT0F8TCrO4zNMchdL2jd+BC0Jmtw5vY7B04PePYxKcFM0UXfA==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.93.tgz",+ "integrity": "sha512-vsZSDzP8WAgPCvKmxU2B7rOEr0km363gVt0Yv54DTDeECCoXXRu4gJRznqFilzYALgbVncKyJG3Mj+PXQ1ttfQ==","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.92",+ "@tagspaces/tagspaces-common": "^4.5.93","adm-zip": "0.5.10","fs-extra": "^10.0.0","klaw": "^4.1.0"}},"node_modules/@tagspaces/tagspaces-indexer": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.92.tgz",- "integrity": "sha512-ph4P/c+4gQi9s87zOdyD0fdp9UmcObnSwgdKQeOh+lyAzb/1DYdTmnpxijJ7rrZiQMh2YIM47vi7ZKpySvCNyA==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.93.tgz",+ "integrity": "sha512-5QUW7wnBhm0jCPB9516FZW6SYrg+2tpQUF07lVLfJxoodbS9xU6pNx0GjvNd0tkwqgztPvNHjkU9dMpNbBD+5g==","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.92"+ "@tagspaces/tagspaces-common": "^4.5.93"}},"node_modules/@tagspaces/tagspaces-pdf-extraction": {@@ -209,25 +209,25 @@}},"node_modules/@tagspaces/tagspaces-workers": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.92.tgz",- "integrity": "sha512-q/uq3gnYx4CrvYPOWTeUe38U6jlib5AZG9lZON+2/N+dwV/a8Mxro9xB3GVoHGH5pERjGTJ/JOhEVSUIkVAp9w==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.93.tgz",+ "integrity": "sha512-0S/cvDVakY0AR/OwqQ1xsBbqOBT0tgDCIeE4kFC7a7/ZzezlnttoZvwi9ThRDh1UUsW+DJS71L6SoPzPdK6oWw==","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.92",- "@tagspaces/tagspaces-common-node": "^4.5.92",+ "@tagspaces/tagspaces-common": "^4.5.93",+ "@tagspaces/tagspaces-common-node": "^4.5.93","@tagspaces/tagspaces-pdf-extraction": "^4.5.53","@tagspaces/tagspaces-thumbgen-image": "^4.5.60","fswin": "^3.24.829"}},"node_modules/@tagspaces/tagspaces-ws": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.92.tgz",- "integrity": "sha512-0vjy4TAurXqkdFz2VJHJhP4XsrWVDVJN9sQxGKkVShw2Fz9+/0R3XZGgZjYsmtWCmn2zU/MiOY5tog5MnSM3Vg==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.93.tgz",+ "integrity": "sha512-VWVSuiv5hEje3WEtsSUTm4QmOTY0w95aLPhLtyiEFWQsTfO+SZ2I4qNnUnVtygPVpECeDGqL7xtwebc7bHA7EQ==","dependencies": {- "@tagspaces/tagspaces-indexer": "^4.5.92",+ "@tagspaces/tagspaces-indexer": "^4.5.93","@tagspaces/tagspaces-pdf-extraction": "^4.5.53",- "@tagspaces/tagspaces-workers": "^4.5.92",+ "@tagspaces/tagspaces-workers": "^4.5.93","find-free-ports": "^3.1.1","jsonwebtoken": "^9.0.2","ws": "^8.18.3"@@ -726,9 +726,9 @@"integrity": "sha512-hQebewth9i5qkf0a0u06iFaxQssk5ZnPBBggsa1vk8zCYaZoz9IZXpoRLTbEOrYdqfrjvcxU00gYoCPgmXugKA=="},"node_modules/form-data": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz",- "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==",+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==","dependencies": {"asynckit": "^0.4.0","combined-stream": "^1.0.8",@@ -1891,9 +1891,9 @@}},"@tagspaces/tagspaces-common": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.92.tgz",- "integrity": "sha512-uFZYd7x5lxiJtwvqr7YgebPeO9iPZbSKTRb1UfUcb7X0UF81xe5+zA4QnlO3p25L0wSMF0uEvDBmUyHoEEoZ4g==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.93.tgz",+ "integrity": "sha512-W5CdW44fKCbEO3siHNGPICH3imEMhIYIePWezmuYwejawfm7sJK1dlQ2WYK3sacrs2EeZj+ypFHstjwHAAI2TA==","requires": {"dompurify": "^3.2.3","dotenv": "^16.0.2",@@ -1904,22 +1904,22 @@}},"@tagspaces/tagspaces-common-node": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.92.tgz",- "integrity": "sha512-z2wdZJSWscCP5cJafLDY6zG/lOc6J4UOPnpDaXT0F8TCrO4zNMchdL2jd+BC0Jmtw5vY7B04PePYxKcFM0UXfA==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.93.tgz",+ "integrity": "sha512-vsZSDzP8WAgPCvKmxU2B7rOEr0km363gVt0Yv54DTDeECCoXXRu4gJRznqFilzYALgbVncKyJG3Mj+PXQ1ttfQ==","requires": {- "@tagspaces/tagspaces-common": "^4.5.92",+ "@tagspaces/tagspaces-common": "^4.5.93","adm-zip": "0.5.10","fs-extra": "^10.0.0","klaw": "^4.1.0"}},"@tagspaces/tagspaces-indexer": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.92.tgz",- "integrity": "sha512-ph4P/c+4gQi9s87zOdyD0fdp9UmcObnSwgdKQeOh+lyAzb/1DYdTmnpxijJ7rrZiQMh2YIM47vi7ZKpySvCNyA==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.93.tgz",+ "integrity": "sha512-5QUW7wnBhm0jCPB9516FZW6SYrg+2tpQUF07lVLfJxoodbS9xU6pNx0GjvNd0tkwqgztPvNHjkU9dMpNbBD+5g==","requires": {- "@tagspaces/tagspaces-common": "^4.5.92"+ "@tagspaces/tagspaces-common": "^4.5.93"}},"@tagspaces/tagspaces-pdf-extraction": {@@ -1940,25 +1940,25 @@}},"@tagspaces/tagspaces-workers": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.92.tgz",- "integrity": "sha512-q/uq3gnYx4CrvYPOWTeUe38U6jlib5AZG9lZON+2/N+dwV/a8Mxro9xB3GVoHGH5pERjGTJ/JOhEVSUIkVAp9w==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.93.tgz",+ "integrity": "sha512-0S/cvDVakY0AR/OwqQ1xsBbqOBT0tgDCIeE4kFC7a7/ZzezlnttoZvwi9ThRDh1UUsW+DJS71L6SoPzPdK6oWw==","requires": {- "@tagspaces/tagspaces-common": "^4.5.92",- "@tagspaces/tagspaces-common-node": "^4.5.92",+ "@tagspaces/tagspaces-common": "^4.5.93",+ "@tagspaces/tagspaces-common-node": "^4.5.93","@tagspaces/tagspaces-pdf-extraction": "^4.5.53","@tagspaces/tagspaces-thumbgen-image": "^4.5.60","fswin": "^3.24.829"}},"@tagspaces/tagspaces-ws": {- "version": "4.5.92",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.92.tgz",- "integrity": "sha512-0vjy4TAurXqkdFz2VJHJhP4XsrWVDVJN9sQxGKkVShw2Fz9+/0R3XZGgZjYsmtWCmn2zU/MiOY5tog5MnSM3Vg==",+ "version": "4.5.93",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.93.tgz",+ "integrity": "sha512-VWVSuiv5hEje3WEtsSUTm4QmOTY0w95aLPhLtyiEFWQsTfO+SZ2I4qNnUnVtygPVpECeDGqL7xtwebc7bHA7EQ==","requires": {- "@tagspaces/tagspaces-indexer": "^4.5.92",+ "@tagspaces/tagspaces-indexer": "^4.5.93","@tagspaces/tagspaces-pdf-extraction": "^4.5.53",- "@tagspaces/tagspaces-workers": "^4.5.92",+ "@tagspaces/tagspaces-workers": "^4.5.93","find-free-ports": "^3.1.1","jsonwebtoken": "^9.0.2","ws": "^8.18.3"@@ -2306,9 +2306,9 @@"integrity": "sha512-hQebewth9i5qkf0a0u06iFaxQssk5ZnPBBggsa1vk8zCYaZoz9IZXpoRLTbEOrYdqfrjvcxU00gYoCPgmXugKA=="},"form-data": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz",- "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==",+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==","requires": {"asynckit": "^0.4.0","combined-stream": "^1.0.8",diff --git a/release/app/package.json b/release/app/package.jsonindex e2cf6368e..449bf8a9f 100644--- a/release/app/package.json+++ b/release/app/package.json@@ -19,8 +19,8 @@"dependencies": {"@elife/pm2": "3.6.1","@tagspaces/extensions": "1.0.197",- "@tagspaces/tagspaces-common-node": "4.5.92",- "@tagspaces/tagspaces-ws": "4.5.92",+ "@tagspaces/tagspaces-common-node": "4.5.93",+ "@tagspaces/tagspaces-ws": "4.5.93","sharp": "0.32.6","ws": "8.18.1"},diff --git a/src/renderer/hooks/IOActionsContextProvider.tsx b/src/renderer/hooks/IOActionsContextProvider.tsxindex 928051d3e..87601b363 100644--- a/src/renderer/hooks/IOActionsContextProvider.tsx+++ b/src/renderer/hooks/IOActionsContextProvider.tsx@@ -2141,20 +2141,28 @@ export const IOActionsContextProvider = ({}function setThumbnailImageChange(entry: TS.FileSystemEntry) {+ const location = findLocation(entry.locationID);if (- currentLocation?.haveObjectStoreSupport() ||- currentLocation?.haveWebDavSupport()+ location &&+ (location?.haveObjectStoreSupport() || location?.haveWebDavSupport())) {// reload cache- const folderThumbPath = getThumbFileLocationForDirectory(- entry.path,- currentLocation?.getDirSeparator(),- );- currentLocation- .generateURLforPath(folderThumbPath, 604800)- .then(() => setThumbnailImageChangeAction(entry));+ if (entry.isFile) {+ location.delUrlCache(entry.meta.thumbPath);+ setThumbnailImageChangeAction(entry);+ } else {+ // reload cache for folder+ const folderThumbPath = getThumbFileLocationForDirectory(+ entry.path,+ location?.getDirSeparator(),+ );+ location+ .generateURLforPath(folderThumbPath, 604800)+ .then(() => setThumbnailImageChangeAction(entry));+ }+ } else {+ setThumbnailImageChangeAction(entry);}- setThumbnailImageChangeAction(entry);}function setThumbnailImageChangeAction(entry: TS.FileSystemEntry) {diff --git a/src/renderer/utils/CommonLocation.ts b/src/renderer/utils/CommonLocation.tsindex 72df3dbc7..c390706ab 100644--- a/src/renderer/utils/CommonLocation.ts+++ b/src/renderer/utils/CommonLocation.ts@@ -237,10 +237,12 @@ export class CommonLocation implements TS.Location {* @param thumbPath* @param dt* // isLocalFile - force to generate local URL+ * @param expirationInSeconds*/getThumbPath = (thumbPath: string,dt = undefined,+ expirationInSeconds = 900,): Promise<string | undefined> => {if (!thumbPath) {return Promise.resolve(undefined);@@ -251,7 +253,7 @@ export class CommonLocation implements TS.Location {return Promise.resolve(thumbPath);}- return this.getURLforPathInt(thumbPath);+ return this.getURLforPathInt(thumbPath, expirationInSeconds);}const normalizedUrl = this.normalizeUrl(thumbPath) + (dt ? '?' + dt : '');@@ -282,6 +284,7 @@ export class CommonLocation implements TS.Location {getBgndPath = (bgndPath: string,dt = undefined,+ expirationInSeconds = 900,): Promise<string | undefined> => {if (!bgndPath) {return Promise.resolve(undefined);@@ -292,7 +295,7 @@ export class CommonLocation implements TS.Location {return Promise.resolve(bgndPath);}- return this.getURLforPathInt(bgndPath);+ return this.getURLforPathInt(bgndPath, expirationInSeconds);}const normalizedUrl = this.normalizeUrl(bgndPath) + (dt ? '?' + dt : '');@@ -449,6 +452,10 @@ export class CommonLocation implements TS.Location {return Promise.reject(new Error('checkDirExist: not implemented'));};+ delUrlCache = (path) => {+ delete this.urlCache[path];+ };+getURLforPathInt = async (path: string,expirationInSeconds: number = 900,@@ -483,7 +490,7 @@ export class CommonLocation implements TS.Location {url = this.ioAPI.getURLforPath(path);}}- if (url) {+ if (url && expirationInSeconds > 0) {this.urlCache[path] = {url: url,expirationTime: new Date().getTime() + expirationInSeconds * 1000,diff --git a/tests/e2e/perspective-kanban.pw.e2e.js b/tests/e2e/perspective-kanban.pw.e2e.jsindex 9fc740929..bb6de5fb3 100644--- a/tests/e2e/perspective-kanban.pw.e2e.js+++ b/tests/e2e/perspective-kanban.pw.e2e.js@@ -393,6 +393,7 @@ test.describe('TST49 - Perspective KanBan', () => {});test('TST4915 - Load thumbnails for board, column and cards [web,minio,electron,_pro]', async () => {+ //board thumbnailawait setPerspectiveSetting('kanban','[data-tid=kanBanPerspectiveToggleShowDetails]',@@ -415,9 +416,59 @@ test.describe('TST49 - Perspective KanBan', () => {expect(initThumbStyle).not.toBe(newStyle);- /*await setPerspectiveSetting(+ //column thumbnail+ await setPerspectiveSetting('kanban','[data-tid=kanBanPerspectiveToggleShowSubFolderDetails]',- );*/+ );+ const columnName = 'empty_folder2';+ await createColumn(columnName);+ await clickOn('[data-tid=' + columnName + 'KanBanColumnActionTID]');+ await clickOn('[data-tid=showProperties]');+ await expectElementExist(+ '[data-tid=OpenedTID' + columnName + ']',+ true,+ 5000,+ );++ await clickOn('[data-tid=changeThumbnailTID]');+ await clickOn('[data-tid=predefinedThumbnailsTID] > li');+ await clickOn('[data-tid=confirmCustomThumb]');++ const initColumnThumbStyle = await getAttribute(+ '[data-tid=' + columnName + 'KanBanColumnThumbTID]',+ 'style',+ );++ await clickOn('[data-tid=changeThumbnailTID]');+ await clickOn('[data-tid=predefinedThumbnailsTID] > li:nth-child(2)');+ await clickOn('[data-tid=confirmCustomThumb]');+ const newColumnThumbStyle = await waitUntilChanged(+ '[data-tid=' + columnName + 'KanBanColumnThumbTID]',+ initColumnThumbStyle,+ 'style',+ );++ expect(initColumnThumbStyle).not.toBe(newColumnThumbStyle);++ //card thumbnail+ const cardName = 'testCard';+ const cardId = await createMdCard(cardName, columnName);++ await expectElementExist(+ '[data-tid=OpenedTID' + cardName + '_md]',+ true,+ 5000,+ );++ const cardSelector = '[data-tid=fsEntryName_' + cardName + '_md]';+ const initScreenshot = await getElementScreenshot(cardSelector);++ await clickOn('[data-tid=changeThumbnailTID]');+ await clickOn('[data-tid=predefinedThumbnailsTID] > li');+ await clickOn('[data-tid=confirmCustomThumb]');++ const changeThumbScreenshot = await getElementScreenshot(cardSelector);+ expect(initScreenshot).not.toBe(changeThumbScreenshot);});});