Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add learning resources creator (#54)
* Temporarily replace app with Creator component I know this will have to be fixed at some point, but this seems like the easiest way to get started. * Add basic type selection * Add named types for item kinds * Use Patternfly FormGroup for radio buttons * Add form with bundle input * Add title input * Add description input * Unify input prop types * Use a loop for common item inputs * Add placeholders * Add URL input when type is documentation * Add separate ItemFormContainer * Add duration input when type is quickstart * Add required indicators to field groups * Move type field to own component * Add labeled FormGroup around type input * Add labels to DurationInput * Use InputProps for all applicable components * Use grid to divide screen into columns * Make step headers fancy * Remove incorrect section around title * Clamp duration input at 0 * Show tile preview with QuickStartCatalog * Move QuickStartTile usage to separate component * Move lr-c-quickstart_tile into WrappedQuickStartTile * Use WrappedQuickStartTile in Creator * Move label colors to itemKindMeta * Make creator look minimally usable * Make page header full row * Add "Live card preview" header * Use margin-inline-end for rc-step-index * Define ItemKind using itemKindMeta * Add new item types * Define fields in item metadata * Use useMemo for QuickStart * Half-functioning quickstart tester * Use QuickStartDrawer directly * Add skeleton of wizard * Move duration field into wizard * Properly set input IDs for labels * Remove now-unused components * Allow selecting multiple bundles * Prevent attempt to read quickstart tasks when they don't exist * Require progressing through wizard in order * Use cast instead of lambda for inputItemDesc * Remove uses of useId * Add task overview page * Separate Creator code into several files * Use hidden steps instead of setting key on Wizard * Allow adding more tasks * Add dependency on Patternfly code-editor * Add basic panel editing * Allow removing tasks * Cleanup task array modification * Remove ItemFormElement * Add label to remove task buttons * Move string array input to component * Allow modifying quickstart prerequisites * Allow editing task work-check values * Fix setting value of CodeEditor * Add yaml dependency * Add rendering of files and basic display * Improve quickstart name generation * Remove log statement * Don't include icon in quickstart file * Add ability to download files * Restore original app homepage * Allow switching between viewer and creator * Use a flag to enable creator * Accept YAML for step config rather than form fields * Include per-type metadata in export * Use footer config from chrome in creator * Use react-router for creator/viewer parts * Update quickstarts extension * Ensure quickstart is not focused on * Fix task editor description * Don't use useMemo for selectedType * Remove unnecessary string template * Remove unnecessary children node * Remove memo of getAvailableBundles() * Normalize SelectMultiTypeahead hooks * Remove useMemo import from CreatorInputs * Import icons from dynamic rather than esm * Use undefined to indicate no results in SelectMultiTypeahead * Remove extraneous lambda * Replace only whitespace in quickstart name * Don't useMemo another selectedType * Use whitespace regex in SelectMultiTypeahead * Use a single Form element * Prevent form submission * Fix nested FormGroups * Show errors when parsing task YAML * Fix handling of no search results in SelectMultiTypeahead * Use quickstart state directly * Fix quickstart metadata * Ensure Wizard always take up at least all height * Wrap task error display * Use useMemo in SelectMultiTypeahead * Use unleash directly in App * Make Creator its own independent app * Move creator preview to separate file * Always show quickstart drawer * Cleanup leftover context parts in Creator * Sync preview task to wizard step * Always use a string key in SelectMultiTypeahead * Remove unused option id in SelectMultiTypeahead * Use an actually-unique ID in SelectMultiTypeahead * Add Data Driven Forms dependencies * Remove commented-out code * Add isItemKind type guard * Use basic data-driven form with overview page * Add ALL_ITEM_KINDS * Match type and details steps of original form * Get tile preview working * Add basic panel editor * Revert to uncontrolled panel preview * Add field to show task YAML errors * Ensure that task errors wrap * Add step to download files * Revert "Revert to uncontrolled panel preview" This reverts commit 7c6fa87. * Update task preview as moving through wizard * Remove missing content placeholder * Remove unused code * Fix "explicit use of any" error on FormValue * Document the PropUpdater hack * Replace ugly hack with much cleaner hack * Remove logging * Don't use FormTemplate * Fix extra array around tags * Use WizardProps type for wizard schema * Update Patternfly and tsc-transform-inputs in order to get automatic module finding * Use custom buttons for wizard footer * Remove SelectMultiTypeahead * Update schema comments * Remove unused CSS * Remove unnecessary Viewer * Rename App to Viewer * Encapsulate uses of itemKindMeta * Standardize on "kind" rather than "type" * Remove broken import * Further kind fixes * Fix button handling * Move CreatorPreview CSS to proper component * Remove CatalogSection CSS import * Sync react-code-editor
- Loading branch information