rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
455 stars 257 forks source link

Secret (Cert, Reg) - List/Detail & Create/Edit #264

Closed maggieliu closed 4 years ago

maggieliu commented 4 years ago

Use this wireframe from rancher/dashboard#257 for list of secrets/secret detail/create secret pages:

https://xd.adobe.com/view/f6684727-5553-46f3-759e-76118e955b2e-8059/

lvuch commented 4 years ago

Headers for value on page 3 and 5 are incorrect (related workloads and values) should match "values" on page 2 and 4.

tfiduccia commented 4 years ago

UI/UX review:

lvuch commented 4 years ago

@mantis-toboggan-md could you take a look at these last couple of tasks?

Here are some notes from what I've marked as complete and the last few that need completed

Thanks!

deniseschannon commented 4 years ago

Feedback based on convo with @ibuildthecloud

*[x] List View - Header Edits

Note for reference: We dropped the ability to select multiple namespaces when creating a secret. In Ember we had the ability to create a secret for all namespaces in a project, but removing this functionality for now in Vue.

vincent99 commented 4 years ago

"Type" dropdown field should be able to select from choices but also ability to input free form text. But currently, it's weird/hard to do @lvuch can you look into this?

https://vue-select.org/guide/values.html#tagging

lvuch commented 4 years ago

Placeholder text should make it more obvious that it's both a text area and dropdown

deniseschannon commented 4 years ago

@lvuch

deniseschannon commented 4 years ago

Design issue with Type dropdown filed in https://github.com/rancher/dashboard/issues/552

Edit Secret Page

[x] When editing a "service account token" secret, the type dropdown is broken. It's populated correctly, but I cannot change it.

Screen Shot 2020-04-24 at 3 00 01 PM

[x] When selecting between types in the dropdown (on create new), it doesn't switch the form. For opaque, it's key value pairs, but for registry it shows the Provider section.

Detail Secret Page

[x] When looking at secret that is a different type from "Certificate, Registry, Opaque", it's showing up like this. It should just show Service Acct Token, which is the typeDisplay

Screen Shot 2020-04-24 at 3 13 32 PM

[x] Missing Labels and Annotations tabs from the detail page

lvuch commented 4 years ago

type dropdown fix https://github.com/rancher/dashboard/pull/554

deniseschannon commented 4 years ago

Open Remaining Issues for @mantis-toboggan-md :

Type Dropdown

Edit Page

List Page

Detail Page

Screen Shot 2020-04-27 at 1 44 47 PM
deniseschannon commented 4 years ago

Detail Page

Certificate Type

Registry Type

Screen Shot 2020-04-29 at 11 47 47 AM

Edit Page

Certificate Type

Registry Type

deniseschannon commented 4 years ago

Detail Page

Opaque Type

Certificate Type

Edit Page

Certificate Type

mantis-toboggan-md commented 4 years ago

@deniseschannon from what I can see editing the 'type' field of secrets is not supported; trying returns the error:

"message": "Secret \"test-change-type\" is invalid: type: Invalid value: \"kubernetes.io/tls\": field is immutable", "status": 422

deniseschannon commented 4 years ago

Detail Page

Opaque Type

Screen Shot 2020-05-04 at 2 36 53 PM

Overall, there are some design issues that will be taken care of other issues (KeyValue component https://github.com/rancher/dashboard/issues/589, masthead https://github.com/rancher/dashboard/issues/538#issuecomment-623722980)

mantis-toboggan-md commented 4 years ago
  • [x] Example text should be there all the time and the color needs to be lighter then the label text image

To clarify, this was discussed in a zoom call: all (empty) labeled inputs with example text should show that text by default and hide it when hovered. The example text should be less prominent than the label(darker than label on the dark theme, lighter than label on the light theme)

sangeethah commented 4 years ago

Validation for Secret (Cert, Reg , Opaque) for List/Detail & Create/Edit pages is done. Issues found when testing these pages are tracked as different issues.