@adminforth/bulk-ai-flow 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.log +2 -2
- package/custom/VisionAction.vue +25 -23
- package/dist/custom/VisionAction.vue +25 -23
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -13,5 +13,5 @@ custom/package-lock.json
|
|
|
13
13
|
custom/package.json
|
|
14
14
|
custom/tsconfig.json
|
|
15
15
|
|
|
16
|
-
sent 92,
|
|
17
|
-
total size is
|
|
16
|
+
sent 92,827 bytes received 172 bytes 185,998.00 bytes/sec
|
|
17
|
+
total size is 92,182 speedup is 0.99
|
package/custom/VisionAction.vue
CHANGED
|
@@ -1078,8 +1078,7 @@ async function regenerateCell(recordInfo: any) {
|
|
|
1078
1078
|
await new Promise(resolve => setTimeout(resolve, props.meta.refreshRates?.fillPlainFields));
|
|
1079
1079
|
}
|
|
1080
1080
|
} while (res.job?.status === 'in_progress');
|
|
1081
|
-
|
|
1082
|
-
if (res.job?.status === 'failed' || !res.ok) {
|
|
1081
|
+
if (res.job?.status === 'failed' || !res.ok || !res) {
|
|
1083
1082
|
adminforth.alert({
|
|
1084
1083
|
message: t(`Regeneration action failed for record: ${recordInfo.recordId}. Error: ${res.job?.error || 'Unknown error'}`),
|
|
1085
1084
|
variant: 'danger',
|
|
@@ -1094,28 +1093,31 @@ async function regenerateCell(recordInfo: any) {
|
|
|
1094
1093
|
}
|
|
1095
1094
|
regeneratingFieldsStatus.value[recordInfo.recordId][recordInfo.fieldName] = false;
|
|
1096
1095
|
return;
|
|
1096
|
+
} else if (res.job?.status === 'completed') {
|
|
1097
|
+
const index = selected.value.findIndex(item => String(item[primaryKey]) === String(recordInfo.recordId));
|
|
1098
|
+
|
|
1099
|
+
const pk = selected.value[index]?.[primaryKey];
|
|
1100
|
+
if (pk) {
|
|
1101
|
+
selected.value[index] = {
|
|
1102
|
+
...selected.value[index],
|
|
1103
|
+
...res.job.result,
|
|
1104
|
+
isChecked: true,
|
|
1105
|
+
[primaryKey]: pk,
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
if (actionType === 'analyze') {
|
|
1109
|
+
if (imageToTextErrorMessages.value[index]) {
|
|
1110
|
+
imageToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1111
|
+
}
|
|
1112
|
+
isAnalizingFields.value = false;
|
|
1113
|
+
} else if (actionType === 'analyze_no_images') {
|
|
1114
|
+
if (textToTextErrorMessages.value[index]) {
|
|
1115
|
+
textToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1116
|
+
}
|
|
1117
|
+
isAnalizingImages.value = false;
|
|
1118
|
+
}
|
|
1119
|
+
regeneratingFieldsStatus.value[recordInfo.recordId][recordInfo.fieldName] = false;
|
|
1097
1120
|
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
const index = selected.value.findIndex(item => String(item[primaryKey]) === String(recordInfo.recordId));
|
|
1101
|
-
|
|
1102
|
-
const pk = selected.value[index]?.[primaryKey];
|
|
1103
|
-
if (pk) {
|
|
1104
|
-
selected.value[index] = {
|
|
1105
|
-
...selected.value[index],
|
|
1106
|
-
...res.job.result,
|
|
1107
|
-
isChecked: true,
|
|
1108
|
-
[primaryKey]: pk,
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
if (actionType === 'analyze') {
|
|
1112
|
-
imageToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1113
|
-
isAnalizingFields.value = false;
|
|
1114
|
-
} else if (actionType === 'analyze_no_images') {
|
|
1115
|
-
textToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1116
|
-
isAnalizingImages.value = false;
|
|
1117
|
-
}
|
|
1118
|
-
regeneratingFieldsStatus.value[recordInfo.recordId][recordInfo.fieldName] = false;
|
|
1119
1121
|
}
|
|
1120
1122
|
|
|
1121
1123
|
const beforeUnloadHandler = (event) => {
|
|
@@ -1078,8 +1078,7 @@ async function regenerateCell(recordInfo: any) {
|
|
|
1078
1078
|
await new Promise(resolve => setTimeout(resolve, props.meta.refreshRates?.fillPlainFields));
|
|
1079
1079
|
}
|
|
1080
1080
|
} while (res.job?.status === 'in_progress');
|
|
1081
|
-
|
|
1082
|
-
if (res.job?.status === 'failed' || !res.ok) {
|
|
1081
|
+
if (res.job?.status === 'failed' || !res.ok || !res) {
|
|
1083
1082
|
adminforth.alert({
|
|
1084
1083
|
message: t(`Regeneration action failed for record: ${recordInfo.recordId}. Error: ${res.job?.error || 'Unknown error'}`),
|
|
1085
1084
|
variant: 'danger',
|
|
@@ -1094,28 +1093,31 @@ async function regenerateCell(recordInfo: any) {
|
|
|
1094
1093
|
}
|
|
1095
1094
|
regeneratingFieldsStatus.value[recordInfo.recordId][recordInfo.fieldName] = false;
|
|
1096
1095
|
return;
|
|
1096
|
+
} else if (res.job?.status === 'completed') {
|
|
1097
|
+
const index = selected.value.findIndex(item => String(item[primaryKey]) === String(recordInfo.recordId));
|
|
1098
|
+
|
|
1099
|
+
const pk = selected.value[index]?.[primaryKey];
|
|
1100
|
+
if (pk) {
|
|
1101
|
+
selected.value[index] = {
|
|
1102
|
+
...selected.value[index],
|
|
1103
|
+
...res.job.result,
|
|
1104
|
+
isChecked: true,
|
|
1105
|
+
[primaryKey]: pk,
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
if (actionType === 'analyze') {
|
|
1109
|
+
if (imageToTextErrorMessages.value[index]) {
|
|
1110
|
+
imageToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1111
|
+
}
|
|
1112
|
+
isAnalizingFields.value = false;
|
|
1113
|
+
} else if (actionType === 'analyze_no_images') {
|
|
1114
|
+
if (textToTextErrorMessages.value[index]) {
|
|
1115
|
+
textToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1116
|
+
}
|
|
1117
|
+
isAnalizingImages.value = false;
|
|
1118
|
+
}
|
|
1119
|
+
regeneratingFieldsStatus.value[recordInfo.recordId][recordInfo.fieldName] = false;
|
|
1097
1120
|
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
const index = selected.value.findIndex(item => String(item[primaryKey]) === String(recordInfo.recordId));
|
|
1101
|
-
|
|
1102
|
-
const pk = selected.value[index]?.[primaryKey];
|
|
1103
|
-
if (pk) {
|
|
1104
|
-
selected.value[index] = {
|
|
1105
|
-
...selected.value[index],
|
|
1106
|
-
...res.job.result,
|
|
1107
|
-
isChecked: true,
|
|
1108
|
-
[primaryKey]: pk,
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
if (actionType === 'analyze') {
|
|
1112
|
-
imageToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1113
|
-
isAnalizingFields.value = false;
|
|
1114
|
-
} else if (actionType === 'analyze_no_images') {
|
|
1115
|
-
textToTextErrorMessages.value[index][recordInfo.fieldName] = '';
|
|
1116
|
-
isAnalizingImages.value = false;
|
|
1117
|
-
}
|
|
1118
|
-
regeneratingFieldsStatus.value[recordInfo.recordId][recordInfo.fieldName] = false;
|
|
1119
1121
|
}
|
|
1120
1122
|
|
|
1121
1123
|
const beforeUnloadHandler = (event) => {
|