-
Notifications
You must be signed in to change notification settings - Fork 10
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
Parametric editor implementation. #73
Parametric editor implementation. #73
Conversation
…ntage of built-in rendering behavior of Accordion component.
…elper factory functions.
…lue widget added. Refactoring.
Skipping CI for Draft Pull Request. |
/approve |
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: efiacor, kamilmadejek, liamfallon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR introduces the first implementation of a parametric editor - a concise and DRY way of creating resource editors.
Three editors for Nephio-specific resources have been fully reimplemented using
PxeParametricEditor
:NephioTokenEditor
->NephioTokenParametricEditor
CapacityEditor
->NephioCapacityParametricEditor
WorkloadClusterEditor
->NephioWorkloadClusterParametricEditor
Parametric editor concept aims to simplify editor development and maintenance by allowing developers to create editors by providing resource-specific configuration, rather than implementing every instance from scratch. The main idea relies on two core principles:
A sample configuration for a parametric editor instance looks like this (an example for
WorkloadCluster
resource):At the moment, the parametric editor has support for basic user input widgets, handling of different data types (including YAML arrays and key-values), user input filtering and display customization. Next PRs will add more features and introduce new parametric editors.
Testing (on
uitests
environment, credentials available per request):WorkloadCluster
andCapacity
parametric editorsToken
parametric editorAdditional changes in this PR:
eslint
settings.