diff --git a/ui/app/components/loading-dropdown-option.hbs b/ui/app/components/loading-dropdown-option.hbs new file mode 100644 index 0000000000..8f93edc19d --- /dev/null +++ b/ui/app/components/loading-dropdown-option.hbs @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/app/models/role-jwt.js b/ui/app/models/role-jwt.js index 9a68051a48..0d8e2ec1a2 100644 --- a/ui/app/models/role-jwt.js +++ b/ui/app/models/role-jwt.js @@ -15,7 +15,7 @@ const DOMAIN_STRINGS = { 'auth0.com': 'Auth0', }; -const PROVIDER_WITH_LOGO = ['GitLab', 'Google', 'Auth0']; +const PROVIDER_WITH_LOGO = ['GitHub', 'GitLab', 'Google', 'Okta', 'Auth0']; export { DOMAIN_STRINGS, PROVIDER_WITH_LOGO }; @@ -28,8 +28,8 @@ export default class RoleJwtModel extends Model { return DOMAIN_STRINGS[firstMatch] || null; } - get providerButtonComponent() { + get providerIcon() { const { providerName } = this; - return PROVIDER_WITH_LOGO.includes(providerName) ? `auth-button-${providerName.toLowerCase()}` : null; + return PROVIDER_WITH_LOGO.includes(providerName) ? providerName.toLowerCase() : null; } } diff --git a/ui/app/styles/components/auth-buttons.scss b/ui/app/styles/components/auth-buttons.scss deleted file mode 100644 index 84310f7c07..0000000000 --- a/ui/app/styles/components/auth-buttons.scss +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -.auth-button-tile { - height: 31px; - width: 31px; - background: $white; - border-radius: 1px; - box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); -} -.auth-button-type-google { - position: relative; - top: -10px; - left: -1.05rem; -} - -.auth-button-type-auth0, -.auth-button-type-gitlab { - position: relative; - top: -6px; - left: -0.75rem; -} -[class*='auth-button-type'] .text { - padding-left: $spacing-m; -} diff --git a/ui/app/styles/components/calendar-widget.scss b/ui/app/styles/components/calendar-widget.scss index f7de7a1625..9fe4a848fe 100644 --- a/ui/app/styles/components/calendar-widget.scss +++ b/ui/app/styles/components/calendar-widget.scss @@ -23,22 +23,11 @@ $dark-gray: #535f73; .select-year { grid-area: select-year; - margin-left: 24px; - margin-top: 10px; + margin: 10px 24px; font-weight: $font-weight-bold; display: flex; justify-content: space-between; align-items: first baseline; - - // spacing of < year > icons when the tooltip is added or removed from DOM. - > .padding-right { - // if no tooltip - padding-right: 26px; - } - > .negative-margin { - // if tooltip - margin-right: -50px; - } } .calendar-widget { diff --git a/ui/app/styles/components/popup-menu.scss b/ui/app/styles/components/popup-menu.scss index 68db72abbd..325b138379 100644 --- a/ui/app/styles/components/popup-menu.scss +++ b/ui/app/styles/components/popup-menu.scss @@ -83,6 +83,10 @@ cursor: default; } } + &.loading-dropdown { + display: flex; + align-items: center; + } } .menu-label { diff --git a/ui/app/styles/core.scss b/ui/app/styles/core.scss index a062572629..1dca67e697 100644 --- a/ui/app/styles/core.scss +++ b/ui/app/styles/core.scss @@ -52,7 +52,6 @@ @import './helper-classes/typography'; // Component specific styling -@import './components/auth-buttons'; @import './components/auth-form'; @import './components/autocomplete-input'; @import './components/b64-toggle'; diff --git a/ui/app/templates/components/alphabet-edit.hbs b/ui/app/templates/components/alphabet-edit.hbs index 66b20c7e0c..f35121b10c 100644 --- a/ui/app/templates/components/alphabet-edit.hbs +++ b/ui/app/templates/components/alphabet-edit.hbs @@ -31,9 +31,13 @@ {{#if this.capabilities.canDelete}} - +
{{/if}} {{#if this.capabilities.canUpdate}} @@ -79,27 +83,30 @@ {{/each}}
-
- - - Cancel - -
+ data-test-alphabet-transform-create + /> + {{#if (eq this.mode "create")}} + + {{else}} + + {{/if}} +
{{else}} diff --git a/ui/app/templates/components/auth-button-auth0.hbs b/ui/app/templates/components/auth-button-auth0.hbs deleted file mode 100644 index 0a4e4154e8..0000000000 --- a/ui/app/templates/components/auth-button-auth0.hbs +++ /dev/null @@ -1,24 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -~}} - -
-
- {{! template-lint-disable no-forbidden-elements }} - - - - - - - - {{! template-lint-enable no-forbidden-elements }} -
-
- Sign in with Auth0 -
-
\ No newline at end of file diff --git a/ui/app/templates/components/auth-button-gitlab.hbs b/ui/app/templates/components/auth-button-gitlab.hbs deleted file mode 100644 index 16e48fe664..0000000000 --- a/ui/app/templates/components/auth-button-gitlab.hbs +++ /dev/null @@ -1,53 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -~}} - -
- {{! template-lint-disable no-forbidden-elements }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{! template-lint-enable no-forbidden-elements }} -
- Sign in with GitLab -
-
\ No newline at end of file diff --git a/ui/app/templates/components/auth-button-google.hbs b/ui/app/templates/components/auth-button-google.hbs deleted file mode 100644 index c8c96ad817..0000000000 --- a/ui/app/templates/components/auth-button-google.hbs +++ /dev/null @@ -1,75 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -~}} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Sign in with Google -
-
\ No newline at end of file diff --git a/ui/app/templates/components/auth-config-form/config.hbs b/ui/app/templates/components/auth-config-form/config.hbs index e245a51e66..d0aa09c9e9 100644 --- a/ui/app/templates/components/auth-config-form/config.hbs +++ b/ui/app/templates/components/auth-config-form/config.hbs @@ -16,13 +16,12 @@ {{/if}}
- + />
\ No newline at end of file diff --git a/ui/app/templates/components/auth-config-form/options.hbs b/ui/app/templates/components/auth-config-form/options.hbs index 35e6f0909a..eaef6e030d 100644 --- a/ui/app/templates/components/auth-config-form/options.hbs +++ b/ui/app/templates/components/auth-config-form/options.hbs @@ -12,13 +12,12 @@ {{/each}}
- + />
\ No newline at end of file diff --git a/ui/app/templates/components/auth-form.hbs b/ui/app/templates/components/auth-form.hbs index cb56335804..35506c5cb3 100644 --- a/ui/app/templates/components/auth-form.hbs +++ b/ui/app/templates/components/auth-form.hbs @@ -181,15 +181,14 @@ @selectedAuthIsPath={{this.selectedAuthIsPath}} /> {{/if}} - + /> {{#if (and this.delayAuthMessageReminder.isIdle this.showLoading)}} {{yield}} - + + {{#if this.isOIDC}} + + {{else}} + + {{/if}} \ No newline at end of file diff --git a/ui/app/templates/components/auth-saml.hbs b/ui/app/templates/components/auth-saml.hbs index a3d0059268..37ebf14037 100644 --- a/ui/app/templates/components/auth-saml.hbs +++ b/ui/app/templates/components/auth-saml.hbs @@ -31,15 +31,14 @@
{{yield}}
- + /> {{else}} diff --git a/ui/app/templates/components/calendar-widget.hbs b/ui/app/templates/components/calendar-widget.hbs index 242cf6362f..3fbbf964b1 100644 --- a/ui/app/templates/components/calendar-widget.hbs +++ b/ui/app/templates/components/calendar-widget.hbs @@ -15,6 +15,7 @@
DATE OPTIONS
+ {{! TODO Hds::Dropdown swapout }}