Commit 9d79e5c
authored
in-app component editor (#1075)
## Description
Added an in-app component editor feature that allows users to create and edit Oasis components directly within the application. This feature is behind a beta flag called "in-app-component-editor".
This feature is not yet used in the app. It will be wire-up in the next downstream PR.
The implementation includes:
- A new component editor dialog with support for both YAML and Python editing
- Python code generation using Pyodide for client-side Python execution
- Live preview of components as they're being edited
- Template selection for different component types (Python, Ruby, JavaScript, Bash)
- Support for editing existing components
## Related Issue and Pull requests
## Type of Change
- [x] New feature
- [x] Improvement
## Checklist
- [x] I have tested this does not break current pipelines / runs functionality
- [ ] I have tested the changes on staging
## Screenshots (if applicable)



## Additional Comments
The feature uses Pyodide to run Python code in the browser, which allows for client-side generation of component YAML from Python functions. This is particularly useful for users who prefer writing components in Python rather than YAML.1 parent 4a3800b commit 9d79e5c
File tree
23 files changed
+1323
-5
lines changed- src
23 files changed
+1323
-5
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
0 commit comments