Skip to content

Add editor robot navigation and task workflows#278

Open
Niutels wants to merge 9 commits intopascalorg:mainfrom
Niutels:dev-robot
Open

Add editor robot navigation and task workflows#278
Niutels wants to merge 9 commits intopascalorg:mainfrom
Niutels:dev-robot

Conversation

@Niutels
Copy link
Copy Markdown

@Niutels Niutels commented Apr 26, 2026

What does this PR do?

Adds an editor-side robot navigation and task workflow layer.

Core:

  • Adds the minimal shared door support needed for runtime door interaction, including authored openingStyle support for swing/overhead doors.
  • Updates live transform handling so editor runtime motion can drive scene objects without persisting robot/task state into node metadata.
  • Keeps durable node data focused on authored world facts; task queues, robot state, ghosts, and previews remain runtime-owned.

Editor:

  • Adds Manual mode and Task mode robot workflows.
  • Adds pathfinding, walkable-surface generation, navigation graph worker support, and door-trigger integration.
  • Adds task queue workflows for move/copy/delete/repair operations.
  • Adds Pascal truck choreography and robot asset/model selection.
  • Adds runtime-owned item ghosts, carried-item visuals, and task execution state.

Viewer:

  • Adds runtime-only item render overrides so editor task workflows can show live item motion, ghosts, carried-item outlines, delete fade, and temporary visibility changes without persisting those states into scene data.
  • Adds the viewer/runtime bridge used by the editor to coordinate those transient visuals.

How to test

  1. Use the robot toolbar to switch between Manual mode, Task mode, Pascal robot, and armored robot.
  2. In Manual mode, right-click a destination and confirm the robot navigates there.
  3. In Task mode, run representative task workflows: move, copy, delete, repair, duplicate copy, and queued loop behavior.

Validation notes

  • bun run check-types passes.
  • git diff --check origin/main...HEAD passes.
  • bun run check is left unchecked because it currently fails on origin/main itself in this Windows checkout due repo-wide Biome/CRLF baseline issues. A temporary origin/main worktree reported the same class of failures, so this is not branch-specific.
  • Documentation is left unchecked because this PR adds editor runtime/UI behavior, and the repo does not currently maintain user-facing workflow docs for these editor tools.

Screenshots / screen recording

Robot modes

Robot trajectory

Task mode

Robot and truck

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

Niutels added 9 commits April 22, 2026 12:20
# Conflicts:
#	packages/editor/src/components/editor/index.tsx
#	packages/editor/src/components/editor/selection-manager.tsx
#	packages/editor/src/components/ui/panels/panel-manager.tsx
#	packages/viewer/src/components/viewer/post-processing.tsx
#	packages/viewer/src/store/use-viewer.ts
#	packages/viewer/src/systems/roof/roof-materials.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant