Skip to content

Open property editor when node is selected in component tree - #331

Open
dustinwhuang wants to merge 48 commits into
a2ui-project:mainfrom
dustinwhuang:open-property-editor
Open

dustinwhuang wants to merge 48 commits into
a2ui-project:mainfrom
dustinwhuang:open-property-editor

Conversation

@dustinwhuang

Copy link
Copy Markdown
Contributor

Description

Screenshot From 2026-11-13 16-26-55
  • Add Property Editor to Data model group so it shows up below Component Tree.
  • Add keyboard navigation to component tree for node selection.
  • Dispatch OpenPanelEvent(ComposerPanelId.PropertyEditor) when a node is selected to activate the Property Editor tab.
  • Add getSurfaceComponent and updateSurfaceComponent helpers in component-tree-builder.ts to read and update the selected component in the active draft.

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new standalone PropertyEditor component (extracted from the gallery) and a new ComponentTree debug panel, integrating both into the composer workspace layout via Dockview. It also updates end-to-end and unit tests to accommodate these new panels. Feedback on the changes highlights a potential infinite recursion bug in inferControlFromValue within property-editor-utils.ts when handling circular references in runtime values, suggesting the use of a tracking set to prevent stack overflow errors.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit f72d1e1):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

@jgindin
jgindin self-requested a review November 16, 2026 20:13

@jgindin jgindin 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.

Great work wiring Component Tree node selection to the Property Editor panel and implementing keyboard navigation. Left inline comments covering:

  • Locking PropertyEditor during active LLM streaming (chatState.isProgrammaticStreamActive()), inline createSurface.components support in getSurfaceComponent / updateSurfaceComponent, and migrating saved DOCKVIEW_LAYOUTs so openPanel(PropertyEditor) doesn't silently no-op
  • Scoping resetKey, clearing stale jsonFieldErrors on external draft edits, reconciling stale selected nodes across session resets / structural edits, and handling missing-node selection, statusMessage visibility, and selected .badge contrast
  • Repo convention violations (.agents/rules/testing_and_qa_workflow.md forbidding direct fixture.nativeElement queries in favor of CDK ComponentHarness; .agents/rules/angular.md _selected + asReadonly() signal encapsulation & 300ms input throttling; .agents/rules/typescript_and_clean_code.md exported TreeNodeRef JSDoc & DRY draft parsing; shared/ style encapsulation)
  • Missing unhappy-path unit tests and Playwright E2E user journey coverage per .agents/rules/testing_and_qa_workflow.md

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants