-
Notifications
You must be signed in to change notification settings - Fork 41
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
Upload an existing yaml file #324
Upload an existing yaml file #324
Conversation
Awesome thanks! Taking a look. |
51991ec
to
be6af92
Compare
Rebased with updated next.js (v15) |
Hey @nerdalert, @mingxzhao, @vishnoianil, rebase has been done and this one is ready for review when you guys get chance. |
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.
Overall PR looks good. Testing locally for both skill and knowledge and it works!!. Added minor comment and one suggestion on the UX.
/> | ||
} | ||
> | ||
<FormGroup fieldId="text-file-with-restrictions-example"> |
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 am wondering if this can be a simple button that says "Upload Existing Skill" that takes yaml/yml file as an input? Current form-group gives an impression that it's the part of the existing form.
@Misjohns This PR adds a feature where user can upload an existing skill/knowledge yaml file (in case they save the yaml to resume the work later). Current PR adds it as a form group (see below snapshot). I am wondering if we should use a button that says "Upload Existing Yaml" button. What would you recommend here? |
@aevo98765 We upgraded the main branch to pattternfly6 now, so you might have to rebase your branch over main, and give it a test run. |
So the proposal would be to add this to the contribution form? The user would still need to fill out the other fields in the form to submit? @aevo98765 @vishnoianil |
Yes, yaml will fill all the fields for which data is available in yaml, rest all field will be filled by the contributor (such as email/name, brief description etc). |
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.
LGTM, agreed to second option, looks much cleaner and clearer
…kills Signed-off-by: Ash Evans <[email protected]>
…g a function to populate the knowledge form fields Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
…and answers Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
b88d2ae
to
97e5b8d
Compare
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
…or handling Signed-off-by: Ash Evans <[email protected]>
Signed-off-by: Ash Evans <[email protected]>
Hey guys, sorry this has taken a while. Please see the screenshots above of the new components. This is functioning and users can now upload complete or partial yaml files for both skills and knowledge. However, the error handling needs to be implemented. I don't have the bandwidth to do this in the next week or so. Therefore I have created a new issue and sel-assigned to sort this out. |
@vishnoianil g2g on this one? |
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.
/LGTM
Awesome work as usual @aevo98765
This feature was requested to allow users that had downloaded/curated partial yaml files to be able to upload their yaml and continue on using the UI.