mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
Capitalize all UI h1 title is-3 titles (#21454)
* address all h1 title is-3 headings * fix mult-factor and tests * qa'ing * clean up * clean up * clean up * fix tests * fix test * one more * okay this is the last one. * blah
This commit is contained in:
parent
c59d423387
commit
20228a42ea
@ -14,20 +14,20 @@
|
||||
<Nav.Link
|
||||
@route="vault.cluster.access.methods"
|
||||
@current-when="vault.cluster.access.methods vault.cluster.access.method"
|
||||
@text="Authentication methods"
|
||||
data-test-sidebar-nav-link="Authentication methods"
|
||||
@text="Authentication Methods"
|
||||
data-test-sidebar-nav-link="Authentication Methods"
|
||||
/>
|
||||
{{/if}}
|
||||
{{#if (has-permission "access" routeParams="mfa")}}
|
||||
<Nav.Link
|
||||
@route="vault.cluster.access.mfa.methods"
|
||||
@current-when="vault.cluster.access.mfa.methods vault.cluster.access.mfa.enforcements vault.cluster.access.mfa.index"
|
||||
@text="Multi-factor authentication"
|
||||
data-test-sidebar-nav-link="Multi-factor authentication"
|
||||
@text="Multi-Factor Authentication"
|
||||
data-test-sidebar-nav-link="Multi-Factor Authentication"
|
||||
/>
|
||||
{{/if}}
|
||||
{{#if (has-permission "access" routeParams="oidc")}}
|
||||
<Nav.Link @route="vault.cluster.access.oidc" @text="OIDC provider" data-test-sidebar-nav-link="OIDC provider" />
|
||||
<Nav.Link @route="vault.cluster.access.oidc" @text="OIDC Provider" data-test-sidebar-nav-link="OIDC Provider" />
|
||||
{{/if}}
|
||||
|
||||
{{#if (and (has-feature "Control Groups") (has-permission "access" routeParams="control-groups"))}}
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
/>
|
||||
{{/if}}
|
||||
{{#if (and (has-permission "clients" routeParams="activity") (not this.cluster.dr.isSecondary))}}
|
||||
<Nav.Link @route="vault.cluster.clients" @text="Client count" data-test-sidebar-nav-link="Client count" />
|
||||
<Nav.Link @route="vault.cluster.clients" @text="Client Count" data-test-sidebar-nav-link="Client Count" />
|
||||
{{/if}}
|
||||
{{#if (and this.version.features (has-permission "status" routeParams="license") (not this.cluster.dr.isSecondary))}}
|
||||
<Nav.Link
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3" data-test-secret-header="true">
|
||||
{{#if (eq this.mode "create")}}
|
||||
Create an SSH role
|
||||
Create an SSH Role
|
||||
{{else if (eq this.mode "edit")}}
|
||||
Edit SSH role
|
||||
Edit SSH Role
|
||||
{{else}}
|
||||
SSH role
|
||||
SSH Role
|
||||
<code>{{this.model.id}}</code>
|
||||
{{/if}}
|
||||
</h1>
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
{{#if (eq @mode "create")}}
|
||||
Create secret
|
||||
Create Secret
|
||||
{{else if (and this.isV2 (eq @mode "edit"))}}
|
||||
Create new version
|
||||
Create New Version
|
||||
{{else if (eq @mode "edit")}}
|
||||
Edit secret
|
||||
Edit Secret
|
||||
{{else}}
|
||||
{{@key.id}}
|
||||
{{/if}}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Hash data
|
||||
Hash Data
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Lookup token
|
||||
Lookup Token
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Random bytes
|
||||
Random Bytes
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Rewrap token
|
||||
Rewrap Token
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Unwrap data
|
||||
Unwrap Data
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Wrap data
|
||||
Wrap Data
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
{{#if (eq this.mode "create")}}
|
||||
Create encryption key
|
||||
Create Encryption Key
|
||||
{{else if (eq this.mode "edit")}}
|
||||
Edit encryption key
|
||||
Edit Encryption Key
|
||||
{{else}}
|
||||
Encryption key
|
||||
Encryption Key
|
||||
<code>{{this.key.id}}</code>
|
||||
{{/if}}
|
||||
</h1>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Multi-factor Authentication
|
||||
Multi-Factor Authentication
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Multi-factor authentication
|
||||
Multi-Factor Authentication
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
{{this.method.name}}
|
||||
MFA
|
||||
{{else}}
|
||||
Multi-factor authentication
|
||||
Multi-Factor Authentication
|
||||
{{/if}}
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Multi-factor Authentication
|
||||
Multi-Factor Authentication
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<h1 class="title is-3">
|
||||
Create
|
||||
{{uppercase this.policyType}}
|
||||
policy
|
||||
Policy
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
View diff
|
||||
View Diff
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Edit secret metadata
|
||||
Edit Secret Metadata
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Sign SSH key
|
||||
Sign SSH Key
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Seal this vault
|
||||
Seal this Vault
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -25,7 +25,7 @@ import { messageTypes } from 'core/helpers/message-types';
|
||||
* @callback onClose
|
||||
* @param {onClose} onClose - onClose is the action taken when someone clicks the modal background or close button (if shown).
|
||||
* @param {boolean} isActive=false - whether or not modal displays
|
||||
* @param {string} [title] - This text shows up in the header section of the modal.
|
||||
* @param {string} [title] - This text shows up in the header section of the modal. Only the first word should be capitalized.
|
||||
* @param {boolean} [showCloseButton=false] - controls whether the close button in the top right corner shows.
|
||||
* @param {string} [type=null] - The header styling based on type passed into the message-types helper.
|
||||
*/
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
<Icon @name="secrets" @size="24" class="has-text-grey-light" />
|
||||
Configure KMIP secrets engine
|
||||
Configure KMIP Secrets Engine
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Generate credentials
|
||||
Generate Credentials
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Edit role
|
||||
Edit Role
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Create a role
|
||||
Create a Role
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<PageHeader as |p|>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Create a scope
|
||||
Create a Scope
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
Configure kubernetes
|
||||
Configure Kubernetes
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
{{if @model.isNew "Create role" "Edit role"}}
|
||||
{{if @model.isNew "Create Role" "Edit Role"}}
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
<Icon @name="code" class="has-text-grey-light" />
|
||||
Vault API explorer
|
||||
Vault API Explorer
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
<Icon @name="pki" @size="24" class="has-text-grey-light" />
|
||||
Configure automatic tidy
|
||||
Configure Automatic Tidy
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
<Icon @name="pki" @size="24" class="has-text-grey-light" />
|
||||
Manual tidy
|
||||
Manual Tidy
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
<Icon @name="certificate" @size="24" class="has-text-grey-light" />
|
||||
View certificate
|
||||
View Certificate
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
<Icon @name="file-text" @size="24" class="has-text-grey-light" />
|
||||
Edit PKI configuration
|
||||
Edit PKI Configuration
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
</PageHeader>
|
||||
|
||||
@ -31,7 +31,7 @@ module('Acceptance | auth-methods list view', function (hooks) {
|
||||
await page.visit();
|
||||
assert.strictEqual(currentRouteName(), 'vault.cluster.access.methods', 'navigates to the correct route');
|
||||
assert.ok(page.methodsLink.isActive, 'the first link is active');
|
||||
assert.strictEqual(page.methodsLink.text, 'Authentication methods');
|
||||
assert.strictEqual(page.methodsLink.text, 'Authentication Methods');
|
||||
});
|
||||
|
||||
test('it filters by name and auth type', async function (assert) {
|
||||
|
||||
@ -26,7 +26,7 @@ module('Acceptance | mfa-login-enforcement', function (hooks) {
|
||||
|
||||
test('it should create login enforcement', async function (assert) {
|
||||
await visit('/ui/vault/access');
|
||||
await click('[data-test-sidebar-nav-link="Multi-factor authentication"]');
|
||||
await click('[data-test-sidebar-nav-link="Multi-Factor Authentication"]');
|
||||
await click('[data-test-tab="enforcements"]');
|
||||
await click('[data-test-enforcement-create]');
|
||||
|
||||
|
||||
@ -224,7 +224,7 @@ module('Acceptance | mfa-method', function (hooks) {
|
||||
);
|
||||
await click('[data-test-tab="enforcements"]');
|
||||
assert.dom('[data-test-list-item]').hasText('bar', 'Enforcement is listed in method view');
|
||||
await click('[data-test-sidebar-nav-link="Multi-factor authentication"]');
|
||||
await click('[data-test-sidebar-nav-link="Multi-Factor Authentication"]');
|
||||
await click('[data-test-tab="enforcements"]');
|
||||
assert.dom('[data-test-list-item="bar"]').hasText('bar', 'Enforcement is listed in enforcements view');
|
||||
await click('[data-test-list-item="bar"]');
|
||||
|
||||
@ -65,12 +65,12 @@ module('Acceptance | sidebar navigation', function (hooks) {
|
||||
assert.dom(panel('Access')).exists('Access nav panel renders');
|
||||
|
||||
const links = [
|
||||
{ label: 'Multi-factor authentication', route: '/vault/access/mfa' },
|
||||
{ label: 'OIDC provider', route: '/vault/access/oidc' },
|
||||
{ label: 'Multi-Factor Authentication', route: '/vault/access/mfa' },
|
||||
{ label: 'OIDC Provider', route: '/vault/access/oidc' },
|
||||
{ label: 'Groups', route: '/vault/access/identity/groups' },
|
||||
{ label: 'Entities', route: '/vault/access/identity/entities' },
|
||||
{ label: 'Leases', route: '/vault/access/leases/list' },
|
||||
{ label: 'Authentication methods', route: '/vault/access' },
|
||||
{ label: 'Authentication Methods', route: '/vault/access' },
|
||||
];
|
||||
|
||||
for (const l of links) {
|
||||
@ -114,7 +114,7 @@ module('Acceptance | sidebar navigation', function (hooks) {
|
||||
await click(link('Access'));
|
||||
await click('[data-test-auth-enable]');
|
||||
assert.dom('[data-test-sidebar-nav-panel="Access"]').exists('Access nav panel renders');
|
||||
await click(link('Authentication methods'));
|
||||
await click(link('Authentication Methods'));
|
||||
await click('[data-test-auth-backend-link="token"]');
|
||||
await click('[data-test-configure-link]');
|
||||
assert.dom('[data-test-sidebar-nav-panel="Access"]').exists('Access nav panel renders');
|
||||
|
||||
@ -111,7 +111,7 @@ module('Acceptance | ssh secret backend', function (hooks) {
|
||||
await click('[ data-test-secret-create]');
|
||||
|
||||
assert.ok(
|
||||
find('[data-test-secret-header]').textContent.includes('SSH role'),
|
||||
find('[data-test-secret-header]').textContent.includes('SSH Role'),
|
||||
`${role.type}: renders the create page`
|
||||
);
|
||||
|
||||
|
||||
@ -44,9 +44,9 @@ module('Integration | Component | sidebar-nav-access', function (hooks) {
|
||||
test('it should render nav links', async function (assert) {
|
||||
const links = [
|
||||
'Back to main navigation',
|
||||
'Authentication methods',
|
||||
'Multi-factor authentication',
|
||||
'OIDC provider',
|
||||
'Authentication Methods',
|
||||
'Multi-Factor Authentication',
|
||||
'OIDC Provider',
|
||||
'Control Groups',
|
||||
'Namespaces',
|
||||
'Groups',
|
||||
|
||||
@ -50,7 +50,7 @@ module('Integration | Component | sidebar-nav-cluster', function (hooks) {
|
||||
'Performance',
|
||||
'Replication',
|
||||
'Raft Storage',
|
||||
'Client count',
|
||||
'Client Count',
|
||||
'License',
|
||||
'Seal Vault',
|
||||
];
|
||||
|
||||
@ -10,7 +10,7 @@ export default create({
|
||||
methodsLink: {
|
||||
isActive: hasClass('active'),
|
||||
text: text(),
|
||||
scope: '[data-test-sidebar-nav-link="Authentication methods"]',
|
||||
scope: '[data-test-sidebar-nav-link="Authentication Methods"]',
|
||||
},
|
||||
|
||||
backendLinks: collection('[data-test-auth-backend-link]', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user