Skip to content

feat(editor): AI-first main layout with scene rail, Agent/Inspector tabs, and status bar - #1252

Open
houko wants to merge 2 commits into
mainfrom
feat/editor-ai-first-layout-1007
Open

houko wants to merge 2 commits into
mainfrom
feat/editor-ai-first-layout-1007

Conversation

@houko

@houko houko commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Closes #1007

Summary

Replaces the legacy multi-group editor toolbar shell with the AI-first five-region main layout matching docs/design/editor/Main.dc.html and docs/design/editor/Spec.dc.html:

  • 44 px header (mainHeaderView): <project> / <scene> breadcrumb with File menu and unsaved dot (Label: "unsaved changes"), centered icon-only tool base.RadioGroup (Select V, Move W, Rotate E, Scale R, Pan Space using 1.8 px@15 px currentColor Lucide strokes and "Label · key" tooltips), 2D / 3D segmented radio group, History (⌘Y) icon button, Search ⌘K, and Play (⌘P) as the single primary button.
  • 232 px left rail (leftRailSceneView): Scene / Assets switcher, SCENE · N nodes, scene tree rows with kind dots, kind tags, and NEW badges on pending-review proposed objects, plus bottom FILES listing the open scene, prefabs/instanced scenes it uses, and game.yaml. Selecting a tree row switches the right rail to Inspector.
  • Viewport: Camera · W × H caption above the 2D camera frame, bottom bar (Zoom out, zoom %, Zoom in, Snap base.Switch with RoleSwitch, Fit, Overlays N), and top-left overlay legend slot.
  • 380 px right panel (RightRailView): Agent (⌘1) and Inspector (⌘2) radio tabs alongside the live MCP connection chip (Connected · MCP and all five states) with wrapping header layout so Disconnected controls never clip.
  • 32 px status bar (mainStatusBarView): muted text on bg with active layer toggle, live 2D pointer coordinates, current tool, problem count pill (opening Problems), Output, and Debugger. All legacy toolbar panels remain reachable via Command Palette (⌘K), Menu bar, Settings, and Status bar.
  • Empty, loading, and error states (WorkspaceState, SceneOpenError): designed states across all regions for WorkspaceNoProject, WorkspaceNoScene, WorkspaceLoading, and WorkspaceSceneError (missing scene and malformed YAML with path, line, message, fix guidance, Retry, and Dismiss instead of a blank viewport).
  • Docs, changelog, and agent note: updated docs/en/editor.md and docs/zh/editor.md, added changelog.d/editor-ai-first-main-layout.md, and recorded the design decision in .agents/notes/implemented/feature/2026-11-26-editor-ai-first-main-layout.md.

Verification

  • cd packages/game && go tool nsgo test ./editor -- -run 'TestMainLayout|TestF6CyclesRegions|TestProblemsPanelMissingAtlasFrameFixAndSave|TestProblemsPanelPressSelectsNonSceneInFileBrowser|TestSceneTreeFollowsAndDrivesMultiSelection|TestShortcutsSameScopeConflictSwapAndDifferentScopeAllowed|TestNewSceneAndSaveAsFromTheToolbar|TestLocaleCatalogsComplete|TestToolbarTabFocusRing|TestOpenFileErrorNamesFileLineAndFix|TestAgentReconnectSchedule' — passed (including TestMainLayoutAt1440x900, TestMainLayoutSpecControlsA11yAndHitAreas, TestMainLayoutLegacyPanelsRemainReachable, TestMainLayoutEmptyLoadingAndErrorStates, and TestMainLayoutMacOSScreenshots)
  • cd packages/game && go tool nsgo check ./editor — passed
  • cd packages/game && go run ./cmd/gameschema -check — passed
  • git ls-files -z -- '*.go' | xargs -0 gofmt -l — clean
  • go run ./tools/changelog check — passed
  • bun run verify-notes — passed

@github-actions github-actions Bot added enhancement New feature or request size/XL documentation Improvements or additions to documentation pkg/editor area/agents conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from 563947d to e4d2009 Compare November 26, 2026 11:39
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging area/examples and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from e4d2009 to 7e63464 Compare November 26, 2026 11:57
@github-actions github-actions Bot added pkg/cmd conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from 7e63464 to 0991ae4 Compare November 26, 2026 12:14
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from 0991ae4 to 116a61a Compare November 26, 2026 12:33
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from 116a61a to c80011c Compare November 26, 2026 12:33
@github-actions github-actions Bot added the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from c80011c to 65b341e Compare November 26, 2026 12:53
@houko
houko force-pushed the feat/editor-ai-first-layout-1007 branch from 65b341e to a7c1896 Compare November 26, 2026 12:57
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents area/examples conflict Conflicts with the target branch; resolve before merging documentation Improvements or additions to documentation enhancement New feature or request pkg/cmd pkg/editor size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editor: the AI-first main layout with a scene rail, Agent and Inspector tabs and a status bar

1 participant