From 25a99a4fb615dbb7d17d792463310e1bf12e4539 Mon Sep 17 00:00:00 2001 From: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com> Date: Tue, 23 Jul 2024 09:20:51 -0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20small=20text=20updat?= =?UTF-8?q?es=20&=20loading=20state=20(#2410)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 💡 small text updates & loading state --- addons/core/translations/resources/en-us.yaml | 10 ++++---- .../form/role/manage-custom-scopes/index.hbs | 10 ++++++-- .../form/role/manage-org-projects/index.hbs | 18 ++++++++++---- .../form/role/manage-scopes/index.hbs | 12 ++++++++-- .../app/routes/scopes/scope/roles/role.js | 24 +++++++++++++++++++ .../manage-scopes/manage-custom-scopes.js | 1 + .../role/manage-scopes/manage-org-projects.js | 3 ++- .../routes/scopes/scope/roles/role/scopes.js | 3 ++- .../scopes/scope/roles/role/loading.hbs | 9 +++++++ .../roles/role/manage-scopes/loading.hbs | 9 +++++++ 10 files changed, 84 insertions(+), 15 deletions(-) create mode 100644 ui/admin/app/templates/scopes/scope/roles/role/loading.hbs create mode 100644 ui/admin/app/templates/scopes/scope/roles/role/manage-scopes/loading.hbs diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 8ad847c93..ff85c94f4 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -586,7 +586,7 @@ role: description: Select which scopes you want to add to this role. success: Scope selection saved keywords-selected: - description: Just a heads up, you can't select both add all descendants and add all children. You can only choose one or the other. + description: Just a heads up, you can't select both add all descendants and add all children. You can only choose one or the other. link: You can read more about it here manage-custom-scopes: title: Manage Custom Scopes @@ -596,9 +596,9 @@ role: title: Manage Projects in {orgDisplayName} description: Select which projects in this org you want to apply to this role's grant sets. success: Projects in org have been updated - no-org-scopes: - title: No Org Scopes Available - description: Org scopes are not available for assignment. + no-scopes: + title: No {type} Scopes Available + description: '{type} scopes are not available for assignment.' keywords: this: sub-title: This scope @@ -618,7 +618,7 @@ role: form: this: label: Add this scope - help: Add this scope. + help: Add {scopeDisplayName} scope. children: label: Add all children help: diff --git a/ui/admin/app/components/form/role/manage-custom-scopes/index.hbs b/ui/admin/app/components/form/role/manage-custom-scopes/index.hbs index b7cd2495c..5faf3ffff 100644 --- a/ui/admin/app/components/form/role/manage-custom-scopes/index.hbs +++ b/ui/admin/app/components/form/role/manage-custom-scopes/index.hbs @@ -108,10 +108,16 @@ {{else}} diff --git a/ui/admin/app/components/form/role/manage-scopes/index.hbs b/ui/admin/app/components/form/role/manage-scopes/index.hbs index d98e2ec81..fb745d512 100644 --- a/ui/admin/app/components/form/role/manage-scopes/index.hbs +++ b/ui/admin/app/components/form/role/manage-scopes/index.hbs @@ -20,7 +20,12 @@ as |F| > {{t 'resources.role.scope.form.this.label'}} - {{t 'resources.role.scope.form.this.help'}} + {{t + 'resources.role.scope.form.this.help' + scopeDisplayName=(if + @model.scope.name @model.scope.name @model.scope.id + ) + }} - {{t 'resources.role.scope.messages.keywords-selected.description'}} + {{t + 'resources.role.scope.messages.keywords-selected.description' + htmlSafe=true + }} + + + \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/roles/role/manage-scopes/loading.hbs b/ui/admin/app/templates/scopes/scope/roles/role/manage-scopes/loading.hbs new file mode 100644 index 000000000..ea9fdaa6f --- /dev/null +++ b/ui/admin/app/templates/scopes/scope/roles/role/manage-scopes/loading.hbs @@ -0,0 +1,9 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: BUSL-1.1 +}} + + + + + \ No newline at end of file