-
Task
-
Resolution: Done
-
Major
-
Kogito Tooling 0.27.0
-
None
-
None
- The HomePage must not wait for the samples to load completely.
- While samples are being loaded, we must show a PatternFly skeleton for them.
https://www.patternfly.org/v4/components/skeleton.
- Samples must be fetched from a tag in[ https://github.com/kiegroup/kie-samples/tree/main/samples|https://github.com/kiegroup/kie-samples/tree/main/samples].
There is no tag yet, so we can load from the main branch. However, the code must be prepared for using a tag.
- The template folder inside[ https://github.com/kiegroup/kie-samples/tree/main/samples|https://github.com/kiegroup/kie-samples/tree/main/samples] must be ignored.
- We must fetch information from[ https://github.com/kiegroup/kie-samples/tree/main/samples|https://github.com/kiegroup/kie-samples/tree/main/samples] using @octokit/rest.
- We must read each definition.json file and populate the cards using category (for the card label), title (for the card title), cover (for the card image) and description (for the card description). Other information from definition.json can be ignored for now.
- We need to make sure that all texts have a reasonable limit of chars to avoid breaking the UI.
- We need to have a placeholder image in case the "cover" information is not provided.
- We need to have a placeholder text in case other information is not provided.
- We must ignore any sample with an unsupported category.
Supported ones are: serverles-workflow, serverless-decision, dashbuilder
- When the user opens a sample, we need to fetch all files that are in the corresponding sample folder except definition.json and the svg file, and create a new workspace with these files.
Maybe this can be useful for fetching the files inside a folder
https://github.com/octokit/octokit.net/issues/1583#issuecomment-524056513
After all this, we can put Donato's sample in[ https://github.com/kiegroup/kie-samples/tree/main/samples|https://github.com/kiegroup/kie-samples/tree/main/samples] and everything is supposed to work.
- blocks
-
KOGITO-8936 Add search and filter capabilities to samples
- Resolved
-
KOGITO-8935 Add the order-swf sample to kie-samples repository
- Resolved
- is depended on by
-
KOGITO-8153 Create an extensible Samples page (now Catalog)
- Resolved
- is related to
-
KOGITO-8954 Modify samples to show zero problems in Serverless Logic Web Tools
- Resolved