-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kie-issues#1498: Add "Generate form code for human interactions" command in the BPMN VS Code extension #2660
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments inline... and also I think we need to add this command to our development VS Code Extension...
@@ -65,11 +69,15 @@ | |||
"dark": "./static/svg-icon-dark.png", | |||
"light": "./static/svg-icon-light.png" | |||
}, | |||
"title": "Get BPMN Editor Preview SVG" | |||
"title": "BPMN Editor: Get BPMN Editor Preview SVG" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"title": "BPMN Editor: Get BPMN Editor Preview SVG" | |
"title": "BPMN Editor: Get preview SVG" |
?
context.subscriptions.push( | ||
vscode.commands.registerCommand("extension.kie.generateFormCode", async (args: any) => generateFormsCommand()) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context.subscriptions.push( | |
vscode.commands.registerCommand("extension.kie.generateFormCode", async (args: any) => generateFormsCommand()) | |
); | |
context.subscriptions.push( | |
vscode.commands.registerCommand("extension.apache.kie.bpmnEditor.generateFormCode", async (args: any) => generateFormsCommand()) | |
); |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Invalid var chars" seems like a very clear name, but I'm not sure in what context "var" falls into. Is it a BPMN variable? Or a TypeScript variable? Maybe we could be a little bit extra there, if that's the goal?
@tiagobento It's related to TypeScript variables... I'll update accordingly. |
586fc96
to
f51b8ea
Compare
16a25b3
to
0b04249
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only feedback I have is about the step of selecting jBPM project path
"title": "Kogito Editors: Save Preview SVG" | ||
}, | ||
{ | ||
"command": "extension.kogito.runTest", | ||
"title": "Run" | ||
"title": "Kogito Editors: Run" | ||
}, | ||
{ | ||
"command": "extension.kogito.silentlyGenerateSvg", | ||
"title": "Generate SVG without any notification" | ||
"title": "Kogito Editors: Generate SVG without any notification" | ||
}, | ||
{ | ||
"command": "extension.apache.kie.kogitoEditors.generateFormCode", | ||
"title": "Kogito Editors: Generate form code for human interactions from jBPM project" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about word Kogito
as we are in kie-editors-dev-vscode-extension
package, not a kogito-editors-dev-vscode-extension
@@ -144,7 +149,7 @@ | |||
}, | |||
"customEditors": [ | |||
{ | |||
"displayName": "KIE Kogito Editors", | |||
"displayName": "Apache KIE Kogito Editors", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar comment
// Select project path | ||
const projectUri = await vscode.window.showOpenDialog({ | ||
canSelectFiles: false, | ||
canSelectFolders: true, | ||
canSelectMany: false, | ||
openLabel: "Select Project Folder", | ||
defaultUri: defaultPath ? vscode.Uri.file(defaultPath) : undefined, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with added dialogues/prompts/popups, not sure what is the terminology in VSCode is only with the first one. There is no additionl linformation in the step of selecting path to the jBPM project. See the second screenshot below.:
01
02
it seems openLabel: "Select Project Folder",
config is not used? In the documentation I see alternative title
? https://code.visualstudio.com/api/references/vscode-api#OpenDialogOptions
Using the generate command for the first time I was confused what should I do in the step 02.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect
@jomarko Thanks for your review. The name "Kogito Editors" is due to the current extension name. It's not the intent of this PR to change the extension name, I've only added the "Apache" as it's a must. @tiagobento do we create a new issue to tackle the Kogito name, or I just remove and call it "Apache KIE Editors"? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for changes, I understand the substring "Kogito Editors" must be discussed further with others, so I am approving this PR and I will accept any decision that will be taken by the team around this.
…and in the BPMN VS Code extension (apache#2660)
Closes: apache/incubator-kie-issues#1498
Description
BPMN Editor: Generate form code for human interactions from jBPM project
command.BPMN Editor
prefix to the other BPMN Editor VS Code commads.inputSanizationUtil
toremoveInvalidVarChars
.sanatizedId
toidWithoutInvalidVarChars
.theme
idWithoutInvalidVarChars
optional.form-code-generator
FormAsset
interface.