Skip to content
Snippets Groups Projects
Commit 763b438b authored by Sascha Eggenberger's avatar Sascha Eggenberger :speech_balloon:
Browse files

Group usage quotas: Update page hierarchy

Updates page hierarchy h1-h3 and migrates some Tailwind classes.

Changelog: changed
EE: true
parent 5e816fcc
No related branches found
No related tags found
3 merge requests!181325Fix ambiguous `created_at` in project.rb,!179611Draft: Rebase CR approach for zoekt assignments,!176265Group usage quotas: Update page hierarchy
This commit is part of merge request !176265. Comments created here will be created in the context of that merge request.
Showing
with 34 additions and 42 deletions
...@@ -167,9 +167,9 @@ export default { ...@@ -167,9 +167,9 @@ export default {
:used-storage="usedStorage" :used-storage="usedStorage"
:loading="$apollo.queries.namespace.loading" :loading="$apollo.queries.namespace.loading"
/> />
<h3 data-testid="breakdown-subtitle"> <h2 class="gl-heading-2 gl-mb-3 gl-mt-5" data-testid="breakdown-subtitle">
{{ s__('UsageQuota|Storage usage breakdown') }} {{ s__('UsageQuota|Storage usage breakdown') }}
</h3> </h2>
<dependency-proxy-usage <dependency-proxy-usage
v-if="!userNamespace" v-if="!userNamespace"
:dependency-proxy-total-size="dependencyProxyTotalSize" :dependency-proxy-total-size="dependencyProxyTotalSize"
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
/> />
<section class="gl-mt-5"> <section class="gl-mt-5">
<div class="gl-flex gl-bg-gray-10 gl-p-5"> <div class="gl-flex gl-bg-subtle gl-p-5">
<search-and-sort-bar <search-and-sort-bar
:namespace="namespaceId" :namespace="namespaceId"
:search-input-placeholder="__('Search')" :search-input-placeholder="__('Search')"
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
:project-avatar-url="project.avatarUrl" :project-avatar-url="project.avatarUrl"
:size="16" :size="16"
:alt="project.name" :alt="project.name"
class="gl-mr-2 gl-inline-block !gl-text-center" class="gl-mr-2"
/> />
<gl-link <gl-link
......
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
<template> <template>
<div <div
class="gl-rounded-base gl-border-1 gl-border-solid gl-border-default gl-bg-white gl-p-6" class="gl-border gl-rounded-base gl-border-section gl-bg-section gl-p-5"
data-testid="container" data-testid="container"
:class="cssClass" :class="cssClass"
> >
...@@ -105,9 +105,9 @@ export default { ...@@ -105,9 +105,9 @@ export default {
</div> </div>
<template v-else> <template v-else>
<div class="gl-flex gl-justify-between"> <div class="gl-flex gl-justify-between">
<p <h3
v-if="!isNil(usageValue) && usageValue !== ''" v-if="!isNil(usageValue) && usageValue !== ''"
class="gl-mb-3 gl-text-size-h-display gl-font-bold" class="gl-heading-2 gl-mb-3"
:data-testid="summaryDataTestid" :data-testid="summaryDataTestid"
> >
{{ formatValue(usageValue) }} {{ formatValue(usageValue) }}
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
totalUnit totalUnit
}}</span> }}</span>
</span> </span>
</p> </h3>
<div> <div>
<gl-button <gl-button
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
<section class="gl-flex gl-justify-between"> <section class="gl-flex gl-justify-between">
<section> <section>
<slot name="description"></slot> <slot name="description"></slot>
<p v-if="usageValue" class="gl-mb-3 gl-text-size-h-display gl-font-bold"> <h2 v-if="usageValue" class="gl-heading-2 gl-mb-3">
<span data-testid="usage-value">{{ usageValue }}</span> <span data-testid="usage-value">{{ usageValue }}</span>
<span v-if="usageUnit" data-testid="usage-unit" class="gl-text-lg">{{ usageUnit }}</span> <span v-if="usageUnit" data-testid="usage-unit" class="gl-text-lg">{{ usageUnit }}</span>
<span v-if="totalValue"> <span v-if="totalValue">
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
totalUnit totalUnit
}}</span> }}</span>
</span> </span>
</p> </h2>
</section> </section>
<div class="gl-align-self-top"> <div class="gl-align-self-top">
<slot name="actions"></slot> <slot name="actions"></slot>
......
...@@ -9,8 +9,8 @@ export default { ...@@ -9,8 +9,8 @@ export default {
</script> </script>
<template> <template>
<div class="gl-py-6"> <div class="gl-py-3">
<h2 class="gl-heading-2 gl-mb-6">{{ s__('Pages|Pages deployments') }}</h2> <h2 class="gl-heading-2">{{ s__('Pages|Pages deployments') }}</h2>
<div class="gl-mb-8"> <div class="gl-mb-8">
<pages-deployment-stats /> <pages-deployment-stats />
</div> </div>
......
...@@ -240,8 +240,8 @@ export default { ...@@ -240,8 +240,8 @@ export default {
<template> <template>
<div> <div>
<h3 data-testid="overview-subtitle">{{ __('Pipelines') }}</h3> <h2 class="gl-heading-2 gl-my-3" data-testid="overview-subtitle">{{ __('Pipelines') }}</h2>
<p class="gl-mb-0" data-testid="pipelines-description"> <p class="gl-mb-0 gl-text-subtle" data-testid="pipelines-description">
{{ {{
s__( s__(
'UsageQuota|Compute units usage is calculated based on shared runners duration with cost factors applied.', 'UsageQuota|Compute units usage is calculated based on shared runners duration with cost factors applied.',
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
</div> </div>
<section class="gl-my-5"> <section class="gl-my-5">
<h2 class="gl-text-lg">{{ $options.USAGE_BY_MONTH_HEADER }}</h2> <h3 class="gl-heading-3 gl-mb-3">{{ $options.USAGE_BY_MONTH_HEADER }}</h3>
<gl-loading-icon <gl-loading-icon
v-if="isLoadingYearUsageData" v-if="isLoadingYearUsageData"
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
</section> </section>
<section class="gl-my-5"> <section class="gl-my-5">
<h2 class="gl-text-lg">{{ $options.USAGE_BY_PROJECT_HEADER }}</h2> <h3 class="gl-heading-3">{{ $options.USAGE_BY_PROJECT_HEADER }}</h3>
<div class="gl-my-3 gl-flex"> <div class="gl-my-3 gl-flex">
<gl-form-group :label="s__('UsageQuota|Filter projects data by month')"> <gl-form-group :label="s__('UsageQuota|Filter projects data by month')">
......
...@@ -174,24 +174,18 @@ export default { ...@@ -174,24 +174,18 @@ export default {
</script> </script>
<template> <template>
<div <div class="gl-border gl-flex gl-rounded-base gl-border-section gl-bg-section gl-p-5">
class="gl-flex gl-rounded-base gl-border-1 gl-border-solid gl-border-default gl-bg-white gl-p-5"
>
<gl-skeleton-loader v-if="isLoading" :height="64"> <gl-skeleton-loader v-if="isLoading" :height="64">
<rect width="140" height="30" x="5" y="0" rx="4" /> <rect width="140" height="30" x="5" y="0" rx="4" />
<rect width="240" height="10" x="5" y="40" rx="4" /> <rect width="240" height="10" x="5" y="40" rx="4" />
<rect width="340" height="10" x="5" y="54" rx="4" /> <rect width="340" height="10" x="5" y="54" rx="4" />
</gl-skeleton-loader> </gl-skeleton-loader>
<div v-else class="gl-grow"> <div v-else class="gl-grow">
<p <h2 v-if="shouldRenderSeatsUsedBlock" class="gl-heading-2 gl-mb-3" data-testid="seats-used">
v-if="shouldRenderSeatsUsedBlock"
class="gl-mb-3 gl-text-size-h-display gl-font-bold"
data-testid="seats-used"
>
<span class="gl-relative gl-top-1"> <span class="gl-relative gl-top-1">
{{ seatsUsed }} {{ seatsUsed }}
</span> </span>
<span class="gl-text-lg"> <span class="gl-text-lg gl-font-normal">
{{ $options.i18n.seatsUsedText }} {{ $options.i18n.seatsUsedText }}
</span> </span>
<gl-link <gl-link
...@@ -201,16 +195,12 @@ export default { ...@@ -201,16 +195,12 @@ export default {
> >
<help-icon /> <help-icon />
</gl-link> </gl-link>
</p> </h2>
<p <h2 v-if="shouldRenderSeatsOwedBlock" class="gl-heading-2 gl-mb-0" data-testid="seats-owed">
v-if="shouldRenderSeatsOwedBlock"
class="gl-mb-0 gl-text-size-h-display gl-font-bold"
data-testid="seats-owed"
>
<span class="gl-relative gl-top-1"> <span class="gl-relative gl-top-1">
{{ seatsOwed }} {{ seatsOwed }}
</span> </span>
<span class="gl-text-lg"> <span class="gl-text-lg gl-font-normal">
{{ $options.i18n.seatsOwedText }} {{ $options.i18n.seatsOwedText }}
</span> </span>
<gl-link <gl-link
...@@ -220,7 +210,7 @@ export default { ...@@ -220,7 +210,7 @@ export default {
> >
<help-icon /> <help-icon />
</gl-link> </gl-link>
</p> </h2>
</div> </div>
<gl-button <gl-button
v-if="shouldShowAddSeatsButton" v-if="shouldShowAddSeatsButton"
......
...@@ -97,13 +97,13 @@ export default { ...@@ -97,13 +97,13 @@ export default {
<template> <template>
<section> <section>
<div class="gl-bg-gray-10 gl-p-5"> <div class="gl-bg-subtle gl-p-5">
<div <div
v-if="isLoaderShown" v-if="isLoaderShown"
class="gl-grid gl-gap-5 md:gl-grid-cols-2" class="gl-grid gl-gap-5 md:gl-grid-cols-2"
data-testid="skeleton-loader-cards" data-testid="skeleton-loader-cards"
> >
<div class="gl-border gl-rounded-base gl-bg-white gl-p-5"> <div class="gl-border gl-rounded-base gl-bg-default gl-p-5">
<gl-skeleton-loader :height="64"> <gl-skeleton-loader :height="64">
<rect width="140" height="30" x="5" y="0" rx="4" /> <rect width="140" height="30" x="5" y="0" rx="4" />
<rect width="240" height="10" x="5" y="40" rx="4" /> <rect width="240" height="10" x="5" y="40" rx="4" />
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
</gl-skeleton-loader> </gl-skeleton-loader>
</div> </div>
<div class="gl-border gl-rounded-base gl-bg-white gl-p-5"> <div class="gl-border gl-rounded-base gl-bg-default gl-p-5">
<gl-skeleton-loader :height="64"> <gl-skeleton-loader :height="64">
<rect width="140" height="30" x="5" y="0" rx="4" /> <rect width="140" height="30" x="5" y="0" rx="4" />
<rect width="240" height="10" x="5" y="40" rx="4" /> <rect width="240" height="10" x="5" y="40" rx="4" />
......
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
<template> <template>
<div <div
class="gl-rounded-base gl-border-1 gl-border-solid gl-border-gray-100 gl-bg-white gl-p-6" class="gl-border gl-rounded-base gl-border-section gl-bg-section gl-p-5"
data-testid="container" data-testid="container"
> >
<div v-if="isDataLoading"> <div v-if="isDataLoading">
......
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
<template> <template>
<section> <section>
<div class="gl-flex gl-bg-gray-10 gl-p-5"> <div class="gl-flex gl-bg-subtle gl-p-5">
<search-and-sort-bar <search-and-sort-bar
:namespace="String(namespaceId)" :namespace="String(namespaceId)"
:search-input-placeholder="$options.i18n.filterUsersPlaceholder" :search-input-placeholder="$options.i18n.filterUsersPlaceholder"
......
...@@ -110,7 +110,9 @@ export default { ...@@ -110,7 +110,9 @@ export default {
<template> <template>
<div> <div>
<div class="gl-flex gl-items-center gl-justify-between"> <div class="gl-flex gl-items-center gl-justify-between">
<h3 data-testid="overview-subtitle">{{ s__('UsageQuota|Namespace overview') }}</h3> <h2 class="gl-heading-2 gl-my-3" data-testid="overview-subtitle">
{{ s__('UsageQuota|Namespace overview') }}
</h2>
<template v-if="isPurchaseButtonShown"> <template v-if="isPurchaseButtonShown">
<gl-button <gl-button
v-if="!shouldShowLimitedAccessModal" v-if="!shouldShowLimitedAccessModal"
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`StatisticsCard denominator block renders denominator block with all elements when all props are passed 1`] = ` exports[`StatisticsCard denominator block renders denominator block with all elements when all props are passed 1`] = `
<p <h3
class="gl-font-bold gl-mb-3 gl-text-size-h-display" class="gl-heading-2 gl-mb-3"
data-testid="denominator" data-testid="denominator"
> >
1,000 1,000
...@@ -23,5 +23,5 @@ exports[`StatisticsCard denominator block renders denominator block with all ele ...@@ -23,5 +23,5 @@ exports[`StatisticsCard denominator block renders denominator block with all ele
MiB MiB
</span> </span>
</span> </span>
</p> </h3>
`; `;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment