Skip to content

TagSpaces is an offline, open source, document manager with tagging support

e2e fix indexer

sytolkd095bd7fda0d
diff --git a/package-lock.json b/package-lock.json
index f188193f1..c8704caf8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,10 +22,10 @@
"@mui/lab": "6.0.0-beta.31",
"@mui/material": "^6.4.8",
"@mui/x-date-pickers": "^7.26.0",
- "@tagspaces/tagspaces-common": "4.5.79",
- "@tagspaces/tagspaces-common-aws3": "4.5.81",
- "@tagspaces/tagspaces-common-cordova": "4.5.79",
- "@tagspaces/tagspaces-indexer": "4.5.79",
+ "@tagspaces/tagspaces-common": "4.5.82",
+ "@tagspaces/tagspaces-common-aws3": "4.5.82",
+ "@tagspaces/tagspaces-common-cordova": "4.5.82",
+ "@tagspaces/tagspaces-indexer": "4.5.82",
"aws-amplify": "^4.3.8",
"clone": "^2.1.2",
"coordinate-parser": "^1.0.7",
@@ -19268,9 +19268,9 @@
}
},
"node_modules/@tagspaces/tagspaces-common": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.79.tgz",
- "integrity": "sha512-8GtURJV+7PelACy1EEOtSMidnxnEErfoHWMhSuKA8ACNyaB0JhNlM9MMfcY/GcqPI5go/gmkn3qieAQh9CIRlw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.82.tgz",
+ "integrity": "sha512-39MlbguAgNToKrnVGKhascftFOh+oIuf4dN+uv8fmarX/hS4aIjlvkradH15ZHOZrAYas6Po5H+PYWAJhajIsA==",
"license": "MIT",
"dependencies": {
"dompurify": "^3.2.3",
@@ -19282,25 +19282,25 @@
}
},
"node_modules/@tagspaces/tagspaces-common-aws3": {
- "version": "4.5.81",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.5.81.tgz",
- "integrity": "sha512-vr5uvxYHhVCkSecerLsMraTE9dxrKoin9tvK87Dm1dLypM2BWgcISDP9Ji1LxvcMGQK7Tha8SEcVzhcjDrHq7Q==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.5.82.tgz",
+ "integrity": "sha512-R7jp9r9Z/3Ba2tDUk81vXTxuOiP3ebYrqMxUI8hueewD12keftAMQ6fuXqkSCUpEuy5g0AoTInwLxVbaeM5xVg==",
"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.79",
+ "@tagspaces/tagspaces-common": "^4.5.82",
"crypto-js": "^4.2.0"
}
},
"node_modules/@tagspaces/tagspaces-common-cordova": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.5.79.tgz",
- "integrity": "sha512-ISaWDmueOhSFzgdj/OYMQDwuQcT3SgH/F8Rz/d2oewwy8EwAgFb4D5tNXGrgwbWPEJ7+xoEl8DlkgiU8GlBrVA==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.5.82.tgz",
+ "integrity": "sha512-acmQNeNP5aVn9zTpsq1dmH5z9KcaIvleGADWDtNC1/Y6CsJf4zzVcaNRgxHXjYu2Jb/WLX74Asp0TM5PhSonYg==",
"license": "MIT",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.5.79"
+ "@tagspaces/tagspaces-common": "^4.5.82"
}
},
"node_modules/@tagspaces/tagspaces-common/node_modules/cssstyle": {
@@ -19507,12 +19507,12 @@
}
},
"node_modules/@tagspaces/tagspaces-indexer": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.79.tgz",
- "integrity": "sha512-DMgS9whxAtsRUxyQdY2yyTobvjslW/h9/XHz7/KKkerhPIuYke5hVRIHMmZhR+Op/Bu/K/gSbGxrECkG9aAWRQ==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.82.tgz",
+ "integrity": "sha512-AxkvV2Y6DzleCS8ujhGk64f7KRbIdGEPP7Uy/Ha65MzcCHxqGw0/zS5kTTIRpLkJy/FoOm6WBEe6c6oGH2Zncw==",
"license": "MIT",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.5.79"
+ "@tagspaces/tagspaces-common": "^4.5.82"
}
},
"node_modules/@tagspacespro/tagspacespro": {
diff --git a/package.json b/package.json
index f4756a085..93615c1dc 100644
--- a/package.json
+++ b/package.json
@@ -173,10 +173,10 @@
"@mui/lab": "6.0.0-beta.31",
"@mui/material": "^6.4.8",
"@mui/x-date-pickers": "^7.26.0",
- "@tagspaces/tagspaces-common": "4.5.79",
- "@tagspaces/tagspaces-common-aws3": "4.5.81",
- "@tagspaces/tagspaces-common-cordova": "4.5.79",
- "@tagspaces/tagspaces-indexer": "4.5.79",
+ "@tagspaces/tagspaces-common": "4.5.82",
+ "@tagspaces/tagspaces-common-aws3": "4.5.82",
+ "@tagspaces/tagspaces-common-cordova": "4.5.82",
+ "@tagspaces/tagspaces-indexer": "4.5.82",
"aws-amplify": "^4.3.8",
"clone": "^2.1.2",
"coordinate-parser": "^1.0.7",
diff --git a/release/app/package-lock.json b/release/app/package-lock.json
index 9ce461e68..2ffdb7625 100644
--- a/release/app/package-lock.json
+++ b/release/app/package-lock.json
@@ -12,8 +12,8 @@
"dependencies": {
"@elife/pm2": "3.6.1",
"@tagspaces/extensions": "1.0.191",
- "@tagspaces/tagspaces-common-node": "4.5.79",
- "@tagspaces/tagspaces-ws": "4.5.81",
+ "@tagspaces/tagspaces-common-node": "4.5.82",
+ "@tagspaces/tagspaces-ws": "4.5.82",
"sharp": "0.32.6",
"ws": "8.18.1"
},
@@ -159,9 +159,9 @@
}
},
"node_modules/@tagspaces/tagspaces-common": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.79.tgz",
- "integrity": "sha512-8GtURJV+7PelACy1EEOtSMidnxnEErfoHWMhSuKA8ACNyaB0JhNlM9MMfcY/GcqPI5go/gmkn3qieAQh9CIRlw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.82.tgz",
+ "integrity": "sha512-39MlbguAgNToKrnVGKhascftFOh+oIuf4dN+uv8fmarX/hS4aIjlvkradH15ZHOZrAYas6Po5H+PYWAJhajIsA==",
"dependencies": {
"dompurify": "^3.2.3",
"dotenv": "^16.0.2",
@@ -172,22 +172,22 @@
}
},
"node_modules/@tagspaces/tagspaces-common-node": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.79.tgz",
- "integrity": "sha512-FjNSQ4f4qAg/Rwzk+NPZGpOw83YucEikZ+V/c6bVB/dRP2Mu+ANOG1jYZw0JPr4RSve0jrZjnOJ+WvkzuaPmXw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.82.tgz",
+ "integrity": "sha512-qOf05doMd+s7G9T3hh20dhO/RmKpboYOcQG7QXgu8UXxJ19XNA7gvxTSfCy9YCgzZOR37GbMwCVgTwAGyi7U8w==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.5.79",
+ "@tagspaces/tagspaces-common": "^4.5.82",
"adm-zip": "0.5.10",
"fs-extra": "^10.0.0",
"klaw": "^4.1.0"
}
},
"node_modules/@tagspaces/tagspaces-indexer": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.79.tgz",
- "integrity": "sha512-DMgS9whxAtsRUxyQdY2yyTobvjslW/h9/XHz7/KKkerhPIuYke5hVRIHMmZhR+Op/Bu/K/gSbGxrECkG9aAWRQ==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.82.tgz",
+ "integrity": "sha512-AxkvV2Y6DzleCS8ujhGk64f7KRbIdGEPP7Uy/Ha65MzcCHxqGw0/zS5kTTIRpLkJy/FoOm6WBEe6c6oGH2Zncw==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.5.79"
+ "@tagspaces/tagspaces-common": "^4.5.82"
}
},
"node_modules/@tagspaces/tagspaces-pdf-extraction": {
@@ -208,25 +208,25 @@
}
},
"node_modules/@tagspaces/tagspaces-workers": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.79.tgz",
- "integrity": "sha512-8mb+FjNhmASqk362bnaL3dut+zNrx8ZCclrBAmaa6zmTBytMflBnuLjiZfHq15WXxcHqTSG0Tc3onDmuqDvUvw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.82.tgz",
+ "integrity": "sha512-1nFllTsV2kk2GfIvCfF/WmZ27GTsCT902YF+CN7tN2NgZCz9SmC8UezULbL3uPe1Tna42h7pWjwQfaQKh0l1Lg==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.5.79",
- "@tagspaces/tagspaces-common-node": "^4.5.79",
+ "@tagspaces/tagspaces-common": "^4.5.82",
+ "@tagspaces/tagspaces-common-node": "^4.5.82",
"@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.81",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.81.tgz",
- "integrity": "sha512-K+vBluk6TAxejIHkceyTFdPHT6TR6tJL4yGqG+T5TZ9QasxYQZPwNZH2SRKctnS99rHZmurq8b9PuEwjXhHiIQ==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.82.tgz",
+ "integrity": "sha512-G7WoN/Z8EQOaoptQI/JTp4wZliqS/i71H4LUDU/H78Xd2U93OIIVvR1+FljVxjWuA8mYQqWa/7IjANYWbXykbA==",
"dependencies": {
- "@tagspaces/tagspaces-indexer": "^4.5.79",
+ "@tagspaces/tagspaces-indexer": "^4.5.82",
"@tagspaces/tagspaces-pdf-extraction": "^4.5.53",
- "@tagspaces/tagspaces-workers": "^4.5.79",
+ "@tagspaces/tagspaces-workers": "^4.5.82",
"find-free-ports": "^3.1.1",
"jsonwebtoken": "^8.5.1",
"ws": "^8.15.1"
@@ -1787,9 +1787,9 @@
}
},
"@tagspaces/tagspaces-common": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.79.tgz",
- "integrity": "sha512-8GtURJV+7PelACy1EEOtSMidnxnEErfoHWMhSuKA8ACNyaB0JhNlM9MMfcY/GcqPI5go/gmkn3qieAQh9CIRlw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.82.tgz",
+ "integrity": "sha512-39MlbguAgNToKrnVGKhascftFOh+oIuf4dN+uv8fmarX/hS4aIjlvkradH15ZHOZrAYas6Po5H+PYWAJhajIsA==",
"requires": {
"dompurify": "^3.2.3",
"dotenv": "^16.0.2",
@@ -1800,22 +1800,22 @@
}
},
"@tagspaces/tagspaces-common-node": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.79.tgz",
- "integrity": "sha512-FjNSQ4f4qAg/Rwzk+NPZGpOw83YucEikZ+V/c6bVB/dRP2Mu+ANOG1jYZw0JPr4RSve0jrZjnOJ+WvkzuaPmXw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.82.tgz",
+ "integrity": "sha512-qOf05doMd+s7G9T3hh20dhO/RmKpboYOcQG7QXgu8UXxJ19XNA7gvxTSfCy9YCgzZOR37GbMwCVgTwAGyi7U8w==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.5.79",
+ "@tagspaces/tagspaces-common": "^4.5.82",
"adm-zip": "0.5.10",
"fs-extra": "^10.0.0",
"klaw": "^4.1.0"
}
},
"@tagspaces/tagspaces-indexer": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.79.tgz",
- "integrity": "sha512-DMgS9whxAtsRUxyQdY2yyTobvjslW/h9/XHz7/KKkerhPIuYke5hVRIHMmZhR+Op/Bu/K/gSbGxrECkG9aAWRQ==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.82.tgz",
+ "integrity": "sha512-AxkvV2Y6DzleCS8ujhGk64f7KRbIdGEPP7Uy/Ha65MzcCHxqGw0/zS5kTTIRpLkJy/FoOm6WBEe6c6oGH2Zncw==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.5.79"
+ "@tagspaces/tagspaces-common": "^4.5.82"
}
},
"@tagspaces/tagspaces-pdf-extraction": {
@@ -1836,25 +1836,25 @@
}
},
"@tagspaces/tagspaces-workers": {
- "version": "4.5.79",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.79.tgz",
- "integrity": "sha512-8mb+FjNhmASqk362bnaL3dut+zNrx8ZCclrBAmaa6zmTBytMflBnuLjiZfHq15WXxcHqTSG0Tc3onDmuqDvUvw==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.82.tgz",
+ "integrity": "sha512-1nFllTsV2kk2GfIvCfF/WmZ27GTsCT902YF+CN7tN2NgZCz9SmC8UezULbL3uPe1Tna42h7pWjwQfaQKh0l1Lg==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.5.79",
- "@tagspaces/tagspaces-common-node": "^4.5.79",
+ "@tagspaces/tagspaces-common": "^4.5.82",
+ "@tagspaces/tagspaces-common-node": "^4.5.82",
"@tagspaces/tagspaces-pdf-extraction": "^4.5.53",
"@tagspaces/tagspaces-thumbgen-image": "^4.5.60",
"fswin": "^3.24.829"
}
},
"@tagspaces/tagspaces-ws": {
- "version": "4.5.81",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.81.tgz",
- "integrity": "sha512-K+vBluk6TAxejIHkceyTFdPHT6TR6tJL4yGqG+T5TZ9QasxYQZPwNZH2SRKctnS99rHZmurq8b9PuEwjXhHiIQ==",
+ "version": "4.5.82",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.82.tgz",
+ "integrity": "sha512-G7WoN/Z8EQOaoptQI/JTp4wZliqS/i71H4LUDU/H78Xd2U93OIIVvR1+FljVxjWuA8mYQqWa/7IjANYWbXykbA==",
"requires": {
- "@tagspaces/tagspaces-indexer": "^4.5.79",
+ "@tagspaces/tagspaces-indexer": "^4.5.82",
"@tagspaces/tagspaces-pdf-extraction": "^4.5.53",
- "@tagspaces/tagspaces-workers": "^4.5.79",
+ "@tagspaces/tagspaces-workers": "^4.5.82",
"find-free-ports": "^3.1.1",
"jsonwebtoken": "^8.5.1",
"ws": "^8.15.1"
diff --git a/release/app/package.json b/release/app/package.json
index ad2b0a027..675a17eb6 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.191",
- "@tagspaces/tagspaces-common-node": "4.5.79",
- "@tagspaces/tagspaces-ws": "4.5.81",
+ "@tagspaces/tagspaces-common-node": "4.5.82",
+ "@tagspaces/tagspaces-ws": "4.5.82",
"sharp": "0.32.6",
"ws": "8.18.1"
},
diff --git a/src/renderer/components/AiPropertiesTab.tsx b/src/renderer/components/AiPropertiesTab.tsx
index 1571f0540..db7dbfaae 100644
--- a/src/renderer/components/AiPropertiesTab.tsx
+++ b/src/renderer/components/AiPropertiesTab.tsx
@@ -38,7 +38,7 @@ function AiPropertiesTab(props: Props) {
return (
<Box position="relative" display="inline-flex">
<AiGenDescButton />
- {openedEntry.meta.description && (
+ {openedEntry.meta?.description && (
<AiGenTagsButton fromDescription={true} />
)}
</Box>
diff --git a/src/renderer/components/EditDescriptionButtons.tsx b/src/renderer/components/EditDescriptionButtons.tsx
index 6b7926025..fa37bd040 100644
--- a/src/renderer/components/EditDescriptionButtons.tsx
+++ b/src/renderer/components/EditDescriptionButtons.tsx
@@ -206,7 +206,7 @@ const EditDescriptionButtons: React.FC<ButtonsProps> = ({
>
<AiGenDescButton disabled={!Pro} variant="outlined" />
</ProTooltip>
- {openedEntry.meta.description && (
+ {openedEntry.meta?.description && (
<>
<Box
style={{ marginLeft: AppConfig.defaultSpaceBetweenButtons }}
diff --git a/src/renderer/hooks/OpenedEntryContextProvider.tsx b/src/renderer/hooks/OpenedEntryContextProvider.tsx
index e6f050994..ef3582fef 100644
--- a/src/renderer/hooks/OpenedEntryContextProvider.tsx
+++ b/src/renderer/hooks/OpenedEntryContextProvider.tsx
@@ -628,7 +628,7 @@ export const OpenedEntryContextProvider = ({
entryForOpening.url = fsEntry.url;
}
//set meta and generate new meta id if not exist
- if (!fsEntry.meta || !fsEntry.meta.id) {
+ if (fsEntry.isFile && (!fsEntry.meta || !fsEntry.meta.id)) {
const meta: TS.FileSystemEntryMeta = await getMetadata(
fsEntry.path,
fsEntry.uuid,