@measurequick/measurequick-report-generator 1.5.193 → 1.5.195
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/package.json
CHANGED
|
@@ -177,7 +177,7 @@ export async function getReport(payload, options = {}) {
|
|
|
177
177
|
y: yPos,
|
|
178
178
|
size: titleFontSize,
|
|
179
179
|
font: helveticaBold,
|
|
180
|
-
color: rgb(0.2, 0.
|
|
180
|
+
color: rgb(0.2, 0.2, 0.2), // Dark charcoal
|
|
181
181
|
});
|
|
182
182
|
yPos -= lineHeight * 1.5;
|
|
183
183
|
} else if (line.trim()) {
|
package/util.js
CHANGED
|
@@ -1079,8 +1079,12 @@ export function getAiSummary(payload) {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
// Check aiSummaries array on project
|
|
1081
1081
|
if (payload.project && payload.project.aiSummaries && payload.project.aiSummaries.length > 0) {
|
|
1082
|
-
// Return the most recent summary
|
|
1083
|
-
|
|
1082
|
+
// Return the most recent summary - extract text if it's an object
|
|
1083
|
+
const summary = payload.project.aiSummaries[payload.project.aiSummaries.length - 1];
|
|
1084
|
+
if (typeof summary === 'string') return summary;
|
|
1085
|
+
if (summary && summary.text) return summary.text;
|
|
1086
|
+
if (summary && summary.summary) return summary.summary;
|
|
1087
|
+
if (summary && summary.content) return summary.content;
|
|
1084
1088
|
}
|
|
1085
1089
|
return null;
|
|
1086
1090
|
}
|