Skip to content

Conversation

@makseq
Copy link
Member

@makseq makseq commented Feb 4, 2026

Summary

This PR adds the ability to view original storage URLs (e.g., s3://bucket/file.jpg, gs://...) in the Task Source Viewer modal instead of resolved proxy URLs (/tasks/.../resolve/?fileuri=...). A new "Resolve URLs" toggle in the modal header allows users to switch between viewing modes. This is particularly useful for debugging storage configurations and understanding the actual data source paths.

Changes

Backend: Extended the /api/tasks/<id>/ endpoint to respect the resolve_uri query parameter (previously it was hardcoded to true). When resolve_uri=false, the API returns original storage URLs without converting them to proxy URLs. This aligns the detail endpoint behavior with the list endpoint (/api/tasks/) which already supported this parameter.

Frontend: Added a "Resolve URLs" toggle to the ViewToggle component alongside the existing Code/Interactive view switcher. The TaskSourceViewer component now manages this state, persists the user preference to localStorage, and reloads task data when the toggle changes. By default, the toggle is OFF to show original URLs, making it easier for users to inspect their storage configurations.

Bonus: Fixed very annoying behavior for modals in web/libs/ui/src/lib/modal/ModalPopup.tsx when a mouse click occurred inside a modal and the mouse was released outside the modal; it caused the modal to close, so you could not select text normally.


image image

@makseq makseq requested a review from a team as a code owner February 4, 2026 00:14
@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 3b6e902
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/69834c30a12e7600085e9fa4

@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 3b6e902
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/69834c30db52d00008cb5e9d
😎 Deploy Preview https://deploy-preview-9318--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 3b6e902
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/69834c30d1c51e00082d0c52

@github-actions github-actions bot added the fix label Feb 4, 2026
@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 3b6e902
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/69834c303be91100082feeb0
😎 Deploy Preview https://deploy-preview-9318--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.64%. Comparing base (fd850db) to head (3b6e902).
⚠️ Report is 2 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
web/libs/ui/src/lib/modal/ModalPopup.tsx 0.00% 8 Missing ⚠️
web/libs/ui/src/lib/json-viewer/json-viewer.tsx 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9318      +/-   ##
===========================================
- Coverage    65.41%   64.64%   -0.78%     
===========================================
  Files          847      847              
  Lines        66186    66236      +50     
  Branches     11567    11569       +2     
===========================================
- Hits         43293    42815     -478     
- Misses       22889    23417     +528     
  Partials         4        4              
Flag Coverage Δ
lsf-e2e 48.64% <0.00%> (-2.57%) ⬇️
lsf-integration 47.20% <0.00%> (-0.01%) ⬇️
lsf-unit 6.76% <ø> (ø)
pytests 81.71% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@makseq makseq enabled auto-merge (squash) February 4, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants