Skip to content

Commit

Permalink
Cleanup worker filter translations (#2621)
Browse files Browse the repository at this point in the history
* refactor: 💡 clean-up worker filter translations
  • Loading branch information
lisbet-alvarez authored Dec 13, 2024
1 parent 5e7b74a commit 6d2f1dc
Show file tree
Hide file tree
Showing 18 changed files with 74 additions and 122 deletions.
2 changes: 2 additions & 0 deletions addons/core/translations/actions/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ narrow-results: Narrow results
overflow-options: Overflow Options
show-errors: Show Errors
hide-errors: Hide Errors
edit-worker-filter: Edit Worker Filter
add-worker-filter: Add Worker Filter
41 changes: 21 additions & 20 deletions addons/core/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ titles:
not-set: Not set
year: '{numberOfYears, plural, =1 {# year} other {# years}}'
days: '{days, plural, =1 {# day} other {# days}}'
workers: Workers
no-worker-filter: No worker filter added
descriptions:
empty-set: There are no items to display yet. You may be able to add items or try back later.
cluster-url-initialization: To get started, please enter your cluster URL
Expand Down Expand Up @@ -134,26 +136,25 @@ settings:
cache-daemon: There may be a problem with the cache daemon
client-agent: There may be a problem with the client agent
worker-filter-generator:
title: Filter generator
description: Choose what you want to format into a filter.
link: Learn more about formatting a worker filter.
toggle:
title: Show filter generator
description: The generator will automatically generate a pre-formatted filter for you. You can copy the result to the editor above.
filter-generator:
title: Filter generator
description: Choose what you want to format into a filter.
link: Learn more about formatting a worker filter.
input-values:
title: Input values
description: Next, input what you want to format.
formatted-result:
title: Formatted result
description: Copy and paste this into the editor above.
label: Generated result
tag:
label: Tag
helper: Format a worker tag
name:
label: Name
helper: Format a worker name
operator:
matches: matches
contains: contains
input-values:
title: Input values
description: Next, input what you want to format.
formatted-result:
title: Formatted result
description: Copy and paste this into the editor above.
label: Generated result
tag:
label: Tag
helper: Format a worker tag
name:
label: Name
helper: Format a worker name
operator:
matches: matches
contains: contains
2 changes: 2 additions & 0 deletions addons/core/translations/form/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,5 @@ created:
other_fields:
label: Other Fields
help: This information is provided by the server and cannot be edited in Boundary
worker_filter:
label: Worker Filter
19 changes: 1 addition & 18 deletions addons/core/translations/resources/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ host-catalog:
label: Client/Application ID
help: The client (application) ID of an Azure service principal that Boundary will use to authenticate and discover hosts from Azure.
worker_filter:
label: Worker Filter
help: Insert a worker filter in order to route requests to the correct worker.
host-set:
title: Host Set
Expand Down Expand Up @@ -501,7 +500,6 @@ storage-bucket:
label: Secret access key
help: The secret access key generated by your storage provider for the IAM user to use with this storage bucket. We will not show this data after it is saved, but you can replace it.
worker_filter:
label: Worker filter
help: Filters to the worker(s) that can handle requests for this storage bucket.
disable_credential_rotation:
label: Disable credential rotation
Expand Down Expand Up @@ -782,11 +780,9 @@ target:
title: Add Injected Application Credential Sources
description: Select injected Application credential sources to assign to this target.
workers:
title: Workers
description: You can customize how your workers route traffic to this target by setting up a filter that matches specific worker tags. If your target is in a private network, we recommend setting up an egress filter to specify a worker inside the network so that Boundary can access the host. Ingress and egress filters are allowed to select the same worker.
messages:
none:
title: No worker filter added
description: You haven't added an {type} worker filter yet.
diagram:
client: Client
Expand All @@ -812,14 +808,10 @@ target:
title: Edit Ingress Worker Filter
description: Specify workers Boundary should use to start the route to this target.
worker-filter:
title: Worker filter
description: The worker filter format for this target.
accordion-label:
egress-workers: Egress workers
ingress-workers: Ingress workers
actions:
edit-worker-filter: Edit worker filter
add-worker-filter: Add worker filter
credential-store:
title: Credential Store
title_plural: Credential Stores
Expand All @@ -830,19 +822,14 @@ credential-store:
titles:
new: New Credential Store
worker-filter:
title: Worker Filter
description: The worker filter format for this credential store.
description: A filter used to control which PKI workers can handle Vault requests, allowing the use of private Vault instances with Boundary.
messages:
none:
title: No worker filter added
description: You haven't added a worker filter yet.
edit:
title: Edit Worker Filter
description: Specify workers that have access to the credential store.
actions:
add: Add Worker Filter
delete: Delete Credential Store
edit: Edit Worker Filter
types:
vault: Vault
static: Static
Expand Down Expand Up @@ -878,9 +865,6 @@ credential-store:
help: A PEM-encoded private key matching the client certificate from Client Certificate.
client_certificate_key_hmac:
label: Client Certificate Key HMAC
worker_filter:
label: Worker Filter
help: A filter used to control which PKI workers can handle Vault requests, allowing the use of private Vault instances with Boundary.
credential-library:
title: Credential Library
title_plural: Credential Libraries
Expand Down Expand Up @@ -1014,7 +998,6 @@ managed-group:
help: The list of groups that this Managed Group belongs to.
worker:
title: Worker
title_plural: Workers
titles:
new: New PKI Worker
description: Workers are the server components that perform the session handling.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{#if (and (feature-flag 'vault-worker-filter') @model.isVault)}}
<dd.Interactive
@route='scopes.scope.credential-stores.credential-store.edit-worker-filter'
@text={{t 'resources.credential-store.actions.edit'}}
@text={{t 'actions.edit-worker-filter'}}
/>
{{/if}}
{{#if (can 'delete model' @model)}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<nav.link
@route='scopes.scope.credential-stores.credential-store.worker-filter'
>
{{t 'resources.credential-store.worker-filter.title'}}
{{t 'form.worker_filter.label'}}
</nav.link>
{{/if}}
{{#if (can 'navigate model' @model collection='credential-libraries')}}
Expand Down
4 changes: 1 addition & 3 deletions ui/admin/app/components/form/host-catalog/aws/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,7 @@
disabled={{form.disabled}}
as |F|
>
<F.Label>
{{t 'resources.host-catalog.form.worker_filter.label'}}
</F.Label>
<F.Label>{{t 'form.worker_filter.label'}}</F.Label>
<F.HelperText>
{{t 'resources.host-catalog.form.worker_filter.help'}}
<Hds::Link::Inline @href={{doc-url 'worker.create-tags'}}>
Expand Down
4 changes: 1 addition & 3 deletions ui/admin/app/components/form/storage-bucket/aws/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,7 @@
@isRequired={{true}}
as |F|
>
<F.Legend id={{labelId}}>{{t
'resources.storage-bucket.form.worker_filter.label'
}}</F.Legend>
<F.Legend id={{labelId}}>{{t 'form.worker_filter.label'}}</F.Legend>
<F.HelperText id={{helpId}}>
{{t 'resources.storage-bucket.form.worker_filter.help'}}
<Hds::Link::Inline @href={{doc-url 'storage-bucket.worker-filter'}}>
Expand Down
4 changes: 1 addition & 3 deletions ui/admin/app/components/form/storage-bucket/minio/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,7 @@
@isRequired={{true}}
as |F|
>
<F.Legend id={{labelId}}>{{t
'resources.storage-bucket.form.worker_filter.label'
}}</F.Legend>
<F.Legend id={{labelId}}>{{t 'form.worker_filter.label'}}</F.Legend>
<F.HelperText {{helpId}}>
{{t 'resources.storage-bucket.form.worker_filter.help'}}
<Hds::Link::Inline @href={{doc-url 'storage-bucket.worker-filter'}}>
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/components/targets/target/nav/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{t 'titles.details'}}
</nav.link>
<nav.link @route='scopes.scope.targets.target.workers'>
{{t 'resources.target.workers.title'}}
{{t 'titles.workers'}}
</nav.link>
<nav.link @route='scopes.scope.targets.target.host-sources'>
{{t 'resources.target.host-source.title_plural'}}
Expand Down
39 changes: 13 additions & 26 deletions ui/admin/app/components/worker-filter-generator/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,32 @@
{{on 'change' this.setGeneratorType}}
as |G|
>
<G.Legend>{{t 'worker-filter-generator.filter-generator.title'}}</G.Legend>
<G.Legend>{{t 'worker-filter-generator.title'}}</G.Legend>
<G.HelperText>
{{t 'worker-filter-generator.filter-generator.description'}}
{{t 'worker-filter-generator.description'}}
<br />
<Hds::Link::Inline
@href={{doc-url 'worker-filters-format'}}
@color='secondary'
>
{{t 'worker-filter-generator.filter-generator.link'}}
{{t 'worker-filter-generator.link'}}
</Hds::Link::Inline>
</G.HelperText>
<G.RadioField
@value={{this.generatorTagType}}
checked={{eq this.selectedGeneratorType this.generatorTagType}}
as |F|
>
<F.Label>{{t
'worker-filter-generator.filter-generator.tag.label'
}}</F.Label>
<F.HelperText>{{t
'worker-filter-generator.filter-generator.tag.helper'
}}</F.HelperText>
<F.Label>{{t 'worker-filter-generator.tag.label'}}</F.Label>
<F.HelperText>{{t 'worker-filter-generator.tag.helper'}}</F.HelperText>
</G.RadioField>
<G.RadioField
@value={{this.generatorNameType}}
checked={{eq this.selectedGeneratorType this.generatorNameType}}
as |F|
>
<F.Label>{{t
'worker-filter-generator.filter-generator.name.label'
}}</F.Label>
<F.HelperText>{{t
'worker-filter-generator.filter-generator.name.helper'
}}</F.HelperText>
<F.Label>{{t 'worker-filter-generator.name.label'}}</F.Label>
<F.HelperText>{{t 'worker-filter-generator.name.helper'}}</F.HelperText>
</G.RadioField>
</Hds::Form::Radio::Group>

Expand All @@ -96,10 +88,10 @@
as |F|
>
<F.Legend id={{labelId}}>{{t
'worker-filter-generator.filter-generator.input-values.title'
'worker-filter-generator.input-values.title'
}}</F.Legend>
<F.HelperText id={{helpId}}>{{t
'worker-filter-generator.filter-generator.input-values.description'
'worker-filter-generator.input-values.description'
}}</F.HelperText>
<F.Control>
{{#if (eq this.selectedGeneratorType this.generatorTagType)}}
Expand Down Expand Up @@ -133,12 +125,7 @@
{{#if (eq operator '==')}}
{{operator}}
{{else}}
{{t
(concat
'worker-filter-generator.filter-generator.operator.'
operator
)
}}
{{t (concat 'worker-filter-generator.operator.' operator)}}
{{/if}}
</option>
{{/each}}
Expand Down Expand Up @@ -169,14 +156,14 @@
as |F|
>
<F.Legend id={{labelId}}>{{t
'worker-filter-generator.filter-generator.formatted-result.title'
'worker-filter-generator.formatted-result.title'
}}</F.Legend>
<F.HelperText id={{helpId}}>{{t
'worker-filter-generator.filter-generator.formatted-result.description'
'worker-filter-generator.formatted-result.description'
}}</F.HelperText>
<F.Control>
<Hds::Text::Body @tag='p' @weight='semibold'>{{t
'worker-filter-generator.filter-generator.formatted-result.label'
'worker-filter-generator.formatted-result.label'
}}</Hds::Text::Body>
<div class='generated-results-container'>
<Hds::Form::TextInput::Base
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/templates/scopes/scope.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}}
<nav.link @route='scopes.scope.workers'>
<Rose::Icon @name='flight-icons/svg/cpu-16' @size='medium' />
{{t 'resources.worker.title_plural'}}
{{t 'titles.workers'}}
</nav.link>
{{/if}}
</Rose::Nav::Sidebar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
SPDX-License-Identifier: BUSL-1.1
}}

{{page-title
(t 'resources.credential-store.worker-filter.messages.edit.title')
}}
{{page-title (t 'actions.edit-worker-filter')}}
<Breadcrumbs::Item
@text={{t 'resources.credential-store.worker-filter.messages.edit.title'}}
@text={{t 'actions.edit-worker-filter'}}
@route='scopes.scope.credential-stores.credential-store.edit-worker-filter'
/>

Expand All @@ -18,7 +16,7 @@

<page.header>
<Hds::Text::Display @tag='h2' @size='300' class='h2'>
{{t 'resources.credential-store.worker-filter.messages.edit.title'}}
{{t 'actions.edit-worker-filter'}}
<DocLink @doc='worker-filters-format' @iconSize='large' />
</Hds::Text::Display>
<Hds::Text::Body @tag='p' @size='300'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
SPDX-License-Identifier: BUSL-1.1
}}

{{page-title (t 'resources.credential-store.worker-filter.title')}}
{{page-title (t 'form.worker_filter.label')}}
<Breadcrumbs::Item
@text={{t 'resources.credential-store.worker-filter.title'}}
@text={{t 'form.worker_filter.label'}}
@route='scopes.scope.credential-stores.credential-store.worker-filter'
/>

Expand Down Expand Up @@ -38,21 +38,15 @@
@hasCopyButton={{true}}
as |CB|
>
<CB.Title>
{{t 'resources.credential-store.worker-filter.title'}}
</CB.Title>
<CB.Title>{{t 'form.worker_filter.label'}}</CB.Title>
<CB.Description>
{{t 'resources.credential-store.worker-filter.description'}}
</CB.Description>
</Hds::CodeBlock>
{{else}}
<Rose::Layout::Centered>
<Hds::ApplicationState as |A|>
<A.Header
@title={{t
'resources.credential-store.worker-filter.messages.none.title'
}}
/>
<A.Header @title={{t 'titles.no-worker-filter'}} />
<A.Body
@text={{t
'resources.credential-store.worker-filter.messages.none.description'
Expand All @@ -61,7 +55,7 @@
<A.Footer as |F|>
<F.LinkStandalone
@icon='plus-circle'
@text={{t 'resources.credential-store.actions.add'}}
@text={{t 'actions.add-worker-filter'}}
@route='scopes.scope.credential-stores.credential-store.edit-worker-filter'
/>
</A.Footer>
Expand Down
Loading

0 comments on commit 6d2f1dc

Please sign in to comment.