From 55b8062ef475a33057c05b01206bffdc8bf695c0 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 25 Sep 2020 13:09:16 -0400 Subject: [PATCH] refactor: reorg group strings --- .../form/group/add-members/index.hbs | 2 +- .../app/controllers/scopes/scope/groups.js | 2 +- .../scopes/scope/groups/group/add-members.js | 2 +- ui/core/app/templates/scopes/scope.hbs | 2 +- ui/core/app/templates/scopes/scope/groups.hbs | 2 +- .../scopes/scope/groups/group/-actions.hbs | 2 +- .../scopes/scope/groups/group/-header.hbs | 4 ++-- .../scopes/scope/groups/group/-navigation.hbs | 2 +- .../scopes/scope/groups/group/add-members.hbs | 2 +- .../groups/group/add-members/-header.hbs | 3 ++- .../scopes/scope/groups/group/members.hbs | 6 +++--- .../templates/scopes/scope/groups/index.hbs | 8 ++++---- ui/core/translations/en-us.yaml | 5 ----- ui/core/translations/resources/en-us.yaml | 19 +++++++++++++++---- 14 files changed, 34 insertions(+), 27 deletions(-) diff --git a/ui/core/app/components/form/group/add-members/index.hbs b/ui/core/app/components/form/group/add-members/index.hbs index 14943ae3f..3f93cdc7a 100644 --- a/ui/core/app/components/form/group/add-members/index.hbs +++ b/ui/core/app/components/form/group/add-members/index.hbs @@ -9,7 +9,7 @@ > diff --git a/ui/core/app/controllers/scopes/scope/groups.js b/ui/core/app/controllers/scopes/scope/groups.js index 000d18739..b77fc8dcc 100644 --- a/ui/core/app/controllers/scopes/scope/groups.js +++ b/ui/core/app/controllers/scopes/scope/groups.js @@ -13,6 +13,6 @@ export default class ScopesScopeGroupsController extends Controller { * @type {string} */ get breadCrumb() { - return this.intl.t('resources.groups'); + return this.intl.t('resources.group.title_plural'); } } diff --git a/ui/core/app/controllers/scopes/scope/groups/group/add-members.js b/ui/core/app/controllers/scopes/scope/groups/group/add-members.js index fc07abb38..6ce53c655 100644 --- a/ui/core/app/controllers/scopes/scope/groups/group/add-members.js +++ b/ui/core/app/controllers/scopes/scope/groups/group/add-members.js @@ -13,6 +13,6 @@ export default class ScopesScopeGroupsGroupAddMembersController extends Controll * @type {string} */ get breadCrumb() { - return this.intl.t('actions.add-members'); + return this.intl.t('resources.group.messages.add-members.title'); } } diff --git a/ui/core/app/templates/scopes/scope.hbs b/ui/core/app/templates/scopes/scope.hbs index 341b098f8..0692adaa0 100644 --- a/ui/core/app/templates/scopes/scope.hbs +++ b/ui/core/app/templates/scopes/scope.hbs @@ -14,7 +14,7 @@ {{t "resources.users"}} - {{t "resources.groups"}} + {{t "resources.group.title_plural"}} {{t "resources.roles"}} diff --git a/ui/core/app/templates/scopes/scope/groups.hbs b/ui/core/app/templates/scopes/scope/groups.hbs index c53da7f4b..14f6b8561 100644 --- a/ui/core/app/templates/scopes/scope/groups.hbs +++ b/ui/core/app/templates/scopes/scope/groups.hbs @@ -1,3 +1,3 @@ -{{title (t "resources.groups")}} +{{title (t "resources.group.title_plural")}} {{outlet}} diff --git a/ui/core/app/templates/scopes/scope/groups/group/-actions.hbs b/ui/core/app/templates/scopes/scope/groups/group/-actions.hbs index 1ebd9d2c6..d4a53deb0 100644 --- a/ui/core/app/templates/scopes/scope/groups/group/-actions.hbs +++ b/ui/core/app/templates/scopes/scope/groups/group/-actions.hbs @@ -1,6 +1,6 @@ - {{t "actions.add-members"}} + {{t "resources.group.actions.add-members"}} {{t "resources.group"}} -

{{t "resources.descriptions.group"}}

+

{{t "resources.group.title"}}

+

{{t "resources.group.description"}}

diff --git a/ui/core/app/templates/scopes/scope/groups/group/-navigation.hbs b/ui/core/app/templates/scopes/scope/groups/group/-navigation.hbs index 6dc45b637..43ebee5ef 100644 --- a/ui/core/app/templates/scopes/scope/groups/group/-navigation.hbs +++ b/ui/core/app/templates/scopes/scope/groups/group/-navigation.hbs @@ -3,6 +3,6 @@ {{t 'titles.details'}}
- {{t 'titles.members'}} + {{t 'resources.group.messages.members.title'}} diff --git a/ui/core/app/templates/scopes/scope/groups/group/add-members.hbs b/ui/core/app/templates/scopes/scope/groups/group/add-members.hbs index 6f674b02d..0981d22d7 100644 --- a/ui/core/app/templates/scopes/scope/groups/group/add-members.hbs +++ b/ui/core/app/templates/scopes/scope/groups/group/add-members.hbs @@ -1,4 +1,4 @@ -{{title (t "actions.add-members")}} +{{title (t "resources.group.messages.add-members.title")}} {{t "actions.add-members"}} +

{{t "resources.group.messages.add-members.title"}}

+

{{t "resources.group.messages.add-members.description"}}

diff --git a/ui/core/app/templates/scopes/scope/groups/group/members.hbs b/ui/core/app/templates/scopes/scope/groups/group/members.hbs index 7080c05f1..0b6dee825 100644 --- a/ui/core/app/templates/scopes/scope/groups/group/members.hbs +++ b/ui/core/app/templates/scopes/scope/groups/group/members.hbs @@ -1,4 +1,4 @@ -{{title (t 'titles.members')}} +{{title (t 'resources.group.messages.members.title')}} {{#if @model.members}} @@ -43,9 +43,9 @@ {{else}} - + - {{t "descriptions.group-members-welcome"}} + {{t "resources.group.messages.members.description"}} diff --git a/ui/core/app/templates/scopes/scope/groups/index.hbs b/ui/core/app/templates/scopes/scope/groups/index.hbs index 8b153a923..499e71589 100644 --- a/ui/core/app/templates/scopes/scope/groups/index.hbs +++ b/ui/core/app/templates/scopes/scope/groups/index.hbs @@ -5,8 +5,8 @@ -

{{t "resources.groups"}}

-

{{t "resources.descriptions.groups"}}

+

{{t "resources.group.title_plural"}}

+

{{t "resources.group.description"}}

@@ -49,9 +49,9 @@ {{else}} - + - {{t 'descriptions.groups-welcome'}} + {{t 'resources.group.description'}} diff --git a/ui/core/translations/en-us.yaml b/ui/core/translations/en-us.yaml index bb991a334..ba39b23c4 100644 --- a/ui/core/translations/en-us.yaml +++ b/ui/core/translations/en-us.yaml @@ -30,7 +30,6 @@ titles: hosts-welcome: Welcome to Hosts users-welcome: Welcome to Users roles-welcome: Welcome to Roles - groups-welcome: Welcome to Groups targets-welcome: Create your first Target target-host-sets-welcome: No Host Sets Associated grants: Permissions @@ -44,8 +43,6 @@ titles: no-host-sets-for-target: No Host Sets Available role-principals-welcome: No Principals Associated no-principals-available: No Principals Available - members: Members - group-members-welcome: Welcome to Members no-available-users: No Users Available actions: Actions descriptions: @@ -58,12 +55,10 @@ descriptions: hosts-welcome: Configure a static host in this host catalog. users-welcome: Users are authorized to access Boundary. roles-welcome: Roles are collections of capabilities that can be granted to user and/or groups. - groups-welcome: Groups are collections of users. targets-welcome: Targets provide Users the means to connect to and interact networked services. A Target contains a collection of Hosts and a collection of Credentials. target-host-sets-welcome: Add Host Sets to this target to provide access. no-host-set-hosts: Before associating hosts with this host set, create hosts within the host catalog. no-host-sets-for-target: No host sets are available to add to this target. role-principals-welcome: No principals are available in this role. no-principals-available: Principals are not available for assignment. - group-members-welcome: Users belonging to this group appear here. no-available-users: No users are available to add to this group. diff --git a/ui/core/translations/resources/en-us.yaml b/ui/core/translations/resources/en-us.yaml index 081dc839e..e7615fcc3 100644 --- a/ui/core/translations/resources/en-us.yaml +++ b/ui/core/translations/resources/en-us.yaml @@ -29,6 +29,21 @@ auth-method: actions: create: Create Auth Method delete: Delete Auth Method +group: + title: Group + title_plural: Groups + description: Groups are collections of users. Groups may be assigned to roles, thereby receiving the role's grants. + messages: + welcome: + title: Welcome to Groups + members: + title: Members + description: Members are the users assigned to a group. + add-members: + title: Add Members + description: Select users to add users to this group. + actions: + add-members: Add Members session: title: Session title_plural: Sessions @@ -41,8 +56,6 @@ user: User users: Users role: Role roles: Roles -group: Group -groups: Groups orgs: Orgs org: Org projects: Projects @@ -62,8 +75,6 @@ descriptions: roles: A role is a collection of capabilities granted to any Principal the Role is assigned to. A Role belongs to one and only one Scope. A Role owns zero or more Direct Grants. The lifecycle of a Role is not tied to the lifecycle of any Principal. grants: A grant represents a set of capabilities granted to a role. It couples a set of Actions to either a set of Resource Types or an individual Resource. A Direct Grant belongs exclusively to one and only one Role. However, equivalent Direct Grants may exist across different Roles. A Direct Grant references one or more Actions and either one or more Resource types or one specific Resource. A Direct Grant is deleted when the Role it belongs to is deleted. A Direct Grant is also deleted if it is associated with a specific Resource and that Resource itself is deleted. The lifecycle of a Direct Grant is not tied to the lifecycle of any Action or Resource Type. principals: A principal is any entity which can be assigned capabilities. Principal is abstract. User, Group, and Project are concrete Principals. A Principal can be assigned to zero or more Roles. - group: All Users in a Group are granted the capabilities of all Roles the Group is associated with. A Group is deleted when the Scope it belongs to is deleted. - groups: Groups are collections of Users used only for access control purposes. A Group is owned by one and only one Scope. A Group can contain zero or more Users. A Group inherits from Principal ("is-a" Principal) allowing it to be associated with zero or more Roles. The lifecycle of a Group is not tied to the lifecycle of any User or Role. org: When an Organization is deleted, all resources owned by it are also deleted. orgs: An Organization is a top-level container, and owns zero to many Projects and zero to many Authentication Methods. An Organization inherits from Scope ("is-a" Scope) allowing it to own zero to many Groups, Roles, Targets, or Host Catalogs. The lifecycle of an Organization is not tied to anything else. A Role at the Organization level can grant permissions at the Project level. project: When a Project is deleted, all resources owned by it are also deleted. The lifecycle of a Project is not tied to any resource it contains.