fix(sr): sr hydration and load was not working, Screenshot Comparison, and Testing (#4814)
This commit is contained in:
1 parent
1f5c60bbda
commit
9233143b9d
23 files changed
+213
-21
No files matched your search
@@ -140,19 +140,16 @@ function commandsModule({
|
||||
)?.[0];
|
||||
|
||||
if (previousReferencedDisplaySetStoreKey) {
|
||||
if (referencedImageId) {
|
||||
setPositionPresentation(previousReferencedDisplaySetStoreKey, {
|
||||
viewReference: {
|
||||
referencedImageId,
|
||||
},
|
||||
});
|
||||
} else {
|
||||
setPositionPresentation(
|
||||
previousReferencedDisplaySetStoreKey,
|
||||
presentations.positionPresentation
|
||||
);
|
||||
}
|
||||
const presentationData = referencedImageId
|
||||
? {
|
||||
...presentations.positionPresentation,
|
||||
viewReference: {
|
||||
referencedImageId,
|
||||
},
|
||||
}
|
||||
: presentations.positionPresentation;
|
||||
|
||||
setPositionPresentation(previousReferencedDisplaySetStoreKey, presentationData);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,9 +47,19 @@ const RowComponent = ({
|
||||
{isChildOrParent && (
|
||||
<div style={{ paddingLeft: `${padding}px`, opacity: onToggle ? 1 : 0 }}>
|
||||
{row.areChildrenVisible ? (
|
||||
<Icons.ChevronDown onClick={handleToggle} />
|
||||
<div
|
||||
className="cursor-pointer p-1"
|
||||
onClick={handleToggle}
|
||||
>
|
||||
<Icons.ChevronDown />
|
||||
</div>
|
||||
) : (
|
||||
<Icons.ChevronRight onClick={handleToggle} />
|
||||
<div
|
||||
className="cursor-pointer p-1"
|
||||
onClick={handleToggle}
|
||||
>
|
||||
<Icons.ChevronRight />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
+4
-1
@@ -88,7 +88,8 @@ function TrackedMeasurementsContextProvider(
|
||||
m => trackedStudy === m.referenceStudyUID && trackedSeries.includes(m.referenceSeriesUID)
|
||||
);
|
||||
|
||||
const trackedMeasurement = trackedMeasurements[0];
|
||||
// Jump to the last tracked measurement - most recent
|
||||
const trackedMeasurement = trackedMeasurements[trackedMeasurements.length - 1];
|
||||
const referencedDisplaySetUID = trackedMeasurement.displaySetInstanceUID;
|
||||
|
||||
// update the previously stored positionPresentation with the new viewportId
|
||||
@@ -166,11 +167,13 @@ function TrackedMeasurementsContextProvider(
|
||||
hydrateStructuredReport: hydrateStructuredReport.bind(null, {
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
commandsManager,
|
||||
appConfig,
|
||||
}),
|
||||
promptLabelAnnotation: promptLabelAnnotation.bind(null, {
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
commandsManager,
|
||||
}),
|
||||
});
|
||||
machineOptions.guards = Object.assign({}, machineOptions.guards, {
|
||||
|
||||
+1
-1
@@ -216,7 +216,7 @@ export default function PanelStudyBrowserTracking({
|
||||
thumbnailSrc = await displaySet.getThumbnailSrc();
|
||||
}
|
||||
if (!thumbnailSrc) {
|
||||
let thumbnailSrc = await getImageSrc(imageId);
|
||||
const thumbnailSrc = await getImageSrc(imageId);
|
||||
displaySet.thumbnailSrc = thumbnailSrc;
|
||||
}
|
||||
newImageSrcEntry[dSet.displaySetInstanceUID] = thumbnailSrc;
|
||||
|
||||
Reference in new issue
Block a user