Repository navigation
[Docs] Improve environment browser cards - #7644
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
The environment browser card rework is internally consistent, but two user-facing issues remain: the Core/Contrib/Warp selector is duplicated instead of moved, and grouped filtering can render a non-matching variant for a matching card.
- Design and architecture: Grouping related task suffix variants into cards and refreshing them through the shared selection state is self-contained. However, group-level filtering is disconnected from the variant selected for display, allowing the rendered card contents to contradict the active search.
- API: The DOM data-attribute integration remains aligned across the RST, JavaScript, and CSS. Widening the scope-button lookup from the command builder to the full document exposes the retained original selector and newly added selector as duplicate synchronized controls rather than completing the intended move.
- Implementation: Remove the original scope-selector markup when relocating it. Also make card construction or refresh select a matching variant when a group is included by the active filter, so the displayed task name and capability badges explain why the card matched.
Minor fixes needed. Posted 2 actionable findings inline.
Automated review; human maintainers own approval decisions.
| <option value="locomotion">Locomotion</option> | ||
| </select> | ||
| </label> | ||
| <div class="environment-scope-switch" role="group" aria-label="Task collection"> |
There was a problem hiding this comment.
🟡 Warning · Implementation — Scope selector duplicated rather than moved
The JS previously found these buttons via builder.querySelectorAll("[data-task-scope]"), so the original Core/Contrib/Warp group lives in the command-builder markup, which this diff does not remove. Adding a second group here leaves two identical selectors on the page, which is also why the active check had to change from identity to a dataset.taskScope comparison. Remove the original group from the builder markup.
| taskList.hidden = visibleTasks.length === 0; | ||
| }; | ||
| const groups = groupTasks(tasksForScope()); | ||
| const visibleGroups = [...groups.values()].filter((variants) => variants.some(matchesFilter)); |
There was a problem hiding this comment.
🔵 Suggestion · Implementation — Filtered card may show non-matching variant
A group stays visible when any variant satisfies matchesFilter, but refreshCard displays variants.find(t => t.task === state.task) || variants[0]. Searching a capability supported only by the Direct variant renders the Manager variant's name and badges, so the visible card contradicts the query while the count reports the matching variant. Pass the first matching variant into createTaskCard as the default active variant.
Greptile SummaryThis PR redesigns the documentation environment browser around grouped visual task cards, capability search and badges, variant selection, and a relocated scope selector.
Confidence Score: 3/5The PR is not safe to merge until card previews resolve correctly and capability searches display and select the variant that actually matched. The new card UI requests most previews from paths where the assets are not published, and capability filtering can present and select a variant that lacks the searched capability; the duplicated scope selector is an additional non-blocking UI concern. Files Needing Attention: docs/source/_static/css/environment-browser.js, docs/source/setup/environments.rst Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Scope[Scope selector] --> Tasks[Tasks for scope]
Search[Name or capability search] --> Filter[Filter task variants]
Tasks --> Group[Group related variants]
Filter --> Group
Group --> Card[Task card]
Card --> Variant[Selected variant]
Variant --> Preview[Preview and badges]
Variant --> Command[Generated command]
Reviews (1): Last reviewed commit: "Improve environment browser cards" | Re-trigger Greptile |
| const previewImageName = previewImageFor(activeTask).split("/").pop(); | ||
| image.src = new URL(`../../_images/${previewImageName}`, window.location.href).href; |
There was a problem hiding this comment.
Each new card discards the preview image’s directory and requests ../../_images/<basename>. However, previewImageFor() returns nested paths such as tasks/classic/ant.jpg, and these assets are published with their subdirectories under _static. Images that Sphinx has not separately copied into _images therefore fail to load, leaving the new card previews broken.
| taskList.hidden = visibleTasks.length === 0; | ||
| }; | ||
| const groups = groupTasks(tasksForScope()); | ||
| const visibleGroups = [...groups.values()].filter((variants) => variants.some(matchesFilter)); |
There was a problem hiding this comment.
Capability filtering keeps an entire variant group when any variant matches, but the card still displays and selects the current or first variant instead of the matching one. For example, searching rtx keeps the Cartpole group because its camera variants support RTX, while the card can display and select Isaac-Cartpole, which has no RTX renderer capability. Users can therefore receive a visibly nonmatching result and select an unsupported variant.
| <div class="environment-scope-switch" role="group" aria-label="Task collection"> | ||
| <button type="button" class="is-active" data-task-scope="core" aria-pressed="true">Core</button> | ||
| <button type="button" data-task-scope="contrib" aria-pressed="false">Contrib</button> | ||
| <button type="button" data-task-scope="warp" aria-pressed="false">Warp</button> | ||
| </div> |
There was a problem hiding this comment.
The new task-toolbar selector was added without removing the identical Core/Contrib/Warp selector from the command builder. Both visible control groups are synchronized, but presenting the same setting twice makes the page redundant and can mislead users into treating them as separate controls.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
run-ci |
|
run-ci |
|
Backported to |
# Description Improve the environment browser by presenting related task variants as visual cards and making task capabilities easier to discover. This change: - groups manager-based, direct, camera, and direct-camera variants into one card - adds preview images and physics, renderer, and RL capability badges - supports searching by task name or capability - moves the Core, Contrib, and Warp scope selector alongside the task filters - updates responsive styling for the new card layout No additional dependencies are required. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Screenshots Not included; the rendered documentation preview shows the updated card layout. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the formatting and pre-commit checks - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (no source packages are touched) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit e591032)
Description
Improve the environment browser by presenting related task variants as visual cards and making task capabilities easier to discover.
This change:
No additional dependencies are required.
Type of change
Release backport
developScreenshots
Not included; the rendered documentation preview shows the updated card layout.
Checklist
source/<pkg>/changelog.d/for every touched package (no source packages are touched)CONTRIBUTORS.mdor my name already exists there