Repository navigation
Extract property editor to a standalone component - #329
Conversation
There was a problem hiding this comment.
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.
⚡ A2UI Composer PR PreviewYour automated preview is successfully live (commit
|
jgindin
left a comment
There was a problem hiding this comment.
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 inGallery, and v1.0@path/@calldynamic bindings + tests) - Avoiding transient non-empty
statusMessageemissions on inline JSON field errors, removing unusedEditableProperty.json, and adding empty-state handling - Repo conventions (
.agents/rules/typescript_and_clean_code.mdfile naming for-utils.ts;.agents/rules/git_workflow.mdatomic descriptive commits vs. theFix testfixup commit; instance-scoped DOM IDs and neutral copy) - Expanding standalone happy/unhappy-path unit test coverage in
property-editor.spec.tsper.agents/rules/testing_and_qa_workflow.md
8d4ca74 to
887b1fa
Compare
Signed-off-by: Dustin Huang <31420417+dustinwhuang@users.noreply.github.com>
Description
Extract property editor from gallery so it can be reused in workspace.
Pre-launch Checklist