diff --git a/src/reporter/src/api/client.js b/src/reporter/src/api/client.js index 4995d6e2..b9a99cdf 100644 --- a/src/reporter/src/api/client.js +++ b/src/reporter/src/api/client.js @@ -48,6 +48,15 @@ export const tdd = { return fetchJson('/api/report-data'); }, + /** + * Get full comparison details (lightweight + heavy fields) + * @param {string} id - Comparison ID, signature, or name + * @returns {Promise} + */ + async getComparison(id) { + return fetchJson(`/api/comparison/${encodeURIComponent(id)}`); + }, + /** * Accept a single baseline * @param {string} id - Comparison ID diff --git a/src/reporter/src/components/comparison/fullscreen-viewer.jsx b/src/reporter/src/components/comparison/fullscreen-viewer.jsx index dfe3395b..9bbb3722 100644 --- a/src/reporter/src/components/comparison/fullscreen-viewer.jsx +++ b/src/reporter/src/components/comparison/fullscreen-viewer.jsx @@ -540,7 +540,8 @@ function FullscreenViewerInner({ {/* Regions toggle - only show if comparison has regions */} - {comparison?.confirmedRegions?.length > 0 && ( + {(comparison?.confirmedRegions?.length > 0 || + comparison?.hasConfirmedRegions) && ( {/* Regions toggle - mobile */} - {comparison?.confirmedRegions?.length > 0 && ( + {(comparison?.confirmedRegions?.length > 0 || + comparison?.hasConfirmedRegions) && (