Skip to content

Extract property editor to a standalone component - #329

Merged
jgindin merged 16 commits into
a2ui-project:mainfrom
dustinwhuang:property-editor
Dec 3, 2026
Merged

jgindin merged 16 commits into
a2ui-project:mainfrom
dustinwhuang:property-editor

Conversation

@dustinwhuang

@dustinwhuang dustinwhuang commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

Extract property editor from gallery so it can be reused in workspace.

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 refactors the property editor logic from the gallery component into a new, reusable standalone PropertyEditor component (a2ui-composer-property-editor) under the shared directory. This includes migrating the template, styles, utility functions, and unit tests, and introducing a test harness. The feedback suggests a minor improvement in property-editor.ts to use the trimmed version of target['id'] when constructing the validation error message to ensure consistency.

@dustinwhuang
dustinwhuang marked this pull request as ready for review November 14, 2026 02:59
@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 5a78723):
👉 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:14

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

Extracting PropertyEditor into a standalone component in shell/src/app/shared/property-editor/ is clean and well-factored. Left inline comments covering:

  • Rebasing onto main (#322 multi-catalog resolution, provenance catalog fallback in Gallery, and v1.0 @path / @call dynamic bindings + tests)
  • Avoiding transient non-empty statusMessage emissions on inline JSON field errors, removing unused EditableProperty.json, and adding empty-state handling
  • Repo conventions (.agents/rules/typescript_and_clean_code.md file naming for -utils.ts; .agents/rules/git_workflow.md atomic descriptive commits vs. the Fix test fixup commit; instance-scoped DOM IDs and neutral copy)
  • Expanding standalone happy/unhappy-path unit test coverage in property-editor.spec.ts per .agents/rules/testing_and_qa_workflow.md

Comment thread shell/src/app/gallery/gallery.ng.html Resolved
@jgindin jgindin mentioned this pull request Nov 17, 2026
6 of 7 tasks
dustinwhuang and others added 3 commits November 30, 2026 16:16
@jgindin
jgindin merged commit 67e2789 into a2ui-project:main Dec 3, 2026
13 checks passed
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