Skip to content

Add ecs voxel editor sample, ECS core fixes and ecs CI - #282

Merged
krisnye merged 1 commit into
mainfrom
knye/ecs-voxel-editor
Nov 22, 2026
Merged

krisnye merged 1 commit into
mainfrom
knye/ecs-voxel-editor

Conversation

@krisnye

@krisnye krisnye commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

New sample: ecs/packages/ecs-voxel-editor. A WebGPU voxel editor built on @adobe/ecs and following the ecs-architecture standard.

  • Face selection: click, Shift for a line, Ctrl for a rectangle, double-click for connected faces.
  • Extrude and delete, with one undo history.
  • Models with recursive instances, and library files through the File System Access API.
  • Visual-only PBR materials, plus paints applied per face with a Material / Paint mode.
  • Model sizing, Blender-style navigation and WASD view keys.
  • A File menu with dialogs.

ECS core fixes

  • lookupLists dedupe in interface/system/resolve.ts, with tests.
  • Build fixes in wasm.ts, gpu.ts (writeBuffer offsets), ids.test-helper.ts and render-order.browser.test.ts.

CI and workspace

  • New ecs job in .github/workflows/ci.yml.
  • The root and ecs/ workspaces pin the same tool versions, and the workspace convention checks enforce it.
  • Sample dev scripts build their workspace dependencies first.

Guidance and samples

  • ecs-architecture standard.md and rules cover immutability, external handles, mutating for proven performance, and preferring WebGPU. Agent rules are regenerated.
  • The guide opens on the overview chapter by default, and its address follows the chapter.
  • The sample browser has a voxel editor tab.
  • Package versions are bumped to 0.10.36.

Testing

  • pnpm run lint and pnpm run typecheck pass at the root. In ecs/, pnpm run typecheck and check:workspace pass.
  • The voxel editor's 24 headless tests pass, and so does its ecs-architecture check.
  • The editor was checked by hand in Chromium with WebGPU.

…d ecs CI

Co-Authored-By: OpenCode <noreply@opencode.ai>
@krisnye
krisnye merged commit 317de14 into main Nov 22, 2026
4 checks passed
@krisnye
krisnye deleted the knye/ecs-voxel-editor branch November 22, 2026 09:15
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