Skip to content

Commit

Permalink
Merge branch 'develop' into dependabot/npm_and_yarn/nanoid-3.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
avzz-19 authored Dec 30, 2024
2 parents 717faa9 + cae4957 commit 8493e06
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 57 deletions.
1 change: 1 addition & 0 deletions app/components/ak-divider/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<Tag
data-test-ak-divider
...attributes
{{style width=this.width height=this.height}}
local-class='
ak-divider-root
ak-divider-variant-{{or @variant "fullWidth"}}
Expand Down
6 changes: 4 additions & 2 deletions app/components/ak-divider/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const VerticalTemplate = (args) => ({
template: hbs`
<AkTypography @color="textSecondary" @gutterBottom={{true}}>Experiment with me</AkTypography>
<div {{style height="200px"}} class="flex-row flex-align-center flex-justify-space-around p-3 w-full m-3">
<div class="flex-row flex-align-center flex-justify-space-around p-3 w-full m-3">
<AkTypography @color="textSecondary" @gutterBottom={{true}}>A</AkTypography>
<AkDivider @color={{this.color}} @direction={{this.direction}} @variant={{this.variant}} />
<AkDivider @height={{this.height}} @width={{this.width}} @color={{this.color}} @direction={{this.direction}} @variant={{this.variant}} />
<AkTypography @color="textSecondary" @gutterBottom={{true}}>B</AkTypography>
</div>
`,
Expand All @@ -72,4 +72,6 @@ Vertical.args = {
color: 'dark',
direction: 'vertical',
variant: 'fullWidth',
height: '200px',
width: '1px',
};
10 changes: 10 additions & 0 deletions app/components/ak-divider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export interface AkDividerSignature {
variant?: 'fullWidth' | 'middle';
color?: 'light' | 'dark';
direction?: 'horizontal' | 'vertical';
height?: string;
width?: string;
};
Blocks: { default: [] };
}
Expand All @@ -15,6 +17,14 @@ export default class AkDividerComponent extends Component<AkDividerSignature> {
get isVertical() {
return this.args.direction === 'vertical';
}

get height() {
return this.isVertical ? this.args.height || '100%' : '1px';
}

get width() {
return !this.isVertical ? this.args.width || '100%' : '1px';
}
}

declare module '@glint/environment-ember-loose/registry' {
Expand Down
7 changes: 6 additions & 1 deletion app/components/app-monitoring/settings/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@
</AkSelect>

{{#if this.showClearFilter}}
<AkDivider local-class='divider' />
<AkDivider
@direction='vertical'
@color='dark'
@height='32px'
local-class='divider'
/>

<AkButton
@color='textSecondary'
Expand Down
3 changes: 0 additions & 3 deletions app/components/app-monitoring/settings/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@
}

.divider {
width: 1px;
height: 32px;
background-color: var(--appmonitoring-settings-header-divider-background-color);
margin-left: 0.714em;
}

Expand Down
5 changes: 2 additions & 3 deletions app/components/appknox-wrapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ export default class AppknoxWrapperComponent extends Component<AppknoxWrapperSig
icon: 'receipt-long',
route: 'authenticated.dashboard.sbom.apps',
query: { app_offset: 0 },
currentWhen:
'authenticated.dashboard.sbom.apps authenticated.dashboard.sbom.app-scans authenticated.dashboard.sbom.scan-details',
currentWhen: 'authenticated.dashboard.sbom',
},
this.isShowAnalytics && {
label: this.intl.t('analytics'),
Expand All @@ -153,7 +152,7 @@ export default class AppknoxWrapperComponent extends Component<AppknoxWrapperSig
icon: 'people',
route: 'authenticated.dashboard.organization.namespaces',
currentWhen:
'authenticated.dashboard.organization.namespaces authenticated.dashboard.organization.users authenticated.dashboard.organization.teams authenticated.dashboard.organization-settings',
'authenticated.dashboard.organization.namespaces authenticated.dashboard.organization.users authenticated.dashboard.organization.teams authenticated.dashboard.organization-settings authenticated.dashboard.service-account-details authenticated.dashboard.service-account-create',
},
this.showPublicApiDocs && {
label: this.intl.t('apiDocumentation'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<AkSkeleton @width='80px' @height='19px' />
</AkStack>

<AkDivider local-class='divider' />
<AkDivider @direction='vertical' @height='26px' @color='dark' />

<AkStack @spacing='0.5' @alignItems='center'>
<AkSkeleton @width='20px' @height='20px' />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,3 @@
color: var(--file-compare-list-skeleton-loader-breadcrumbs-seperator-color);
}

.divider {
width: 1px;
height: 26px;
background-color: var(
--file-compare-list-skeleton-loader-divider-background-color
);
}
10 changes: 7 additions & 3 deletions app/components/file-compare/header/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</AkTypography>
</AkStack>

<AkDivider local-class='divider' />
<AkDivider @direction='vertical' @height='26px' local-class='divider' />

<AkStack @alignItems='center' @spacing='0.5'>
<AkIcon @variant='outlined' @iconName='text-snippet' />
Expand All @@ -52,7 +52,11 @@
</AkStack>

{{#if @project}}
<AkDivider local-class='divider' />
<AkDivider
@direction='vertical'
@height='26px'
local-class='divider'
/>

<AkStack @alignItems='center' @spacing='0.5'>
<AkIcon @variant='outlined' @iconName='folder' />
Expand All @@ -65,7 +69,7 @@
</AkStack>
{{/if}}

<AkDivider local-class='divider' />
<AkDivider @direction='vertical' @height='26px' local-class='divider' />

<AkStack @alignItems='center'>
<AkIcon
Expand Down
6 changes: 2 additions & 4 deletions app/components/file-compare/header/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
background-color: var(--file-compare-header-white-background-color);
border: 1px solid var(--file-compare-header-dark-border-color);
padding: 1em 1.5em;

.divider {
width: 1px;
height: 26px;
background-color: var(--file-compare-header-divider-background-color);
border-color: var(--file-compare-header-divider-background-color) !important;
}

.file-icon {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{#if this.me.org.is_admin}}
{{#if (or @analysis.isRisky @analysis.isOverriddenAsPassed)}}
<AkStack @spacing='1.5' {{style height='100%'}}>
<AkDivider @direction='vertical' @color='dark' />
<AkStack @spacing='1.5'>
<AkDivider @direction='vertical' @height='32px' @color='dark' />

<AkTooltip
@arrow={{true}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{{t 'vulnerableApis'}}
</AkTypography>

<AkStack @spacing='1.5' @alignItems='center' {{style height='30px'}}>
<AkStack @spacing='1.5' @alignItems='center'>
<AkStack
local-class='counter-container'
@spacing='3'
Expand Down Expand Up @@ -75,7 +75,7 @@
</AkIconButton>
</AkStack>

<AkDivider @direction='vertical' @color='dark' />
<AkDivider @direction='vertical' @height='30px' @color='dark' />

<AkTooltip
@arrow={{true}}
Expand Down
7 changes: 6 additions & 1 deletion app/components/project-list/header/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@
</AkSelect>

{{#if this.showClearFilter}}
<AkDivider local-class='divider' />
<AkDivider
local-class='divider'
@direction='vertical'
@color='dark'
@height='32px'
/>

<AkButton
@color='textSecondary'
Expand Down
3 changes: 0 additions & 3 deletions app/components/project-list/header/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
}

.divider {
width: 1px;
height: 32px;
background-color: var(--project-list-header-divider-background-color);
margin-left: 0.714em;
}

Expand Down
7 changes: 6 additions & 1 deletion app/components/sbom/app-list/header/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@
</AkSelect>

{{#if this.showClearFilter}}
<AkDivider local-class='divider' />
<AkDivider
@direction='vertical'
@color='dark'
@height='32px'
local-class='divider'
/>

<AkButton
@color='textSecondary'
Expand Down
3 changes: 0 additions & 3 deletions app/components/sbom/app-list/header/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
}

.divider {
width: 1px;
height: 32px;
background-color: var(--sbom-app-list-header-divider-background-color);
margin-left: 0.714em;
}

Expand Down
7 changes: 6 additions & 1 deletion app/components/security/analysis-list/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
</AkSelect>

{{#if this.showClearFilter}}
<AkDivider local-class='divider' />
<AkDivider
@direction='vertical'
@color='dark'
@height='32px'
local-class='divider'
/>

<AkButton
@color='textSecondary'
Expand Down
3 changes: 0 additions & 3 deletions app/components/security/analysis-list/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
}

.divider {
width: 1px;
height: 32px;
background-color: var(--security-analysis-list-divider-background-color);
margin-left: 0.714em;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</:default>
</AkButton>
<AkDivider local-class='divider' />
<AkDivider @direction='vertical' @height='40px' @color='dark' local-class='divider' />
{{/if}}
<AkLink @route='authenticated.storeknox.review-logs'>
Expand Down
5 changes: 0 additions & 5 deletions app/components/storeknox/inventory/pending-review/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,5 @@
}

.divider {
width: 1px;
height: 40px;
background-color: var(
--storeknox-inventory-pending-review-header-divider-background-color
);
margin: 0 0.35em;
}
11 changes: 0 additions & 11 deletions app/styles/_component-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,6 @@ body {
--appmonitoring-settings-header-filter-option-hover-background: var(
--hover-light-background
);
--appmonitoring-settings-header-divider-background-color: var(
--neutral-grey-200
);
--appmonitoring-settings-header-clear-filter-color: var(--neutral-grey-600);
--appmonitoring-settings-header-clear-filter-hover-color: var(--primary-main);

Expand Down Expand Up @@ -764,7 +761,6 @@ body {
--sbom-app-list-header-filter-option-hover-background: var(
--hover-light-background
);
--sbom-app-list-header-divider-background-color: var(--neutral-grey-200);
--sbom-app-list-header-clear-filter-color: var(--neutral-grey-600);
--sbom-app-list-header-clear-filter-hover-color: var(--primary-main);

Expand Down Expand Up @@ -1307,9 +1303,6 @@ body {
--file-compare-list-skeleton-loader-breadcrumbs-seperator-color: var(
--neutral-grey-500
);
--file-compare-list-skeleton-loader-divider-background-color: var(
--border-color-2
);

// variables for user-login
--user-login-footer-background-color: var(--neutral-grey-100);
Expand Down Expand Up @@ -1559,7 +1552,6 @@ body {
--project-list-header-filter-option-hover-background: var(
--hover-light-background
);
--project-list-header-divider-background-color: var(--neutral-grey-200);
--project-list-header-clear-filter-color: var(--neutral-grey-600);
--project-list-header-clear-filter-hover-color: var(--primary-main);

Expand Down Expand Up @@ -1695,9 +1687,6 @@ body {
--success-main
);
--storeknox-inventory-pending-review-reject-button-color: var(--error-main);
--storeknox-inventory-pending-review-header-divider-background-color: var(
--neutral-grey-200
);

// variables for storeknox/discover/requested-apps/table
--storeknox-discover-requested-apps-table-row-color: var(--common-white);
Expand Down

0 comments on commit 8493e06

Please sign in to comment.