Giter Club home page Giter Club logo

Comments (2)

Guilamb avatar Guilamb commented on July 28, 2024 1

Hi, so I would like to contribute the part I've already developed in my plugin (Headlamp-plugin) directly to Headlamp. This includes the addition of the "+" button and the pop-up that shows a form to create a new CR based on the schema provided in the CRD.

Would it be ok, to introduce a new dependence : react-jsonschema-form (@rjsf-core) ?

Should I create a new component for the "+" button in frontend/src/common/resource next to the EditButton ?
The same way, should I create a new component for the form?

For now, I have separated the pop-up form into three components:

  1. NewCrDialog: Creates a dialog with a CustomResourceForm inside.
  2. CustomResourceForm: Adds a DynamicForm and passes the CRD as an argument.
  3. DynamicForm: Generate the form using the schema specified inside the CRD.

Should I use the same organization for my contribution ?

from headlamp.

joaquimrocha avatar joaquimrocha commented on July 28, 2024

Yeah. This is a very interesting feature we have wanted for a long time.
I guess it would make sense as part of the CRD details view: Go to CRD details, there is a + button next to the CRD name/title, clicking it shows the auto-generated UI.
Edit would also show it, but have a tab to switch to the Editor view.

from headlamp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.