Bundle store shelf preview assets

This commit is contained in:
eust-w 2026-06-26 14:19:04 +08:00
parent 8da526a0d6
commit f3cdcab991
47 changed files with 207260 additions and 8 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ __pycache__/
/tmp.json
test-results/
!test-results/.gitkeep
asset-bundles/

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -384,8 +384,8 @@ const SCENE_PRESETS: ScenePreset[] = [
physical: true,
defaultProps: ["red-cube", "blue-crate", "green-ball", "yellow-capsule"],
},
{ id: "store-lite", label: "Store shelves lite", labelKey: "preset.scene.storeLite", manifestUrl: "http://127.0.0.1:18085/manifest", storeProductLimit: 90 },
{ id: "store-full", label: "Store shelves full", labelKey: "preset.scene.storeFull", manifestUrl: "http://127.0.0.1:18085/manifest" },
{ id: "store-lite", label: "Store shelves lite", labelKey: "preset.scene.storeLite", manifestUrl: "/generated/store-shelves-lite.web.manifest.json", storeProductLimit: 90 },
{ id: "store-full", label: "Store shelves full", labelKey: "preset.scene.storeFull", manifestUrl: "/generated/store-shelves-full.web.manifest.json" },
{ id: "franka-cube", label: "Franka + cube physics", labelKey: "preset.scene.frankaCube", manifestUrl: "http://127.0.0.1:18088/manifest", physical: true },
];
@ -2760,12 +2760,13 @@ function runAcceptanceReview(): void {
}
function backendLabel(): string {
if (controlUrl) {
return new URL(controlUrl).origin;
}
const sceneManifest = selectedScenePreset().manifestUrl;
if (sceneManifest) {
return new URL(sceneManifest).origin;
const url = controlUrl ?? selectedScenePreset().manifestUrl;
if (url) {
try {
return new URL(url, window.location.href).origin;
} catch {
return t("backend.frontendOnly");
}
}
return t("backend.frontendOnly");
}
@ -4855,6 +4856,7 @@ setupUploadDropZone("#scene-upload-zone", (files) => {
});
document.querySelector<HTMLSelectElement>("#builder-scene")!.addEventListener("change", () => {
const sceneId = document.querySelector<HTMLSelectElement>("#builder-scene")!.value;
applyContextualRobotLabels(sceneId);
builderRobotPose = defaultRobotPoseForScene(sceneId);
builderPhysicsEnabled = defaultPhysicsEnabledForScene(sceneId);
seedBuilderPropsForSelectedScene();