From f9e8b26af698fc067d7443d1a531eaacf010c437 Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Wed, 17 Mar 2021 10:40:56 -0400 Subject: [PATCH] ui: Create auth-method show page with General Info Tab (#9845) * Update list items to be linkable to auth-methods show * Add general, namespace, and binding sub-routes * Remove namespace and binding tabs to be done separately * Update auth-method byId endpoint * Style the show auth-method kubernetes type * Finish Kubernetes auth-method type styling * OIDC and JWT auth-method styling * Create consul-auth-method-view component * Add navigation test for auth-methods * Create Certificate component --- .../app/components/certificate/index.hbs | 14 ++ .../app/components/certificate/index.js | 14 ++ .../app/components/certificate/index.scss | 26 +++ .../components/consul/auth-method/index.scss | 75 +++++- .../consul/auth-method/list/index.hbs | 11 +- .../consul/auth-method/list/pageobject.js | 3 +- .../consul/auth-method/view/index.hbs | 217 ++++++++++++++++++ ui/packages/consul-ui/app/router.js | 5 +- .../app/routes/dc/acls/auth-methods/show.js | 27 +++ .../dc/acls/auth-methods/show/auth-method.js | 16 ++ .../routes/dc/acls/auth-methods/show/index.js | 6 + .../consul-ui/app/styles/components.scss | 1 + .../app/styles/components/composite-row.scss | 3 +- .../consul-ui/app/styles/components/pill.scss | 3 +- .../templates/dc/acls/auth-methods/show.hbs | 40 ++++ .../dc/acls/auth-methods/show/auth-method.hbs | 4 + .../consul-ui/mock-api/v1/acl/auth-method/_ | 51 +++- .../consul-ui/mock-api/v1/acl/auth-methods | 4 + .../dc/acls/auth-methods/navigation.feature | 16 ++ .../dc/acls/auth-methods/navigation-steps.js | 10 + ui/packages/consul-ui/tests/pages.js | 2 +- ui/packages/consul-ui/translations/en-us.yaml | 32 +++ 22 files changed, 562 insertions(+), 18 deletions(-) create mode 100644 ui/packages/consul-ui/app/components/certificate/index.hbs create mode 100644 ui/packages/consul-ui/app/components/certificate/index.js create mode 100644 ui/packages/consul-ui/app/components/certificate/index.scss create mode 100644 ui/packages/consul-ui/app/components/consul/auth-method/view/index.hbs create mode 100644 ui/packages/consul-ui/app/routes/dc/acls/auth-methods/show.js create mode 100644 ui/packages/consul-ui/app/routes/dc/acls/auth-methods/show/auth-method.js create mode 100644 ui/packages/consul-ui/app/routes/dc/acls/auth-methods/show/index.js create mode 100644 ui/packages/consul-ui/app/templates/dc/acls/auth-methods/show.hbs create mode 100644 ui/packages/consul-ui/app/templates/dc/acls/auth-methods/show/auth-method.hbs create mode 100644 ui/packages/consul-ui/tests/acceptance/dc/acls/auth-methods/navigation.feature create mode 100644 ui/packages/consul-ui/tests/acceptance/steps/dc/acls/auth-methods/navigation-steps.js diff --git a/ui/packages/consul-ui/app/components/certificate/index.hbs b/ui/packages/consul-ui/app/components/certificate/index.hbs new file mode 100644 index 0000000000..4b669a00f5 --- /dev/null +++ b/ui/packages/consul-ui/app/components/certificate/index.hbs @@ -0,0 +1,14 @@ +
{{item.DisplayName}}
+ + {{item.DisplayName}} + {{else}} -{{item.Name}}
+ + {{item.Name}} + {{/if}}Use this if the claim you are capturing is singular. When mapped, the values can be any of a number, string, or boolean and will all be stringified when returned.
+Key | +Value | +
{{get entry 0}} | +{{get entry 1}} | +
Use this if the claim you are capturing is list-like (such as groups). When mapped, the values can be any of a number, string, or boolean and will all be stringified when returned.
+Key | +Value | +
{{get entry 0}} | +{{get entry 1}} | +