Repository navigation
Fix environment browser preview image URLs (#7849) - #7850
kellyguo11 merged 1 commit into
Conversation
(cherry picked from commit 50ea058)
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
Centralizes environment-browser preview image URL resolution so tasks/ images use the remote image CDN while other mapped images use the documentation-local _static/ directory. Both detail previews and task cards now follow the same routing rule.
- Design and architecture: The shared
previewImageUrlhelper removes the previous inconsistency between the two preview-image consumers. Thetasks/prefix is now the explicit discriminator between CDN-hosted and documentation-local assets; future mappings must follow or extend that convention. - API: No public Python, extension, CLI, or documentation API is changed. The affected surface is limited to browser-side image URL construction, with task objects continuing to flow through
previewImageForas before. - Implementation: Both changed call sites use the helper defined earlier in the same scope. The CDN base has the trailing slash required for correct relative URL resolution, while non-
tasks/paths use the same documentation-relative_staticresolution pattern already used for preview videos. The remaining integration dependency is that locally routed mappings must correspond to assets under the built documentation’s_statictree.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
|
(cherry picked from commit 50ea058) #7849
Description
Important
Confirm the pull request base before submitting. Target
developfor allcontributions. The
release/3.0.0-beta2branch is a frozen stable landingsnapshot and is not used for ongoing maintenance.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Release backport
developScreenshots
Please attach before and after screenshots of the change if applicable.
Checklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there