fix(scan): restore MRI preview rendering and align analysis badge#66
fix(scan): restore MRI preview rendering and align analysis badge#66aarushlohit wants to merge 5 commits into
Conversation
|
@aarushlohit remove ready for analysis written there. also show me scan part ss too when entire process takes place over there, image preview was broken. refer issue ss for it. |
Thank you for the review. I'll update the implementation by removing the duplicate "Ready for Analysis" text/badge from the fallback preview section and keep the status indicator only in its designated location. I'll also upload additional screenshots demonstrating the actual image preview rendering correctly for supported image formats (PNG/JPG), along with the complete upload flow, so the fix for the broken preview can be verified against the issue requirements. Updating the PR shortly. |
|
resolve merge conflict |
Okay |
Screenshots added:
Commit: |
|
Resolved the remaining GitHub merge conflicts against
Latest commit: |
|
@Brijeshthummar02 fixed now for review |
|
@aarushlohit 1 single commit only |
Summary
Fixes the MRI Scan preview issue where uploaded MRI files displayed a broken image placeholder instead of a valid preview, and aligns the "Ready for Analysis" badge for improved UI consistency.
Closes #61
Type of Change
Changes Made
MRI Preview Fix
URL.createObjectURL(file)URL.revokeObjectURLBadge Alignment Fix
Root Cause
TIFF MRI files passed validation but Chromium cannot render
image/tifffiles directly inside an<img>element. This caused the preview to fail and display a broken image icon.Validation Performed
Screenshots
Before
Broken MRI preview and badge alignment issue.
After
MRI preview fallback handling works correctly and badge is centered.
Files Modified
Additional Notes
This fix prevents broken image placeholders for unsupported MRI formats while maintaining a clear indication that the uploaded scan is ready for analysis.