kccrcodes opened a new pull request, #1673: URL: https://github.com/apache/camel-karavan/pull/1673
Fixes #1668 For properties backed by a Java type (Process `ref`, AggregationStrategy, ...), the designer rendered a select-only dropdown. A class that does not exist yet could not be named, and the "Open Java Class" (+) button stayed disabled, so the "generate Processor from template" flow could not be reached from the UI. Changes - FieldSelectWithCreate: optional `options` (value/label/description), `isValidNewValue` and `onClear`. Typing a name offers "Create class "X"", and invalid names are disabled. The list refreshes when files or beans change. Enter on an empty list no longer throws. - DslPropertyField: getJavaTypeGeneratedInput now uses FieldSelectWithCreate. The new name must be a valid Java identifier. The + button and showCode are unchanged, so choosing the new name and clicking + creates the class from the template. Clearing the field also clears the property. - Applied to both karavan-app (web) and karavan-vscode (webview) copies. Testing - New karavan-vscode/test/process-ref-create.test.cjs (fails before the change, passes after). `node --test karavan-vscode/test/*.cjs`: 9/9 pass. - karavan-app/src/main/webui: `tsc --noEmit` and `npm run build` pass. eslint on touched files is unchanged vs main. - karavan-vscode: `tsc` shows only the existing errors, and eslint is unchanged. - Not manually clicked through in a browser or VS Code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
