Code Monkey home page Code Monkey logo

Comments (3)

sgotti avatar sgotti commented on June 8, 2024

@raynasorint

Here the user can insert the secret name and upload the secret value file that will be validate before saving the string and will be shown in the preview Json format container.

I don't understand why there's a json entry in the ui that contains (as from you mockups) the secret api request here. These are internal details that shouldn't appear in a ui.

The secrect create/edit ui should add some fields to set/change:

  • secret name
  • secret data, just a k/v map of strings that could be represented with a list of text fields for key/value and a check for key uniqueness. Then an option to upload this list could also be added.

The secret type will always be internal since there's currently no other option.

from agola-web.

raynasorint avatar raynasorint commented on June 8, 2024

I don't understand why there's a json entry in the ui that contains (as from you mockups) the secret api request here. These are internal details that shouldn't appear in a ui.

The secrect create/edit ui should add some fields to set/change:

secret name
secret data, just a k/v map of strings that could be represented with a list of text fields for key/value and a check for key uniqueness. Then an option to upload this list could also be added.
The secret type will always be internal since there's currently no other option.

I tried to define better the ui.

Here the initial step with the button Add Secret, and the list of the secrets variable that user can delete.
projectssettinggroup1

Here the form after clicking Add Secret:
Untitled – Figma - Google Chrome 30_08_2023 10_02_15

In this step of creation the user can create the Secret adding one by one a key-value pair.
When the user submit the entire form all key-value pairs and the secret name will be send to the backend as new Secret variable.

The form will contain validation about empty fields, unique secrets name and a secret keys uniqueness.
projects group form

from agola-web.

sgotti avatar sgotti commented on June 8, 2024

@raynasorint

Some suggestions:

  • use a new page for secret create/edit (preferred over inline or a modal)
  • Don't add delete from All secrets, it doesn't makes sense
  • Delete secret modal should ask for "delete secret" not "delete secret value".

Anyway go ahead and implement this. It could also be split in multiple PR to keep a better separation of logical changes.

from agola-web.

Related Issues (16)

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.