-
Notifications
You must be signed in to change notification settings - Fork 191
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#1542: Implement ListField in the “form-code-generator-patternfly-theme” package #1542 #2826
base: main
Are you sure you want to change the base?
Conversation
@ljmotta hi, is this fix also for the apache/incubator-kie-issues#1313 ? |
c2de2d8
to
0431d8c
Compare
@jomarko Yes the PR will fix this issue! Thanks for bring this up. But only for the Patternfly. We need the Bootstrap4 PR to close the issue. |
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.
Hi @ljmotta , I have issue to see the forms. Here are the steps I did:
- downloaded bpmn vsix from the PR and installed into my vscode
- in vscode, kie-tools, I run
KIE_TOOLS_BUILD__buildExamples=true pnpm -F @kie-tools-examples/process-compact-architecture build:dev
- installed the vsix
- in vscode I opened
exmaples/process-compact-architecture
- I run
mvn clean package
- ctrl+shift+P -> generate forms
- run
mvn clean quarkus:dev -Pdevelopment
- open http://localhost:8080/q/dev-ui/ -> Forms
and get:
@jomarko You will need to rubuild the example as I've changed the jBPM Dev UI: To skip stunner editors please use the following command: |
Following @jomarko's steps and building the whole |
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.
Is itemProps
always ListItemProps
? I've seen this prop name used in different places, but sometimes it's ListItemProps
and sometimes any
.
We could use different names for them if they represent different things.
Also, isn't there any way to infer the typing of this prop when it's defined as any
? I know this was not introduced with this PR, but it would be nice to have proper typings in an already complex codebase.
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, now I am able to see the form.
I have these questions after my review:
string vs any
I see in java, skills is list of strings, however react produce array of any
private List<String> skills;
vs
const [candidateData__skills, set__candidateData__skills] = useState<any[]>(
[]
);
is that expected, shouldn't react produce array of strings?
console logs
opening hiring form produces an error
is that expected?
@thiagoelg @jomarko Thanks for the reviews. @thiagoelg No, the @jomarko My last commit should have fixed both issues. |
My question was that: If that specific instance of |
Closes: apache/incubator-kie-issues#1542
Description
The PR adds the
ListField
for theform-code-generator-patternfly-theme
. To enable fields inside the list, the fieldsonChange
andvalue
were modified. For the case the field is part of a list, thevalue
must use the list value, and the onChange must update the list.The
ReactFormGenerator
was modified to add the@patternfly/react-icons
import.