Skip to content

[Docs] Improve environment browser cards - #7644

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
StafaH:docs/environment-browser-cards
Sep 9, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
StafaH:docs/environment-browser-cards

Conversation

@StafaH

@StafaH StafaH commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 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

  • I have read and understood the contribution guidelines
  • I have run the formatting and pre-commit checks
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (no source packages are touched)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@StafaH
StafaH requested a review from a team September 8, 2026 15:58
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 8, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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-apps

greptile-apps Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR redesigns the documentation environment browser around grouped visual task cards, capability search and badges, variant selection, and a relocated scope selector.

  • Groups manager, direct, camera, and direct-camera task variants into cards.
  • Adds task preview images and physics, renderer, and RL badges.
  • Extends filtering to task capabilities and updates responsive card styling.
  • Currently has broken card image resolution, mismatched capability-search results, and a duplicated scope selector.

Confidence Score: 3/5

The 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

Filename Overview
docs/source/_static/css/environment-browser.js Implements variant grouping, capability search, cards, badges, and preview selection, but card image URLs and matching-variant selection are incorrect.
docs/source/setup/environments.rst Updates search labels and adds the toolbar scope selector, but leaves the original selector visible.
docs/source/_static/css/environment-browser.css Replaces row styling with responsive card, badge, and variant-control styling without an independently identified defect.

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]
Loading

Reviews (1): Last reviewed commit: "Improve environment browser cards" | Re-trigger Greptile

Comment on lines +554 to +555
const previewImageName = previewImageFor(activeTask).split("/").pop();
image.src = new URL(`../../_images/${previewImageName}`, window.location.href).href;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Card preview paths break

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));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Search selects wrong variant

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.

Comment on lines +150 to +154
<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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Scope selector is duplicated

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!

@StafaH

StafaH commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 8, 2026
@StafaH

StafaH commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 8, 2026
@kellyguo11
kellyguo11 merged commit e591032 into isaac-sim:develop Sep 9, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 997e912.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 9, 2026
# 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)
@StafaH
StafaH deleted the docs/environment-browser-cards branch September 13, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants