Skip to content

Commit

Permalink
Merge pull request #4690 from relative-ci/fix-ui
Browse files Browse the repository at this point in the history
fix(utils): Webpack metrics - update description
  • Loading branch information
vio authored Sep 9, 2024
2 parents 2860285 + 3b66fdb commit a68e8d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
--radius-medium: 7px;
--radius-large: 9px;

--outline-hover: 0 0 0 3px var(--color-highlight);
--outline-hover: 0 0 0 var(--space-xxxsmall) var(--color-highlight);

/** Layout */
--max-width: 88rem;
Expand Down
14 changes: 7 additions & 7 deletions packages/utils/src/webpack/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ type WebpackMetrics = Partial<Record<Metric, MetricConfig>> & {
export const metrics: WebpackMetrics = {
[Metric.BUNDLE_SIZE]: {
label: 'Bundle Size',
description: 'The total file size of the assets generated or processed by the bundler',
description: 'Total file size of the assets generated or processed by the bundler',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.FileSize,
},
[Metric.INITIAL_SIZE_JS]: {
label: 'Initial JS',
description: 'The total file size of the JavaScript initial chunks',
description: 'Total file size of the JavaScript initial chunks',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.FileSize,
},
[Metric.INITIAL_SIZE_CSS]: {
label: 'Initial CSS',
description: 'The total file size of the CSS initial chunks',
description: 'Total file size of the CSS initial chunks',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.FileSize,
},
[Metric.CACHE_INVALIDATION]: {
label: 'Cache Invalidation',
description:
'The ratio between the total of the changed assets and the total file size(Bundle Size)',
'Ratio between the total file size of the changed assets and the total file size(Bundle Size)',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.Percentage,
biggerIsBetter: null,
skipDelta: true,
},
[Metric.CHUNK_COUNT]: {
label: 'Chunks',
description: 'The total number of chunks generated by the bundler',
description: 'Total number of chunks generated by the bundler',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.Numeric,
biggerIsBetter: null,
Expand All @@ -50,14 +50,14 @@ export const metrics: WebpackMetrics = {
},
[Metric.MODULE_COUNT]: {
label: 'Modules',
description: 'The total number of bundled modules',
description: 'Total number of bundled modules',
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
type: MetricTypes.Numeric,
biggerIsBetter: null,
},
[Metric.DUPLICATE_MODULES_COUNT]: {
label: 'Duplicate Modules',
description: 'The total number of modules that belong to more than one chunk',
description: 'Total number of modules included into more than one chunk',
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
type: MetricTypes.Numeric,
biggerIsBetter: false,
Expand Down

0 comments on commit a68e8d2

Please sign in to comment.