Upgrade HDS dependency to 4.13 & migrate FlightIcon to Hds::Icon (#2540)
* updated hds and replaced deprecated flight-icon * removed code trying to import from ember-flight-icons * fixing linting issue * fixing linting issue * fixing dropdown test selectors * updated dropdown selectors * updated dropdown selectors * updated dropdown selectors * addressing pr feedback * fixing linting error * updating dropdown selectors
This commit is contained in:
1 parent
70aceb1699
commit
6eb83b2a25
45 files changed
+111
-120
No files matched your search
@@ -15,7 +15,7 @@ module('Integration | Component | session-status', function (hooks) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.model = store.createRecord('session', { status: 'active' });
|
||||
await render(hbs`<SessionStatus @model={{this.model}} />`);
|
||||
assert.ok(find('.flight-icon-check'));
|
||||
assert.ok(find('.hds-icon-check'));
|
||||
assert.ok(find('.hds-badge--color-success'));
|
||||
assert.ok(find('.hds-badge--type-filled'));
|
||||
});
|
||||
@@ -24,7 +24,7 @@ module('Integration | Component | session-status', function (hooks) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.model = store.createRecord('session', { status: 'canceling' });
|
||||
await render(hbs`<SessionStatus @model={{this.model}} />`);
|
||||
assert.ok(find('.flight-icon-alert-triangle'));
|
||||
assert.ok(find('.hds-icon-alert-triangle'));
|
||||
assert.ok(find('.hds-badge--color-warning'));
|
||||
assert.ok(find('.hds-badge--type-filled'));
|
||||
});
|
||||
@@ -33,7 +33,7 @@ module('Integration | Component | session-status', function (hooks) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.model = store.createRecord('session', { status: 'terminated' });
|
||||
await render(hbs`<SessionStatus @model={{this.model}} />`);
|
||||
assert.ok(find('.flight-icon-x'));
|
||||
assert.ok(find('.hds-icon-x'));
|
||||
assert.ok(find('.hds-badge--color-critical'));
|
||||
assert.ok(find('.hds-badge--type-filled'));
|
||||
});
|
||||
@@ -42,7 +42,7 @@ module('Integration | Component | session-status', function (hooks) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.model = store.createRecord('session', { status: 'pending' });
|
||||
await render(hbs`<SessionStatus @model={{this.model}} />`);
|
||||
assert.ok(find('.flight-icon-delay'));
|
||||
assert.ok(find('.hds-icon-delay'));
|
||||
assert.ok(find('.hds-badge--color-neutral'));
|
||||
assert.ok(find('.hds-badge--type-filled'));
|
||||
});
|
||||
@@ -51,7 +51,7 @@ module('Integration | Component | session-status', function (hooks) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.model = store.createRecord('session', { status: 'any string' });
|
||||
await render(hbs`<SessionStatus @model={{this.model}} />`);
|
||||
assert.notOk(find('.flight-icon'));
|
||||
assert.notOk(find('.hds-icon'));
|
||||
assert.ok(find('.hds-badge--color-neutral'));
|
||||
assert.ok(find('.hds-badge--type-outlined'));
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<li class='rose-metadata-list-item {{(concat "hds-foreground-" @color)}}'>
|
||||
{{#if @icon}}
|
||||
<FlightIcon @name={{@icon}} />
|
||||
<Hds::Icon @name={{@icon}} />
|
||||
{{/if}}
|
||||
{{yield}}
|
||||
</li>
|
||||
@@ -27,12 +27,11 @@ module.exports = {
|
||||
|
||||
/**
|
||||
* Due to a limitation in how ember treats nested addons (see https://github.com/ember-cli/ember-cli/issues/4475)
|
||||
* this is neeeded to reach down into @hashicorp/ember-flight-icons' contentFor hook to run the logic
|
||||
* this is neeeded to reach down into @hashicorp/design-system-components' contentFor hook to run the logic
|
||||
* that injects the sprite into the DOM
|
||||
*/
|
||||
contentFor(type, config) {
|
||||
return this.findOwnAddonByName('@hashicorp/design-system-components')
|
||||
.findOwnAddonByName('@hashicorp/ember-flight-icons')
|
||||
.contentFor(type, config);
|
||||
},
|
||||
|
||||
@@ -45,8 +44,6 @@ module.exports = {
|
||||
'../../node_modules/@hashicorp/design-system-tokens/dist/products/css';
|
||||
const hdsPath =
|
||||
'../../node_modules/@hashicorp/design-system-components/dist/styles';
|
||||
const iconsPath =
|
||||
'../../node_modules/@hashicorp/ember-flight-icons/dist/styles';
|
||||
|
||||
// Setup default sassOptions on the running application
|
||||
app.options.sassOptions = app.options.sassOptions || {};
|
||||
@@ -56,7 +53,6 @@ module.exports = {
|
||||
// Include the addon styles
|
||||
app.options.sassOptions.includePaths.push(tokensPath);
|
||||
app.options.sassOptions.includePaths.push(hdsPath);
|
||||
app.options.sassOptions.includePaths.push(iconsPath);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@embroider/test-setup": "^2.1.1",
|
||||
"@hashicorp/design-system-components": "^4.4.1",
|
||||
"@hashicorp/design-system-components": "^4.13.0",
|
||||
"codemirror": "5.65.7",
|
||||
"ember-auto-import": "^2.8.1",
|
||||
"ember-cli-babel": "^8.2.0",
|
||||
|
||||
@@ -60,7 +60,7 @@ module('Integration | Component | rose/metadata-list', function (hooks) {
|
||||
</Rose::MetadataList>
|
||||
`);
|
||||
|
||||
assert.dom('.flight-icon').isNotVisible();
|
||||
assert.dom('.hds-icon').isNotVisible();
|
||||
assert.dom('li.rose-metadata-list-item').hasText('Sample text 3');
|
||||
});
|
||||
});
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<div class='info-field{{if @icon " has-icon"}}'>
|
||||
{{#if @icon}}
|
||||
<FlightIcon @name={{@icon}} @size='24' />
|
||||
<Hds::Icon @name={{@icon}} @size='24' @isInline={{true}} />
|
||||
{{/if}}
|
||||
<Hds::Form::TextInput::Field
|
||||
@value={{@value}}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<FlightIcon @name='arrow-right' />
|
||||
<Hds::Icon @name='arrow-right' @isInline={{true}} />
|
||||
</LinkTo>
|
||||
{{else}}
|
||||
<LinkTo @route={{@route}} @model={{@model}}>
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<FlightIcon @name='arrow-right' />
|
||||
<Hds::Icon @name='arrow-right' @isInline={{true}} />
|
||||
</LinkTo>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
{{!
|
||||
Separator icon is not configurable, but potentially could be.
|
||||
}}
|
||||
<FlightIcon @name='arrow-right' @size='24' />
|
||||
<Hds::Icon @name='arrow-right' @size='24' @isInline={{true}} />
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -16,7 +16,7 @@
|
||||
{{!
|
||||
Separator icon is not configurable, but potentially could be.
|
||||
}}
|
||||
<FlightIcon @name='arrow-right' @size='24' />
|
||||
<Hds::Icon @name='arrow-right' @size='24' @isInline={{true}} />
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -368,7 +368,7 @@
|
||||
}
|
||||
|
||||
&.has-icon {
|
||||
.flight-icon {
|
||||
.hds-icon {
|
||||
position: absolute;
|
||||
transform: translateY(sizing.rems(xl) - sizing.rems(xs));
|
||||
}
|
||||
@@ -663,7 +663,7 @@
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.flight-icon-arrow-right {
|
||||
.hds-icon-arrow-right {
|
||||
color: var(--token-color-foreground-faint);
|
||||
}
|
||||
}
|
||||
@@ -913,7 +913,7 @@
|
||||
.session-recording-status-badge {
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
div.hds-badge__icon {
|
||||
svg.flight-icon-circle-dot {
|
||||
svg.hds-icon-circle-dot {
|
||||
color: var(--token-color-palette-red-200);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,11 @@
|
||||
{{! We have created }}
|
||||
<div class='create-resources-item'>
|
||||
<span class='create-resources-item-header'>
|
||||
<FlightIcon
|
||||
<Hds::Icon
|
||||
@name='check-circle'
|
||||
@size='24'
|
||||
class='hds-foreground-success'
|
||||
@isInline={{true}}
|
||||
/>
|
||||
<h3>{{t 'onboarding.success.titles.creation-success'}}</h3>
|
||||
</span>
|
||||
@@ -26,7 +27,7 @@
|
||||
{{! Download Desktop client }}
|
||||
<div class='create-resources-item'>
|
||||
<span class='create-resources-item-header'>
|
||||
<FlightIcon @name='boundary-color' @size='24' />
|
||||
<Hds::Icon @name='boundary-color' @size='24' @isInline={{true}} />
|
||||
<h3>{{t 'onboarding.success.titles.desktop'}}</h3>
|
||||
</span>
|
||||
<p>{{t 'onboarding.success.descriptions.download'}}</p>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<B.Td>
|
||||
{{#if B.data.target.displayName}}
|
||||
<div class='aliases-list-cell-item'>
|
||||
<span><FlightIcon @name='target' /></span>
|
||||
<span><Hds::Icon @name='target' @isInline={{true}} /></span>
|
||||
<span> {{B.data.target.displayName}} </span>
|
||||
</div>
|
||||
{{else}}
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
as |orgId items|
|
||||
}}
|
||||
<FD.Generic>
|
||||
<FlightIcon @name='org' />
|
||||
<Hds::Icon @name='org' @isInline={{true}} />
|
||||
{{this.orgName orgId}}
|
||||
</FD.Generic>
|
||||
{{#each items as |project|}}
|
||||
@@ -155,7 +155,7 @@
|
||||
<div
|
||||
class='session-recording-list-cell-item hds-font-weight-semibold'
|
||||
>
|
||||
<span><FlightIcon @name='user' /></span>
|
||||
<span><Hds::Icon @name='user' @isInline={{true}} /></span>
|
||||
<span>{{B.data.userDisplayName}}</span>
|
||||
</div>
|
||||
</B.Td>
|
||||
@@ -165,7 +165,7 @@
|
||||
class='session-recording-list-cell-item target-column hds-font-weight-semibold'
|
||||
>
|
||||
<span>
|
||||
<FlightIcon @name='target' />
|
||||
<Hds::Icon @name='target' @isInline={{true}} />
|
||||
{{B.data.create_time_values.target.name}}
|
||||
</span>
|
||||
<span>
|
||||
@@ -182,7 +182,7 @@
|
||||
<div
|
||||
class='session-recording-list-cell-item hds-foreground-faint'
|
||||
>
|
||||
<span><FlightIcon @name='clock' /></span>
|
||||
<span><Hds::Icon @name='clock' @isInline={{true}} /></span>
|
||||
<span>
|
||||
{{format-time-duration B.data.duration}}
|
||||
</span>
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
@model={{@model.sessionRecording.id}}
|
||||
>
|
||||
<div class='session-recording-player-loading'>
|
||||
<FlightIcon @name='loading' @size='24' />
|
||||
<Hds::Icon @name='loading' @size='24' @isInline={{true}} />
|
||||
<span>{{t 'resources.session-recording.channel.player.loading'}}</span>
|
||||
</div>
|
||||
</SessionRecording::Player>
|
||||
@@ -48,7 +48,7 @@ module('Acceptance | auth-methods | create', function (hooks) {
|
||||
const TOGGLE_SELECTOR = '[name="prompts"]';
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-auth-method] div:first-child button';
|
||||
'[data-test-manage-auth-method] button:first-child';
|
||||
const MAKE_PRIMARY_SELECTOR =
|
||||
'[data-test-manage-auth-method] ul li:first-child button';
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ module('Acceptance | auth-methods | delete', function (hooks) {
|
||||
const ERROR_MSG_SELECTOR = '.rose-notification-body';
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-auth-method] div:first-child button';
|
||||
'[data-test-manage-auth-method] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-auth-method] ul li:last-child button';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ module('Acceptance | credential-libraries | delete', function (hooks) {
|
||||
|
||||
let getCredentialLibraryCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-credential-library-dropdown] div:first-child button';
|
||||
'[data-test-manage-credential-library-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-credential-library-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ module(
|
||||
let getJSONCredentialCount;
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-credentials-dropdown] div:first-child button';
|
||||
'[data-test-manage-credentials-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-credentials-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ module('Acceptance | credential-stores | credentials | list', function (hooks) {
|
||||
setupMirage(hooks);
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-credential-stores-dropdown] div:first-child button';
|
||||
'[data-test-manage-credential-stores-dropdown] button:first-child';
|
||||
|
||||
const ADD_CREDENTIALS_SELECTOR =
|
||||
'[data-test-manage-credential-stores-dropdown] div ul li a';
|
||||
|
||||
@@ -21,7 +21,7 @@ module('Acceptance | credential-stores | delete', function (hooks) {
|
||||
let getStaticCredentialStoresCount;
|
||||
let getVaultCredentialStoresCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-credential-stores-dropdown] div:first-child button';
|
||||
'[data-test-manage-credential-stores-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-credential-stores-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -19,10 +19,8 @@ module('Acceptance | groups | delete', function (hooks) {
|
||||
setupApplicationTest(hooks);
|
||||
setupMirage(hooks);
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-group-dropdown] div:first-child button';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-group-dropdown] ul li button';
|
||||
const MANAGE_DROPDOWN_SELECTOR = "[data-test-manage-group-dropdown] button:first-child"
|
||||
const DELETE_ACTION_SELECTOR = "[data-test-manage-group-dropdown] ul li button"
|
||||
|
||||
const instances = {
|
||||
scopes: {
|
||||
|
||||
@@ -38,7 +38,7 @@ module('Acceptance | groups | members', function (hooks) {
|
||||
};
|
||||
let membersCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-group-dropdown] div:first-child button';
|
||||
'[data-test-manage-group-dropdown] button:first-child';
|
||||
const ADD_MEMBERS_ACTION_SELECTOR =
|
||||
'[data-test-manage-group-dropdown] ul li a';
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ module('Acceptance | host-catalogs | delete', function (hooks) {
|
||||
|
||||
let getHostCatalogCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-host-catalogs-dropdown] div:first-child button';
|
||||
'[data-test-manage-host-catalogs-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-host-catalogs-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ module('Acceptance | host-catalogs | host sets | delete', function (hooks) {
|
||||
|
||||
let getHostSetCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-dropdown-host-sets] div:first-child button';
|
||||
'[data-test-manage-dropdown-host-sets] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-dropdown-host-sets] ul li button';
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ module('Acceptance | host-catalogs | host-sets | hosts', function (hooks) {
|
||||
|
||||
let getHostSetHostCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-dropdown-host-sets] div:first-child button';
|
||||
'[data-test-manage-dropdown-host-sets] button:first-child';
|
||||
const CREATE_AND_ADD_HOSTS_SELECTOR =
|
||||
'[data-test-manage-dropdown-host-sets] div ul li:first-child a';
|
||||
const ADD_EXISTING_HOSTS_SELECTOR =
|
||||
|
||||
@@ -19,7 +19,7 @@ module('Acceptance | host-catalogs | host sets | list', function (hooks) {
|
||||
setupMirage(hooks);
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-host-catalogs-dropdown] div:first-child button';
|
||||
'[data-test-manage-host-catalogs-dropdown] button:first-child';
|
||||
|
||||
const instances = {
|
||||
scopes: {
|
||||
|
||||
@@ -23,7 +23,7 @@ module('Acceptance | host-catalogs | hosts | delete', function (hooks) {
|
||||
|
||||
let getHostCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-hosts-dropdown] div:first-child button';
|
||||
'[data-test-manage-hosts-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-hosts-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ module('Acceptance | host-catalogs | hosts | list', function (hooks) {
|
||||
setupMirage(hooks);
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-host-catalogs-dropdown] div:first-child button';
|
||||
'[data-test-manage-host-catalogs-dropdown] button:first-child';
|
||||
const NEW_HOST_SELECTOR =
|
||||
'[data-test-manage-host-catalogs-dropdown] div ul li a';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
export const MANAGE_DROPDOWN =
|
||||
'[data-test-manage-host-catalogs-dropdown] div:first-child button';
|
||||
'[data-test-manage-host-catalogs-dropdown] button:first-child';
|
||||
|
||||
export const FIELD_ADDRESS = '[name=address]';
|
||||
export const FIELD_ADDRESS_VALUE = 'New address';
|
||||
@@ -30,7 +30,7 @@ module('Acceptance | managed-groups | create', function (hooks) {
|
||||
const DESC_INPUT_SELECTOR = '[name="description"]';
|
||||
const ERROR_MSG_SELECTOR = '.rose-notification-body';
|
||||
const FIELD_ERROR_TEXT_SELECTOR = '.hds-form-error__message';
|
||||
const MANAGE_DROPDOWN_SELECTOR = '[data-test-manage-auth-method] div button';
|
||||
const MANAGE_DROPDOWN_SELECTOR = '[data-test-manage-auth-method] button:first-child';
|
||||
|
||||
const instances = {
|
||||
scopes: {
|
||||
|
||||
@@ -22,7 +22,7 @@ module('Acceptance | managed-groups | delete', function (hooks) {
|
||||
let getManagedGroupCount;
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-managed-group-dropdown] div:first-child button';
|
||||
'[data-test-managed-group-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-managed-group-dropdown] ul li button';
|
||||
const ERROR_MSG_SELECTOR = '.rose-notification-body';
|
||||
|
||||
@@ -20,7 +20,7 @@ module('Acceptance | managed-groups | list', function (hooks) {
|
||||
setupIndexedDb(hooks);
|
||||
|
||||
let featuresService;
|
||||
const MANAGE_DROPDOWN_SELECTOR = '[data-test-manage-auth-method] div button';
|
||||
const MANAGE_DROPDOWN_SELECTOR = '[data-test-manage-auth-method] button:first-child';
|
||||
|
||||
const instances = {
|
||||
scopes: {
|
||||
|
||||
@@ -23,7 +23,7 @@ module('Acceptance | scopes | delete', function (hooks) {
|
||||
|
||||
let getScopeCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-projects-dropdown] div:first-child button';
|
||||
'[data-test-manage-projects-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-projects-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ module('Acceptance | scopes | read', function (hooks) {
|
||||
|
||||
const FORM_SELECTOR = 'main .rose-form';
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-projects-dropdown] div:first-child button';
|
||||
'[data-test-manage-projects-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-projects-dropdown] ul li button';
|
||||
const STORAGE_POLICY_SIDEBAR = '.policy-sidebar';
|
||||
|
||||
@@ -23,7 +23,7 @@ module('Acceptance | targets | delete', function (hooks) {
|
||||
|
||||
let getTargetCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-targets-dropdown] div:first-child button';
|
||||
'[data-test-manage-targets-dropdown] button:first-child';
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-targets-dropdown] ul li button';
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ module('Acceptance | targets | host-sources', function (hooks) {
|
||||
|
||||
let getTargetHostSetCount;
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-targets-dropdown] div:first-child button';
|
||||
'[data-test-manage-targets-dropdown] button:first-child';
|
||||
const ADD_HOSTSOURCE_SELECTOR = '[data-test-manage-targets-dropdown] ul li a';
|
||||
|
||||
const instances = {
|
||||
|
||||
@@ -28,7 +28,7 @@ module('Acceptance | users | accounts', function (hooks) {
|
||||
const ADD_ACCOUNTS_ACTION_SELECTOR =
|
||||
'[data-test-manage-user-dropdown] ul li:first-child a';
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-user-dropdown] div:first-child button';
|
||||
'[data-test-manage-user-dropdown] button:first-child';
|
||||
const ERROR_MSG_SELECTOR = '[role="alert"]';
|
||||
const TABLE_ROWS_SELECTOR = 'tbody tr';
|
||||
const CHECKBOX_SELECTOR = 'tbody label';
|
||||
|
||||
@@ -20,10 +20,8 @@ module('Acceptance | users | delete', function (hooks) {
|
||||
setupApplicationTest(hooks);
|
||||
setupMirage(hooks);
|
||||
setupIndexedDb(hooks);
|
||||
const DELETE_ACTION_SELECTOR =
|
||||
'[data-test-manage-user-dropdown] ul li button';
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-user-dropdown] div:first-child button';
|
||||
const DELETE_ACTION_SELECTOR = "[data-test-manage-user-dropdown] ul li button"
|
||||
const MANAGE_DROPDOWN_SELECTOR = "[data-test-manage-user-dropdown] button:first-child"
|
||||
const instances = {
|
||||
scopes: {
|
||||
global: null,
|
||||
|
||||
@@ -17,9 +17,9 @@ module('Acceptance | workers | worker | create-tags', function (hooks) {
|
||||
const SAVE_BUTTON_SELECTOR = '[type="submit"]';
|
||||
const CANCEL_BUTTON_SELECTOR = '.rose-form-actions [type="button"]';
|
||||
const MANAGE_DROPDOWN_TOGGLE =
|
||||
'[data-test-manage-worker-dropdown] div button';
|
||||
'[data-test-manage-worker-dropdown] button:first-child';
|
||||
const CREATE_TAGS_BUTTON_SELECTOR =
|
||||
'[data-test-manage-worker-dropdown] div:first-child a';
|
||||
'[data-test-manage-worker-dropdown] ul a:first-child';
|
||||
const KEY_INPUT_SELECTOR = '[name="api_tags"] tr td:first-child input';
|
||||
const VALUE_INPUT_SELECTOR = '[name="api_tags"] tr td:nth-child(2) input';
|
||||
const ADD_INPUT_SELECTOR = '[name="api_tags"] tr td:last-child button';
|
||||
|
||||
@@ -22,7 +22,7 @@ module('Acceptance | workers | delete', function (hooks) {
|
||||
setupMirage(hooks);
|
||||
|
||||
const MANAGE_DROPDOWN_TOGGLE =
|
||||
'[data-test-manage-worker-dropdown] div button';
|
||||
'[data-test-manage-worker-dropdown] button:first-child';
|
||||
const REMOVE_WORKER_BUTTON =
|
||||
'[data-test-manage-worker-dropdown] div:nth-child(2) button';
|
||||
let getWorkerCount;
|
||||
|
||||
@@ -53,7 +53,11 @@
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<FlightIcon class='host-arrow' @name='arrow-right' />
|
||||
<Hds::Icon
|
||||
class='host-arrow'
|
||||
@name='arrow-right'
|
||||
@isInline={{true}}
|
||||
/>
|
||||
</button>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
||||
@@ -503,7 +503,7 @@ $chevron-down: url("data:image/svg+xml;utf-8,<svg viewBox='0 0 24 24' fill='%231
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.flight-icon {
|
||||
.hds-icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
{{#let (group-by itemOptions 'scopeModel') as |orgs|}}
|
||||
{{#each orgs as |org|}}
|
||||
<FD.Generic>
|
||||
<FlightIcon @name='org' />
|
||||
<Hds::Icon @name='org' @isInline={{true}} />
|
||||
{{org.key.displayName}}
|
||||
</FD.Generic>
|
||||
{{#each org.items as |project|}}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
{{#let (group-by itemOptions 'scopeModel') as |orgs|}}
|
||||
{{#each orgs as |org|}}
|
||||
<FD.Generic>
|
||||
<FlightIcon @name='org' />
|
||||
<Hds::Icon @name='org' @isInline={{true}} />
|
||||
{{org.key.displayName}}
|
||||
</FD.Generic>
|
||||
{{#each org.items as |project|}}
|
||||
|
||||
@@ -4144,39 +4144,38 @@
|
||||
resolved "https://registry.yarnpkg.com/@handlebars/parser/-/parser-2.0.0.tgz#5e8b7298f31ff8f7b260e6b7363c7e9ceed7d9c5"
|
||||
integrity sha512-EP9uEDZv/L5Qh9IWuMUGJRfwhXJ4h1dqKTT4/3+tY0eu7sPis7xh23j61SYUnNF4vqCQvvUXpDo9Bh/+q1zASA==
|
||||
|
||||
"@hashicorp/design-system-components@^4.4.1":
|
||||
version "4.4.1"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/design-system-components/-/design-system-components-4.4.1.tgz#22c6dbc3b7a808b5e6f20c275963da0eca2f9a20"
|
||||
integrity sha512-y80hPnJJYFu4qKd6Hjb8WBV+uxuLVMxWQdrJlwo7Hl2LtOlBr8VQCCRelvPGI2VrF5VTehQinA+lLTzfMMe09w==
|
||||
"@hashicorp/design-system-components@^4.13.0":
|
||||
version "4.13.1"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/design-system-components/-/design-system-components-4.13.1.tgz#18a12eb23e52a7676613f6bf39e4defdfd73182a"
|
||||
integrity sha512-yEiQJxAs0zgt/dxM6ZYPcVJT0a3C2wrO+8iOxUd623jyDXlbyjD/vZSp7qOCvkomQkHvWgD/7clVdl75a5i3rQ==
|
||||
dependencies:
|
||||
"@ember/render-modifiers" "^2.0.5"
|
||||
"@ember/string" "^3.1.1"
|
||||
"@ember/test-waiters" "^3.1.0"
|
||||
"@embroider/addon-shim" "^1.8.7"
|
||||
"@floating-ui/dom" "^1.6.3"
|
||||
"@hashicorp/design-system-tokens" "^2.1.0"
|
||||
"@hashicorp/ember-flight-icons" "^5.0.3"
|
||||
"@oddbird/popover-polyfill" "^0.4.3"
|
||||
"@hashicorp/design-system-tokens" "^2.2.1"
|
||||
"@hashicorp/flight-icons" "^3.7.0"
|
||||
decorator-transforms "^1.1.0"
|
||||
ember-a11y-refocus "^3.0.2"
|
||||
ember-a11y-refocus "^4.1.3"
|
||||
ember-cli-sass "^11.0.1"
|
||||
ember-composable-helpers "^5.0.0"
|
||||
ember-element-helper "^0.8.5"
|
||||
ember-focus-trap "^1.1.0"
|
||||
ember-keyboard "^8.2.1"
|
||||
ember-get-config "^2.1.1"
|
||||
ember-modifier "^4.1.0"
|
||||
ember-power-select "^8.2.0"
|
||||
ember-stargate "^0.4.3"
|
||||
ember-style-modifier "^3.0.1"
|
||||
ember-style-modifier "^4.4.0"
|
||||
ember-truth-helpers "^4.0.3"
|
||||
prismjs "^1.29.0"
|
||||
sass "^1.69.5"
|
||||
tippy.js "^6.3.7"
|
||||
|
||||
"@hashicorp/design-system-tokens@^2.1.0":
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/design-system-tokens/-/design-system-tokens-2.1.0.tgz#e72284f375631f624ff2f3198dc6d2ee03e0d422"
|
||||
integrity sha512-8SFUmRsX9v9pCc1Oq+zZGAmZGLxdZ6WnVEvwOzPAswlUTxBPa5zdoKdKEOPw8Xr3j142Mie6WVk2SMTV9EjQIQ==
|
||||
"@hashicorp/design-system-tokens@^2.2.1":
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/design-system-tokens/-/design-system-tokens-2.2.1.tgz#9112c4cf9099ef1706a6b4f83be400960b473e91"
|
||||
integrity sha512-Pnbnk5jbOXmW82W0wimP0PdOWYAi7dYsC3TE88JbR+jHzpwUdyVGsqcYF7ClOl/C/KDbK60N0FEJbFdaFj6ZXQ==
|
||||
|
||||
"@hashicorp/ember-asciinema-player@https://github.com/hashicorp/ember-asciinema-player.git#e047a096039cff70234c232efe75dcad74c6358a":
|
||||
version "0.0.0"
|
||||
@@ -4187,19 +4186,10 @@
|
||||
ember-cli-babel "^7.26.11"
|
||||
ember-cli-htmlbars "^6.1.1"
|
||||
|
||||
"@hashicorp/ember-flight-icons@^5.0.3":
|
||||
version "5.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/ember-flight-icons/-/ember-flight-icons-5.0.3.tgz#34b9ccd5edf8671729ac59452748f03cd71603ab"
|
||||
integrity sha512-tMBp+W+uyP8ElhOdWxAbQ+BF//wnOOwnQEXnMQlAlRlrW2oZQdS9VSatXoOv5rsbCyNCF8vjfEaCq5UDaZxg1w==
|
||||
dependencies:
|
||||
"@embroider/addon-shim" "^1.8.7"
|
||||
"@hashicorp/flight-icons" "^3.3.0"
|
||||
ember-get-config "^2.1.1"
|
||||
|
||||
"@hashicorp/flight-icons@^3.3.0":
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/flight-icons/-/flight-icons-3.3.0.tgz#9a804eec1a846e3bfec3f27904fa9c9594fe24c7"
|
||||
integrity sha512-pkBq6mpNVwf9664NT2tg7r6e0whQbpcAtpaU9etbSa4d+7uxRtdNM4v9rUtcHtI+2EL9VEY0VTUKCr4u1BgyAg==
|
||||
"@hashicorp/flight-icons@^3.7.0":
|
||||
version "3.7.0"
|
||||
resolved "https://registry.yarnpkg.com/@hashicorp/flight-icons/-/flight-icons-3.7.0.tgz#cc8e4fb7cc8ac585a4841f6d724217a054cfe959"
|
||||
integrity sha512-oSnIjGqzXciibyQjgc45u4GUHBrIgyFSBCjxP4t0WXbJ578J3/DB6eyvWoMJ4r4GSf0MxUgOg0A/fJV/V4yEdA==
|
||||
|
||||
"@humanwhocodes/config-array@^0.11.13":
|
||||
version "0.11.13"
|
||||
@@ -4664,11 +4654,6 @@
|
||||
mkdirp "^1.0.4"
|
||||
rimraf "^3.0.2"
|
||||
|
||||
"@oddbird/popover-polyfill@^0.4.3":
|
||||
version "0.4.3"
|
||||
resolved "https://registry.yarnpkg.com/@oddbird/popover-polyfill/-/popover-polyfill-0.4.3.tgz#310d61c8fc7ee12d8dba05cdfa8bd7e5d5a281a3"
|
||||
integrity sha512-kBS0ZAwH8kZqFl0mV89KPK4cLYl2ZoKSfYngK4dz1eLAhKzTK0yu4LrvLdMeM7JhjWK6GxBtiY+cl1s6vR2pUg==
|
||||
|
||||
"@playwright/test@^1.43.0":
|
||||
version "1.43.1"
|
||||
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.43.1.tgz#16728a59eb8ce0f60472f98d8886d6cab0fa3e42"
|
||||
@@ -5734,6 +5719,11 @@ babel-import-util@^2.0.1:
|
||||
resolved "https://registry.yarnpkg.com/babel-import-util/-/babel-import-util-2.1.1.tgz#0f4905fe899abfb8cd835dd52f3df1966d1ffbb0"
|
||||
integrity sha512-3qBQWRjzP9NreSH/YrOEU1Lj5F60+pWSLP0kIdCWxjFHH7pX2YPHIxQ67el4gnMNfYoDxSDGcT0zpVlZ+gVtQA==
|
||||
|
||||
babel-import-util@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-import-util/-/babel-import-util-3.0.0.tgz#5814c6a58e7b80e64156b48fdfd34d48e6e0b1df"
|
||||
integrity sha512-4YNPkuVsxAW5lnSTa6cn4Wk49RX6GAB6vX+M6LqEtN0YePqoFczv1/x0EyLK/o+4E1j9jEuYj5Su7IEPab5JHQ==
|
||||
|
||||
babel-jest@^29.7.0:
|
||||
version "29.7.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5"
|
||||
@@ -7736,6 +7726,11 @@ csstype@^3.1.0:
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b"
|
||||
integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==
|
||||
|
||||
csstype@^3.1.3:
|
||||
version "3.1.3"
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
|
||||
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==
|
||||
|
||||
cycle@1.0.x:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2"
|
||||
@@ -7855,6 +7850,14 @@ decorator-transforms@^1.1.0:
|
||||
"@babel/plugin-syntax-decorators" "^7.23.3"
|
||||
babel-import-util "^2.0.1"
|
||||
|
||||
decorator-transforms@^2.0.0:
|
||||
version "2.2.2"
|
||||
resolved "https://registry.yarnpkg.com/decorator-transforms/-/decorator-transforms-2.2.2.tgz#c163e86815c78152528a8c1549e95d8f3403e61b"
|
||||
integrity sha512-NHCSJXOUQ29YFli1QzstXWo72EyASpoVx+s0YdkMwswpovf/iAJP580nD1tB0Ph9exvtbfWdVrSAloXrWVo1Xg==
|
||||
dependencies:
|
||||
"@babel/plugin-syntax-decorators" "^7.23.3"
|
||||
babel-import-util "^3.0.0"
|
||||
|
||||
dedent@0.7.0:
|
||||
version "0.7.0"
|
||||
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
|
||||
@@ -8170,10 +8173,10 @@ electron-to-chromium@^1.5.28:
|
||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.30.tgz#5b264b489cfe0c3dd71097c164d795444834e7c7"
|
||||
integrity sha512-sXI35EBN4lYxzc/pIGorlymYNzDBOqkSlVRe6MkgBsW/hW1tpC/HDJ2fjG7XnjakzfLEuvdmux0Mjs6jHq4UOA==
|
||||
|
||||
ember-a11y-refocus@^3.0.2:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/ember-a11y-refocus/-/ember-a11y-refocus-3.0.2.tgz#e648c491d3a8d84cb594679bafc8430cd22b2ed4"
|
||||
integrity sha512-5T9kAvl0RUBF6SSeaaWpVS2WC8MTktgqiGdLAbxVjT2f2NGrDDPmv7riDVNMsuL5sHRwSKm0EHCIzZ4M3aFMow==
|
||||
ember-a11y-refocus@^4.1.3:
|
||||
version "4.1.4"
|
||||
resolved "https://registry.yarnpkg.com/ember-a11y-refocus/-/ember-a11y-refocus-4.1.4.tgz#ffcabbc91503379cd2c0124cb5f0bc93178098b5"
|
||||
integrity sha512-51tGk30bskObL1LsGZRxzqIxgZhIE8ZvvDYcT1OWphxZlq00+Arz57aMLS4Vz4qhSE40BfeN2qFYP/gXtp9qDA==
|
||||
dependencies:
|
||||
ember-cli-babel "^7.26.11"
|
||||
ember-cli-htmlbars "^6.0.1"
|
||||
@@ -8996,7 +8999,7 @@ ember-data@~4.12.0:
|
||||
ember-cli-babel "^7.26.11"
|
||||
ember-inflector "^4.0.2"
|
||||
|
||||
ember-destroyable-polyfill@^2.0.1, ember-destroyable-polyfill@^2.0.2, ember-destroyable-polyfill@^2.0.3:
|
||||
ember-destroyable-polyfill@^2.0.1, ember-destroyable-polyfill@^2.0.2:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/ember-destroyable-polyfill/-/ember-destroyable-polyfill-2.0.3.tgz#1673ed66609a82268ef270a7d917ebd3647f11e1"
|
||||
integrity sha512-TovtNqCumzyAiW0/OisSkkVK93xnVF4NRU6+FN0ubpfwEOpRrmM2RqDwXI6YAChCgSHON1cz0DfQStpA1Gjuuw==
|
||||
@@ -9162,16 +9165,6 @@ ember-intl@^7.0.5:
|
||||
js-yaml "^4.1.0"
|
||||
json-stable-stringify "^1.1.1"
|
||||
|
||||
ember-keyboard@^8.2.1:
|
||||
version "8.2.1"
|
||||
resolved "https://registry.yarnpkg.com/ember-keyboard/-/ember-keyboard-8.2.1.tgz#945a8a71068d81c06ad26851008ef81061db2a59"
|
||||
integrity sha512-wT9xpt3GKsiodGZoifKU4OyeRjXWlmKV9ZHHsp6wJBwMFpl4wWPjTNdINxivk2qg/WFNIh8nUiwuG4+soWXPdw==
|
||||
dependencies:
|
||||
"@embroider/addon-shim" "^1.8.4"
|
||||
ember-destroyable-polyfill "^2.0.3"
|
||||
ember-modifier "^2.1.2 || ^3.1.0 || ^4.0.0"
|
||||
ember-modifier-manager-polyfill "^1.2.0"
|
||||
|
||||
ember-lifeline@^7.0.0:
|
||||
version "7.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ember-lifeline/-/ember-lifeline-7.0.0.tgz#46780c8f832b6c784ee4681b938a1e1437bfa676"
|
||||
@@ -9218,7 +9211,7 @@ ember-modifier-manager-polyfill@^1.2.0:
|
||||
ember-cli-version-checker "^2.1.2"
|
||||
ember-compatibility-helpers "^1.2.0"
|
||||
|
||||
"ember-modifier@^2.1.2 || ^3.1.0 || ^4.0.0", ember-modifier@^3.2.7:
|
||||
ember-modifier@^3.2.7:
|
||||
version "3.2.7"
|
||||
resolved "https://registry.yarnpkg.com/ember-modifier/-/ember-modifier-3.2.7.tgz#f2d35b7c867cbfc549e1acd8d8903c5ecd02ea4b"
|
||||
integrity sha512-ezcPQhH8jUfcJQbbHji4/ZG/h0yyj1jRDknfYue/ypQS8fM8LrGcCMo0rjDZLzL1Vd11InjNs3BD7BdxFlzGoA==
|
||||
@@ -9384,13 +9377,14 @@ ember-stargate@^0.4.3, ember-stargate@^0.6.0:
|
||||
ember-resources "^7.0.1"
|
||||
tracked-maps-and-sets "^3.0.2"
|
||||
|
||||
ember-style-modifier@^3.0.1:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/ember-style-modifier/-/ember-style-modifier-3.0.1.tgz#96aaaa2b713108725b81d8b934ec445ece6b89c3"
|
||||
integrity sha512-WHRVIiqY/dpwDtVWlnHW0P4Z+Jha8QEwfaQdIF2ckJL77ZKdjbV2j1XZymS0Nzj61EGx5BM+YEsGL16r3hLv2A==
|
||||
ember-style-modifier@^4.4.0:
|
||||
version "4.4.0"
|
||||
resolved "https://registry.yarnpkg.com/ember-style-modifier/-/ember-style-modifier-4.4.0.tgz#2d1fa6a35d41d88612277d7d149f1e569acaf8d3"
|
||||
integrity sha512-gT1ckbhl1KSj5sWTo/8UChj98eZeE+mUmYoXw8VjwJgWP0wiTCibGZjVbC0WlIUd7umxuG61OQ/ivfF+sAiOEQ==
|
||||
dependencies:
|
||||
ember-auto-import "^2.5.0"
|
||||
ember-cli-babel "^7.26.11"
|
||||
"@embroider/addon-shim" "^1.8.7"
|
||||
csstype "^3.1.3"
|
||||
decorator-transforms "^2.0.0"
|
||||
ember-modifier "^3.2.7 || ^4.0.0"
|
||||
|
||||
ember-template-imports@^3.4.2:
|
||||
|
||||
Reference in new issue
Block a user