Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: Make process-spectrum more robust #4999

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

graynorton
Copy link

Description

Make tasks/process-spectrum more robust to changes in CSS theme overrides.

Making this a draft for now, as it may need discussion.

Related issue(s)

Motivation and context

When I first got the SWC CSS files in my combined monorepo proof-of-concept building directly from the CSS workspaces, I found that a bunch of the styling was visibly broken in Storybook. After poking around a bit, I determined that this was because bunch of the components were referencing --system-foo-bar-baz custom properties that weren't actually defined. Looking further, it seemed like:

  • The CSS at the tip of s2-foundations-redux (which was where I'd pulled from) no longer defined a bunch of theme-specific variables that previously been present in the released versions of the CSS components that SWC had been referencing (presumably because they were no longer necessary—yay!)

  • The logic in SWC's tasks/process-spectrum script wasn't well equipped to deal with the case where previously existing CSS theme files were removed. Specifically, process-spectrum avoided writing *-overrides.css files for non-existent or empty theme files. This seems logical enough, but causes problems because it means that "stale" *-overrides.css files are left behind when the corresponding theme files go away.

I tweaked the logic in process-spectrum to unconditionally write *-overrides.css files, and that seemed to take care of the problem.

How has this been tested?

  • Test case 1

    1. Go here
    2. Do this
  • Test case 2

    1. Go here
    2. Do this
  • Did it pass in Desktop?

  • Did it pass in Mobile?

  • Did it pass in iPad?

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

Copy link

changeset-bot bot commented Dec 19, 2024

⚠️ No Changeset found

Latest commit: 73e45b4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

Branch preview

Review the following VRT differences

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

If the changes are expected, update the current_golden_images_cache hash in the circleci config to accept the new images. Instructions are included in that file.
If the changes are unexpected, you can investigate the cause of the differences and update the code accordingly.

@graynorton graynorton changed the title DRAFT: Make process spectrum more robust DRAFT: Make process-spectrum more robust Dec 19, 2024
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 12419886032

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 98.209%

Totals Coverage Status
Change from base Build 12278981558: 0.003%
Covered Lines: 33006
Relevant Lines: 33430

💛 - Coveralls

Copy link

Tachometer results

Chrome

accordion permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 678 kB 97.62ms - 99.56ms - faster ✔
6% - 9%
6.39ms - 9.98ms
branch 656 kB 105.27ms - 108.28ms slower ❌
6% - 10%
6.39ms - 9.98ms
-

action-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 58.71ms - 60.56ms - faster ✔
2% - 7%
1.26ms - 4.28ms
branch 716 kB 61.21ms - 63.60ms slower ❌
2% - 7%
1.26ms - 4.28ms
-

action-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 814 kB 85.75ms - 87.68ms - faster ✔
1% - 5%
0.83ms - 4.60ms
branch 772 kB 87.81ms - 91.05ms slower ❌
1% - 5%
0.83ms - 4.60ms
-

action-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 836 kB 52.54ms - 53.69ms - faster ✔
5% - 8%
2.73ms - 4.49ms
branch 794 kB 56.06ms - 57.40ms slower ❌
5% - 9%
2.73ms - 4.49ms
-

action-menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 959 kB 152.25ms - 155.47ms - faster ✔
4% - 6%
5.98ms - 10.56ms
branch 918 kB 160.50ms - 163.76ms slower ❌
4% - 7%
5.98ms - 10.56ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 917 kB 76.33ms - 77.48ms - faster ✔
5% - 8%
4.47ms - 6.54ms
branch 875 kB 81.55ms - 83.27ms slower ❌
6% - 9%
4.47ms - 6.54ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 916 kB 75.58ms - 77.77ms - faster ✔
6% - 10%
5.27ms - 8.10ms
branch 874 kB 82.46ms - 84.26ms slower ❌
7% - 11%
5.27ms - 8.10ms
-

test-open-close-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1878.83ms - 1881.64ms - unsure 🔍
-0% - +0%
-1.21ms - +2.75ms
branch 1.05 MB 1878.07ms - 1880.87ms unsure 🔍
-0% - +0%
-2.75ms - +1.21ms
-

test-open-close permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1883.15ms - 1886.68ms - unsure 🔍
-0% - +0%
-3.49ms - +0.87ms
branch 1.05 MB 1884.94ms - 1887.51ms unsure 🔍
-0% - +0%
-0.87ms - +3.49ms
-

alert-banner permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 688 kB 14.38ms - 14.69ms - faster ✔
2% - 5%
0.33ms - 0.76ms
branch 665 kB 14.92ms - 15.23ms slower ❌
2% - 5%
0.33ms - 0.76ms
-

alert-dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 114.72ms - 115.80ms - faster ✔
2% - 4%
1.87ms - 4.34ms
branch 697 kB 117.25ms - 119.47ms slower ❌
2% - 4%
1.87ms - 4.34ms
-

asset permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 615 kB 11.14ms - 11.29ms - faster ✔
1% - 3%
0.11ms - 0.31ms
branch 594 kB 11.36ms - 11.49ms slower ❌
1% - 3%
0.11ms - 0.31ms
-

avatar permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 654 kB 20.83ms - 21.32ms - faster ✔
1% - 6%
0.25ms - 1.35ms
branch 631 kB 21.38ms - 22.37ms slower ❌
1% - 6%
0.25ms - 1.35ms
-

badge permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 657 kB 27.73ms - 28.30ms - faster ✔
2% - 6%
0.62ms - 1.81ms
branch 634 kB 28.70ms - 29.75ms slower ❌
2% - 6%
0.62ms - 1.81ms
-

breadcrumbs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 978 kB 551.37ms - 557.89ms - faster ✔
2% - 3%
10.84ms - 18.67ms
branch 937 kB 567.23ms - 571.54ms slower ❌
2% - 3%
10.84ms - 18.67ms
-

button-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 731 kB 48.07ms - 49.11ms - faster ✔
6% - 9%
3.15ms - 4.77ms
branch 689 kB 51.93ms - 53.17ms slower ❌
6% - 10%
3.15ms - 4.77ms
-

button permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 55.16ms - 56.32ms - faster ✔
6% - 8%
3.43ms - 5.00ms
branch 697 kB 59.42ms - 60.49ms slower ❌
6% - 9%
3.43ms - 5.00ms
-

card permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 781 kB 40.99ms - 41.87ms - faster ✔
1% - 4%
0.53ms - 1.62ms
branch 758 kB 42.18ms - 42.82ms slower ❌
1% - 4%
0.53ms - 1.62ms
-

checkbox permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 680 kB 49.14ms - 49.78ms - faster ✔
0% - 2%
0.00ms - 1.12ms
branch 657 kB 49.56ms - 50.48ms slower ❌
0% - 2%
0.00ms - 1.12ms
-

coachmark permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 910 kB 99.98ms - 101.85ms - faster ✔
4% - 7%
4.77ms - 7.47ms
branch 865 kB 106.06ms - 108.01ms slower ❌
5% - 7%
4.77ms - 7.47ms
-

color-area permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 711 kB 132.30ms - 135.50ms - faster ✔
0% - 3%
0.01ms - 3.50ms
branch 689 kB 134.97ms - 136.34ms unsure 🔍
-0% - +3%
+0.01ms - +3.50ms
-

color-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 748 kB 47.50ms - 48.69ms - faster ✔
2% - 5%
1.23ms - 2.59ms
branch 725 kB 49.67ms - 50.33ms slower ❌
3% - 5%
1.23ms - 2.59ms
-

color-handle permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 628 kB 23.22ms - 23.66ms - faster ✔
1% - 4%
0.35ms - 0.96ms
branch 606 kB 23.89ms - 24.30ms slower ❌
1% - 4%
0.35ms - 0.96ms
-

color-loupe permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 620 kB 17.45ms - 17.77ms - unsure 🔍
-2% - +1%
-0.32ms - +0.12ms
branch 598 kB 17.56ms - 17.86ms unsure 🔍
-1% - +2%
-0.12ms - +0.32ms
-

color-slider permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 713 kB 113.73ms - 114.69ms - faster ✔
0% - 3%
0.53ms - 3.43ms
branch 691 kB 114.83ms - 117.55ms slower ❌
0% - 3%
0.53ms - 3.43ms
-

color-wheel permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 714 kB 110.11ms - 111.78ms - faster ✔
1% - 3%
1.52ms - 3.44ms
branch 692 kB 112.95ms - 113.89ms slower ❌
1% - 3%
1.52ms - 3.44ms
-

combobox permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 44.54ms - 45.12ms - faster ✔
1% - 4%
0.67ms - 1.75ms
branch 959 kB 45.59ms - 46.49ms slower ❌
1% - 4%
0.67ms - 1.75ms
-

light-dom-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 422.99ms - 428.98ms - faster ✔
1% - 3%
5.10ms - 14.63ms
branch 959 kB 432.15ms - 439.55ms slower ❌
1% - 3%
5.10ms - 14.63ms
-

contextual-help permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 944 kB 56.48ms - 58.58ms - faster ✔
4% - 8%
2.46ms - 5.12ms
branch 899 kB 60.50ms - 62.14ms slower ❌
4% - 9%
2.46ms - 5.12ms
-

dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 84.99ms - 85.77ms - faster ✔
1% - 2%
0.47ms - 2.17ms
branch 760 kB 85.94ms - 87.46ms slower ❌
1% - 3%
0.47ms - 2.17ms
-

divider permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 616 kB 11.41ms - 11.59ms - unsure 🔍
-2% - +0%
-0.21ms - +0.01ms
branch 595 kB 11.54ms - 11.66ms unsure 🔍
-0% - +2%
-0.01ms - +0.21ms
-

dropzone permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 624 kB 17.57ms - 17.87ms - faster ✔
1% - 3%
0.10ms - 0.46ms
branch 603 kB 17.89ms - 18.11ms slower ❌
1% - 3%
0.10ms - 0.46ms
-

field-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 686 kB 48.20ms - 49.33ms - faster ✔
4% - 7%
1.97ms - 3.78ms
branch 663 kB 50.94ms - 52.35ms slower ❌
4% - 8%
1.97ms - 3.78ms
-

field-label permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 651 kB 23.38ms - 23.84ms - faster ✔
0% - 3%
0.06ms - 0.65ms
branch 628 kB 23.77ms - 24.15ms slower ❌
0% - 3%
0.06ms - 0.65ms
-

grid permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 716 kB 44.31ms - 45.35ms - slower ❌
1% - 3%
0.26ms - 1.50ms
branch 674 kB 43.61ms - 44.28ms faster ✔
1% - 3%
0.26ms - 1.50ms
-

help-text permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 646 kB 12.44ms - 12.63ms - faster ✔
4% - 7%
0.46ms - 0.97ms
branch 623 kB 13.01ms - 13.49ms slower ❌
4% - 8%
0.46ms - 0.97ms
-

icon permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 651 kB 17.03ms - 17.36ms - faster ✔
1% - 5%
0.14ms - 0.88ms
branch 629 kB 17.37ms - 18.03ms slower ❌
1% - 5%
0.14ms - 0.88ms
-

illustrated-message permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 16.77ms - 17.16ms - faster ✔
0% - 3%
0.01ms - 0.55ms
branch 640 kB 17.06ms - 17.43ms slower ❌
0% - 3%
0.01ms - 0.55ms
-

infield-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 17.43ms - 18.01ms - faster ✔
5% - 10%
0.99ms - 2.02ms
branch 638 kB 18.80ms - 19.65ms slower ❌
5% - 11%
0.99ms - 2.02ms
-

link permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 641 kB 16.08ms - 16.53ms - faster ✔
2% - 5%
0.38ms - 0.92ms
branch 618 kB 16.81ms - 17.10ms slower ❌
2% - 6%
0.38ms - 0.92ms
-

menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 225.02ms - 228.58ms - faster ✔
2% - 5%
4.33ms - 10.95ms
branch 718 kB 231.65ms - 237.23ms slower ❌
2% - 5%
4.33ms - 10.95ms
-

meter permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 668 kB 52.31ms - 53.48ms - faster ✔
4% - 6%
2.28ms - 3.63ms
branch 645 kB 55.52ms - 56.19ms slower ❌
4% - 7%
2.28ms - 3.63ms
-

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 794 kB 74.51ms - 75.88ms - faster ✔
10% - 13%
8.43ms - 11.02ms
branch 772 kB 83.83ms - 86.02ms slower ❌
11% - 15%
8.43ms - 11.02ms
-

overlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 982 kB 438.38ms - 442.06ms - faster ✔
0% - 2%
1.74ms - 9.06ms
branch 940 kB 442.46ms - 448.78ms slower ❌
0% - 2%
1.74ms - 9.06ms
-

directive-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 26.29ms - 26.94ms - faster ✔
4% - 7%
1.22ms - 2.09ms
branch 1.02 MB 27.99ms - 28.55ms slower ❌
5% - 8%
1.22ms - 2.09ms
-

element-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.05 MB 358.87ms - 364.15ms - faster ✔
2% - 4%
7.26ms - 13.84ms
branch 1.01 MB 370.09ms - 374.02ms slower ❌
2% - 4%
7.26ms - 13.84ms
-

lazy-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 851 kB 44.79ms - 45.57ms - faster ✔
7% - 9%
3.27ms - 4.68ms
branch 806 kB 48.57ms - 49.75ms slower ❌
7% - 10%
3.27ms - 4.68ms
-

picker-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 674 kB 30.72ms - 31.45ms - faster ✔
4% - 8%
1.43ms - 2.50ms
branch 651 kB 32.66ms - 33.44ms slower ❌
5% - 8%
1.43ms - 2.50ms
-

picker permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 507.52ms - 513.82ms - faster ✔
3% - 5%
16.09ms - 26.16ms
branch 776 kB 527.86ms - 535.72ms slower ❌
3% - 5%
16.09ms - 26.16ms
-

popover permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 111.77ms - 112.53ms - faster ✔
2% - 3%
1.88ms - 3.62ms
branch 775 kB 114.12ms - 115.68ms slower ❌
2% - 3%
1.88ms - 3.62ms
-

progress-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 666 kB 32.20ms - 32.74ms - faster ✔
2% - 4%
0.66ms - 1.50ms
branch 643 kB 33.23ms - 33.87ms slower ❌
2% - 5%
0.66ms - 1.50ms
-

progress-circle permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 640 kB 17.79ms - 18.68ms - faster ✔
1% - 6%
0.16ms - 1.17ms
branch 617 kB 18.66ms - 19.14ms slower ❌
1% - 6%
0.16ms - 1.17ms
-

radio permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 663 kB 40.32ms - 41.18ms - faster ✔
1% - 4%
0.53ms - 1.66ms
branch 641 kB 41.48ms - 42.21ms slower ❌
1% - 4%
0.53ms - 1.66ms
-

search permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 737 kB 43.79ms - 44.48ms - faster ✔
4% - 7%
1.89ms - 3.15ms
branch 714 kB 46.13ms - 47.18ms slower ❌
4% - 7%
1.89ms - 3.15ms
-

sidenav permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 688 kB 155.73ms - 158.47ms - faster ✔
7% - 9%
12.37ms - 16.00ms
branch 665 kB 170.09ms - 172.48ms slower ❌
8% - 10%
12.37ms - 16.00ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 79.32ms - 80.68ms - faster ✔
4% - 6%
3.68ms - 5.48ms
branch 718 kB 84.00ms - 85.18ms slower ❌
5% - 7%
3.68ms - 5.48ms
-

split-view permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 651 kB 36.93ms - 37.61ms - faster ✔
1% - 3%
0.42ms - 1.33ms
branch 629 kB 37.85ms - 38.45ms slower ❌
1% - 4%
0.42ms - 1.33ms
-

swatch permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 669 kB 15.35ms - 15.68ms - faster ✔
7% - 9%
1.10ms - 1.60ms
branch 646 kB 16.67ms - 17.05ms slower ❌
7% - 10%
1.10ms - 1.60ms
-

switch permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 657 kB 16.91ms - 17.28ms - faster ✔
4% - 6%
0.63ms - 1.16ms
branch 634 kB 17.81ms - 18.18ms slower ❌
4% - 7%
0.63ms - 1.16ms
-

table permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 125.05ms - 127.87ms - faster ✔
3% - 6%
3.83ms - 7.51ms
branch 754 kB 130.95ms - 133.32ms slower ❌
3% - 6%
3.83ms - 7.51ms
-

tabs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 683 kB 116.40ms - 118.13ms - faster ✔
0% - 2%
0.44ms - 2.57ms
branch 660 kB 118.14ms - 119.38ms slower ❌
0% - 2%
0.44ms - 2.57ms
-

tags permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 712 kB 14.68ms - 14.88ms - faster ✔
0% - 2%
0.01ms - 0.34ms
branch 689 kB 14.83ms - 15.09ms slower ❌
0% - 2%
0.01ms - 0.34ms
-

textfield permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 693 kB 26.24ms - 26.84ms - faster ✔
9% - 12%
2.52ms - 3.43ms
branch 670 kB 29.18ms - 29.86ms slower ❌
9% - 13%
2.52ms - 3.43ms
-

thumbnail permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1.02 MB 25.26ms - 26.42ms - faster ✔
0% - 7%
0.05ms - 1.81ms
branch 994 kB 26.10ms - 27.43ms slower ❌
0% - 7%
0.05ms - 1.81ms
-

toast permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 697 kB 31.38ms - 32.45ms - faster ✔
6% - 10%
1.96ms - 3.37ms
branch 674 kB 34.12ms - 35.04ms slower ❌
6% - 11%
1.96ms - 3.37ms
-

tooltip permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 873 kB 35.75ms - 36.31ms - faster ✔
4% - 6%
1.46ms - 2.31ms
branch 829 kB 37.60ms - 38.23ms slower ❌
4% - 6%
1.46ms - 2.31ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 831 kB 25.54ms - 26.07ms - faster ✔
8% - 10%
2.13ms - 2.98ms
branch 789 kB 28.03ms - 28.69ms slower ❌
8% - 12%
2.13ms - 2.98ms
-

test-element permalink

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 53.82ms - 54.81ms - faster ✔
5% - 7%
2.95ms - 4.36ms
branch 912 kB 57.47ms - 58.47ms slower ❌
5% - 8%
2.95ms - 4.36ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 932 kB 44.60ms - 46.19ms - faster ✔
4% - 8%
2.01ms - 3.96ms
branch 887 kB 47.82ms - 48.95ms slower ❌
4% - 9%
2.01ms - 3.96ms
-

top-nav permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 689 kB 39.52ms - 40.57ms - faster ✔
3% - 7%
1.46ms - 2.90ms
branch 666 kB 41.73ms - 42.72ms slower ❌
4% - 7%
1.46ms - 2.90ms
-

tray permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 104.78ms - 106.46ms - unsure 🔍
-2% - +0%
-1.64ms - +0.18ms
branch 775 kB 106.01ms - 106.69ms unsure 🔍
-0% - +2%
-0.18ms - +1.64ms
-

truncated permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 789 kB 63.69ms - 65.33ms - faster ✔
2% - 6%
1.65ms - 3.94ms
branch 763 kB 66.50ms - 68.10ms slower ❌
3% - 6%
1.65ms - 3.94ms
-

underlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 615 kB 11.32ms - 11.79ms - unsure 🔍
-2% - +2%
-0.25ms - +0.24ms
branch 594 kB 11.49ms - 11.62ms unsure 🔍
-2% - +2%
-0.24ms - +0.25ms
-
Firefox

accordion permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 678 kB 192.40ms - 198.96ms - faster ✔
4% - 9%
9.07ms - 18.93ms
branch 656 kB 206.00ms - 213.36ms slower ❌
5% - 10%
9.07ms - 18.93ms
-

action-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 119.71ms - 126.77ms - unsure 🔍
-7% - +1%
-8.74ms - +0.94ms
branch 716 kB 123.83ms - 130.45ms unsure 🔍
-1% - +7%
-0.94ms - +8.74ms
-

action-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 814 kB 164.33ms - 174.83ms - unsure 🔍
-7% - +0%
-11.71ms - +0.91ms
branch 772 kB 171.48ms - 178.48ms unsure 🔍
-1% - +7%
-0.91ms - +11.71ms
-

action-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 836 kB 115.87ms - 123.29ms - unsure 🔍
-8% - +0%
-10.38ms - +0.42ms
branch 794 kB 120.63ms - 128.49ms unsure 🔍
-0% - +9%
-0.42ms - +10.38ms
-

action-menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 959 kB 280.11ms - 282.85ms - faster ✔
16% - 17%
52.26ms - 57.66ms
branch 918 kB 334.11ms - 338.77ms slower ❌
19% - 21%
52.26ms - 57.66ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 917 kB 153.84ms - 157.12ms - slower ❌
6% - 10%
9.10ms - 13.78ms
branch 875 kB 142.37ms - 145.71ms faster ✔
6% - 9%
9.10ms - 13.78ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 916 kB 133.68ms - 137.32ms - faster ✔
8% - 13%
12.07ms - 20.41ms
branch 874 kB 147.98ms - 155.50ms slower ❌
9% - 15%
12.07ms - 20.41ms
-

test-open-close-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1889.59ms - 1896.85ms - faster ✔
0% - 1%
3.17ms - 12.23ms
branch 1.05 MB 1898.20ms - 1903.64ms slower ❌
0% - 1%
3.17ms - 12.23ms
-

test-open-close permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1895.12ms - 1898.48ms - unsure 🔍
-0% - -0%
-6.91ms - -1.25ms
branch 1.05 MB 1898.60ms - 1903.16ms unsure 🔍
+0% - +0%
+1.25ms - +6.91ms
-

alert-banner permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 688 kB 30.42ms - 34.30ms - unsure 🔍
-14% - +2%
-4.75ms - +0.83ms
branch 665 kB 32.31ms - 36.33ms unsure 🔍
-3% - +15%
-0.83ms - +4.75ms
-

alert-dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 204.21ms - 212.79ms - unsure 🔍
-3% - +3%
-5.88ms - +6.92ms
branch 697 kB 203.23ms - 212.73ms unsure 🔍
-3% - +3%
-6.92ms - +5.88ms
-

asset permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 615 kB 25.81ms - 28.35ms - unsure 🔍
-4% - +9%
-0.97ms - +2.41ms
branch 594 kB 25.25ms - 27.47ms unsure 🔍
-9% - +3%
-2.41ms - +0.97ms
-

avatar permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 654 kB 47.87ms - 52.29ms - unsure 🔍
-6% - +7%
-2.86ms - +3.34ms
branch 631 kB 47.67ms - 52.01ms unsure 🔍
-7% - +6%
-3.34ms - +2.86ms
-

badge permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 657 kB 56.39ms - 62.01ms - unsure 🔍
-4% - +8%
-2.23ms - +4.83ms
branch 634 kB 55.76ms - 60.04ms unsure 🔍
-8% - +4%
-4.83ms - +2.23ms
-

breadcrumbs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 978 kB 819.01ms - 850.39ms - faster ✔
0% - 4%
3.75ms - 36.05ms
branch 937 kB 850.80ms - 858.40ms slower ❌
0% - 4%
3.75ms - 36.05ms
-

button-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 731 kB 103.96ms - 111.00ms - faster ✔
2% - 11%
1.63ms - 12.65ms
branch 689 kB 110.38ms - 118.86ms slower ❌
1% - 12%
1.63ms - 12.65ms
-

button permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 125.03ms - 132.33ms - faster ✔
1% - 8%
0.73ms - 10.99ms
branch 697 kB 130.93ms - 138.15ms slower ❌
0% - 9%
0.73ms - 10.99ms
-

card permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 781 kB 75.76ms - 81.64ms - unsure 🔍
-10% - +0%
-8.30ms - +0.42ms
branch 758 kB 79.43ms - 85.85ms unsure 🔍
-1% - +11%
-0.42ms - +8.30ms
-

checkbox permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 680 kB 109.13ms - 115.71ms - unsure 🔍
-4% - +4%
-4.41ms - +4.37ms
branch 657 kB 109.54ms - 115.34ms unsure 🔍
-4% - +4%
-4.37ms - +4.41ms
-

coachmark permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 910 kB 184.94ms - 192.74ms - faster ✔
2% - 6%
3.59ms - 12.41ms
branch 865 kB 194.79ms - 198.89ms slower ❌
2% - 7%
3.59ms - 12.41ms
-

color-area permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 711 kB 189.70ms - 199.62ms - unsure 🔍
-6% - +1%
-11.09ms - +2.89ms
branch 689 kB 193.85ms - 203.67ms unsure 🔍
-2% - +6%
-2.89ms - +11.09ms
-

color-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 756 kB 84.55ms - 88.21ms - unsure 🔍
-5% - +1%
-4.53ms - +1.17ms
branch 733 kB 85.87ms - 90.25ms unsure 🔍
-1% - +5%
-1.17ms - +4.53ms
-

color-handle permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 628 kB 46.17ms - 49.19ms - unsure 🔍
-8% - +2%
-3.81ms - +0.89ms
branch 606 kB 47.34ms - 50.94ms unsure 🔍
-2% - +8%
-0.89ms - +3.81ms
-

color-loupe permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 620 kB 32.31ms - 34.13ms - unsure 🔍
-2% - +5%
-0.78ms - +1.70ms
branch 598 kB 31.91ms - 33.61ms unsure 🔍
-5% - +2%
-1.70ms - +0.78ms
-

color-slider permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 713 kB 166.47ms - 174.73ms - unsure 🔍
-4% - +3%
-6.33ms - +4.85ms
branch 691 kB 167.57ms - 175.11ms unsure 🔍
-3% - +4%
-4.85ms - +6.33ms
-

color-wheel permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 714 kB 162.06ms - 169.26ms - unsure 🔍
-4% - +2%
-5.94ms - +4.18ms
branch 692 kB 162.99ms - 170.09ms unsure 🔍
-3% - +4%
-4.18ms - +5.94ms
-

combobox permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 75.65ms - 83.31ms - slower ❌
10% - 21%
6.77ms - 14.71ms
branch 959 kB 67.68ms - 69.80ms faster ✔
9% - 18%
6.77ms - 14.71ms
-

light-dom-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 715.28ms - 727.24ms - slower ❌
1% - 6%
9.92ms - 38.16ms
branch 959 kB 684.43ms - 710.01ms faster ✔
1% - 5%
9.92ms - 38.16ms
-

contextual-help permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 944 kB 111.00ms - 117.24ms - faster ✔
0% - 8%
0.49ms - 9.63ms
branch 899 kB 115.84ms - 122.52ms slower ❌
0% - 9%
0.49ms - 9.63ms
-

dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 127.52ms - 135.08ms - unsure 🔍
-5% - +4%
-6.48ms - +4.68ms
branch 760 kB 128.10ms - 136.30ms unsure 🔍
-4% - +5%
-4.68ms - +6.48ms
-

divider permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 616 kB 25.32ms - 28.16ms - unsure 🔍
-12% - +3%
-3.42ms - +0.82ms
branch 595 kB 26.46ms - 29.62ms unsure 🔍
-3% - +13%
-0.82ms - +3.42ms
-

dropzone permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 624 kB 28.36ms - 28.84ms - unsure 🔍
-4% - +0%
-1.10ms - +0.02ms
branch 603 kB 28.64ms - 29.64ms unsure 🔍
-0% - +4%
-0.02ms - +1.10ms
-

field-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 686 kB 100.87ms - 107.37ms - faster ✔
1% - 10%
0.86ms - 11.54ms
branch 663 kB 106.09ms - 114.55ms slower ❌
1% - 11%
0.86ms - 11.54ms
-

field-label permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 651 kB 56.25ms - 62.35ms - unsure 🔍
-3% - +10%
-1.90ms - +5.86ms
branch 628 kB 54.92ms - 59.72ms unsure 🔍
-10% - +3%
-5.86ms - +1.90ms
-

grid permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 716 kB 90.23ms - 96.57ms - unsure 🔍
-4% - +5%
-3.85ms - +5.01ms
branch 674 kB 89.72ms - 95.92ms unsure 🔍
-5% - +4%
-5.01ms - +3.85ms
-

help-text permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 646 kB 25.56ms - 28.36ms - unsure 🔍
-8% - +5%
-2.34ms - +1.30ms
branch 623 kB 26.31ms - 28.65ms unsure 🔍
-5% - +9%
-1.30ms - +2.34ms
-

icon permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 651 kB 40.79ms - 44.77ms - unsure 🔍
-4% - +7%
-1.74ms - +2.94ms
branch 629 kB 40.94ms - 43.42ms unsure 🔍
-7% - +4%
-2.94ms - +1.74ms
-

illustrated-message permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 30.64ms - 32.16ms - unsure 🔍
-4% - +4%
-1.13ms - +1.25ms
branch 640 kB 30.43ms - 32.25ms unsure 🔍
-4% - +4%
-1.25ms - +1.13ms
-

infield-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 39.71ms - 43.13ms - unsure 🔍
-8% - +2%
-3.56ms - +1.04ms
branch 638 kB 41.14ms - 44.22ms unsure 🔍
-3% - +9%
-1.04ms - +3.56ms
-

link permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 641 kB 31.01ms - 33.27ms - unsure 🔍
-6% - +2%
-2.06ms - +0.70ms
branch 618 kB 32.02ms - 33.62ms unsure 🔍
-2% - +6%
-0.70ms - +2.06ms
-

menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 392.54ms - 408.26ms - faster ✔
1% - 5%
2.76ms - 22.28ms
branch 718 kB 407.13ms - 418.71ms slower ❌
1% - 6%
2.76ms - 22.28ms
-

meter permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 668 kB 86.89ms - 90.87ms - unsure 🔍
-8% - +0%
-8.00ms - +0.32ms
branch 645 kB 89.07ms - 96.37ms unsure 🔍
-0% - +9%
-0.32ms - +8.00ms
-

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 794 kB 155.74ms - 164.94ms - faster ✔
5% - 12%
8.28ms - 20.88ms
branch 772 kB 170.62ms - 179.22ms slower ❌
5% - 13%
8.28ms - 20.88ms
-

overlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 657.85ms - 678.87ms - slower ❌
7% - 10%
40.50ms - 62.14ms
branch 1.02 MB 614.45ms - 619.63ms faster ✔
6% - 9%
40.50ms - 62.14ms
-

directive-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 51.26ms - 51.74ms - faster ✔
4% - 6%
2.40ms - 3.52ms
branch 1.02 MB 53.95ms - 54.97ms slower ❌
5% - 7%
2.40ms - 3.52ms
-

element-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.05 MB 680.27ms - 689.89ms - slower ❌
9% - 10%
54.58ms - 65.22ms
branch 1.01 MB 622.91ms - 627.45ms faster ✔
8% - 9%
54.58ms - 65.22ms
-

lazy-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 851 kB 98.42ms - 107.98ms - unsure 🔍
-0% - +10%
-0.06ms - +9.94ms
branch 806 kB 96.79ms - 99.73ms unsure 🔍
-9% - -0%
-9.94ms - +0.06ms
-

picker-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 674 kB 63.86ms - 68.78ms - unsure 🔍
-8% - +2%
-5.42ms - +1.46ms
branch 651 kB 65.89ms - 70.71ms unsure 🔍
-2% - +8%
-1.46ms - +5.42ms
-

picker permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 978.26ms - 1003.82ms - faster ✔
3% - 6%
32.68ms - 60.40ms
branch 776 kB 1032.22ms - 1042.94ms slower ❌
3% - 6%
32.68ms - 60.40ms
-

popover permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 146.63ms - 157.21ms - unsure 🔍
-9% - +0%
-14.07ms - +0.71ms
branch 775 kB 153.43ms - 163.77ms unsure 🔍
-1% - +9%
-0.71ms - +14.07ms
-

progress-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 666 kB 60.98ms - 63.74ms - faster ✔
0% - 8%
0.01ms - 5.59ms
branch 643 kB 62.74ms - 67.58ms unsure 🔍
-0% - +9%
+0.01ms - +5.59ms
-

progress-circle permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 640 kB 40.39ms - 43.61ms - unsure 🔍
-6% - +5%
-2.65ms - +2.05ms
branch 617 kB 40.58ms - 44.02ms unsure 🔍
-5% - +6%
-2.05ms - +2.65ms
-

radio permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 663 kB 75.57ms - 81.27ms - unsure 🔍
-9% - +1%
-7.80ms - +1.04ms
branch 641 kB 78.42ms - 85.18ms unsure 🔍
-1% - +10%
-1.04ms - +7.80ms
-

search permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 737 kB 86.16ms - 91.20ms - faster ✔
5% - 12%
4.55ms - 12.13ms
branch 714 kB 94.20ms - 99.84ms slower ❌
5% - 14%
4.55ms - 12.13ms
-

sidenav permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 688 kB 334.83ms - 350.73ms - faster ✔
5% - 10%
17.00ms - 35.64ms
branch 665 kB 364.24ms - 373.96ms slower ❌
5% - 11%
17.00ms - 35.64ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 161.58ms - 172.50ms - unsure 🔍
-7% - +1%
-12.74ms - +1.70ms
branch 718 kB 167.83ms - 177.29ms unsure 🔍
-1% - +8%
-1.70ms - +12.74ms
-

split-view permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 651 kB 74.98ms - 81.58ms - unsure 🔍
-5% - +7%
-3.57ms - +5.73ms
branch 629 kB 73.92ms - 80.48ms unsure 🔍
-7% - +5%
-5.73ms - +3.57ms
-

swatch permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 669 kB 37.66ms - 41.46ms - unsure 🔍
-9% - +3%
-3.91ms - +1.43ms
branch 646 kB 38.93ms - 42.67ms unsure 🔍
-4% - +10%
-1.43ms - +3.91ms
-

switch permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 657 kB 42.06ms - 45.94ms - unsure 🔍
-8% - +3%
-3.80ms - +1.32ms
branch 634 kB 43.56ms - 46.92ms unsure 🔍
-3% - +9%
-1.32ms - +3.80ms
-

table permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 282.42ms - 295.02ms - unsure 🔍
-3% - +2%
-10.15ms - +5.19ms
branch 754 kB 286.81ms - 295.59ms unsure 🔍
-2% - +4%
-5.19ms - +10.15ms
-

tabs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 683 kB 202.99ms - 210.61ms - unsure 🔍
-5% - +1%
-10.17ms - +1.33ms
branch 660 kB 206.91ms - 215.53ms unsure 🔍
-1% - +5%
-1.33ms - +10.17ms
-

tags permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 712 kB 33.00ms - 36.68ms - unsure 🔍
-1% - +13%
-0.28ms - +4.28ms
branch 689 kB 31.50ms - 34.18ms unsure 🔍
-12% - +1%
-4.28ms - +0.28ms
-

textfield permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 693 kB 50.49ms - 54.55ms - faster ✔
1% - 11%
0.63ms - 6.45ms
branch 670 kB 53.98ms - 58.14ms slower ❌
1% - 12%
0.63ms - 6.45ms
-

thumbnail permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1.02 MB 59.41ms - 62.27ms - unsure 🔍
-3% - +3%
-1.63ms - +1.67ms
branch 994 kB 60.00ms - 61.64ms unsure 🔍
-3% - +3%
-1.67ms - +1.63ms
-

toast permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 697 kB 74.19ms - 79.57ms - faster ✔
0% - 10%
0.03ms - 8.45ms
branch 674 kB 77.88ms - 84.36ms unsure 🔍
-0% - +11%
+0.03ms - +8.45ms
-

tooltip permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 87.45ms - 94.23ms - slower ❌
14% - 25%
10.62ms - 18.54ms
branch 912 kB 74.22ms - 78.30ms faster ✔
12% - 20%
10.62ms - 18.54ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 831 kB 50.41ms - 51.83ms - faster ✔
1% - 4%
0.34ms - 2.30ms
branch 789 kB 51.76ms - 53.12ms slower ❌
1% - 5%
0.34ms - 2.30ms
-

test-element permalink

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 149.27ms - 155.17ms - slower ❌
14% - 20%
18.17ms - 25.43ms
branch 912 kB 128.30ms - 132.54ms faster ✔
12% - 16%
18.17ms - 25.43ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 932 kB 91.66ms - 96.26ms - faster ✔
18% - 27%
21.08ms - 34.04ms
branch 887 kB 115.46ms - 127.58ms slower ❌
22% - 37%
21.08ms - 34.04ms
-

top-nav permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 689 kB 94.50ms - 100.98ms - faster ✔
1% - 12%
0.83ms - 12.73ms
branch 666 kB 99.53ms - 109.51ms slower ❌
1% - 13%
0.83ms - 12.73ms
-

tray permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 167.87ms - 175.93ms - unsure 🔍
-7% - +1%
-11.99ms - +1.11ms
branch 775 kB 172.18ms - 182.50ms unsure 🔍
-1% - +7%
-1.11ms - +11.99ms
-

truncated permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 789 kB 110.08ms - 116.92ms - unsure 🔍
-8% - +0%
-9.71ms - +0.31ms
branch 763 kB 114.54ms - 121.86ms unsure 🔍
-0% - +9%
-0.31ms - +9.71ms
-

underlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 615 kB 26.80ms - 29.72ms - unsure 🔍
-12% - +3%
-3.51ms - +1.07ms
branch 594 kB 27.71ms - 31.25ms unsure 🔍
-4% - +13%
-1.07ms - +3.51ms
-

} else {
// For the same reason, we write an empty file if the bridge file
// doesn't exist (in case it previously did).
writeMachineGeneratedSourceFile(overridesPath, '');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we delete the file entirely if it’s empty instead of writing an empty file? 💭

Copy link
Author

@graynorton graynorton Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question! That was my first instinct as well, but then I recalled that these generated foo-overrides.css files are imported by manually maintained foo.css files.

If we allow the override files to be routinely created / deleted, we would either need to start having the script modify the otherwise-manually-maintained files to update the imports, OR depend on ourselves to notice the deletions and make the corresponding edits.

Neither of those solutions seemed great, and since most of the components do in fact have overrides files, it seemed like unconditionally creating the overrides was the least-bad option, since it allows the manually maintained files to remain stable. I'm open to being convinced otherwise, though!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, I'm hoping that all of this stuff can be made to go away in our post-1.x setup!

function writeMachineGeneratedSourceFile(outputPath, code) {
fs.writeFileSync(
outputPath,
`/*
Copyright 2023 Adobe. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We can bump this to 2025 😄 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants