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

fix(color-field): added missing dependencies #4141

Merged
merged 3 commits into from Mar 9, 2024

Conversation

Rajdeepc
Copy link
Contributor

@Rajdeepc Rajdeepc commented Mar 6, 2024

Description

Added missing dependencies in Color-Field

@ctrl/tinycolor
@spectrum-web-components/textfield

Also added @spectrum-web-components/color-field in @spectrum-web-components/bundle

Related issue(s)

Motivation and context

How has this been tested?

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

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.

@Rajdeepc Rajdeepc added the dependencies Pull requests that update a dependency file label Mar 6, 2024
@Rajdeepc Rajdeepc requested a review from Westbrook March 6, 2024 13:30
Copy link

github-actions bot commented Mar 6, 2024

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.97 0.97 0.97
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 241.405 kB 228.556 kB 228.441 kB 🏆
Scripts 60.366 kB 54.417 kB 54.329 kB 🏆
Stylesheet 48.507 kB 42.257 kB 🏆 42.258 kB
Document 5.82 kB 5.17 kB 5.142 kB 🏆
Third Party 126.712 kB 126.712 kB 126.712 kB

Request Count

Category Latest Main Branch
Total 43 43 43
Scripts 35 35 35
Stylesheet 5 5 5
Document 1 1 1
Third Party 2 2 2

"@spectrum-web-components/base": "^0.41.2"
"@ctrl/tinycolor": "^4.0.3",
"@spectrum-web-components/base": "^0.41.2",
"@spectrum-web-components/textfield": "^0.41.2"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we also need @spectrum-web-components/color-handle.

@Westbrook
Copy link
Collaborator

The tachometer tests in https://github.com/adobe/spectrum-web-components/actions/runs/8172911409?pr=4141 are failing here in a way that I don't expect. Can you look into that? If you run them locally, and they still fail, opening the test link while it's attempting to run will allow you to see the error it encounters in the browser.

@Rajdeepc
Copy link
Contributor Author

Rajdeepc commented Mar 7, 2024

The tachometer tests in https://github.com/adobe/spectrum-web-components/actions/runs/8172911409?pr=4141 are failing here in a way that I don't expect. Can you look into that? If you run them locally, and they still fail, opening the test link while it's attempting to run will allow you to see the error it encounters in the browser.

Checked this and it is failing in local also with the below error clicking the test link. This is referring that it is not able to find the correct reference of "@spectrum-web-components/color-field/sp-color-field.js".
Error:
bench-runner.html:1 Uncaught (in promise) TypeError: Failed to resolve module specifier "@spectrum-web-components/color-field/sp-color-field.js". Relative references must start with either "/", "./", or "../".

@Westbrook
Copy link
Collaborator

That likely means that we didn't get Color Field added to @spectrum-web-components/bundle appropriately. Can you check on including that in this PR?

@Rajdeepc
Copy link
Contributor Author

Rajdeepc commented Mar 7, 2024

That likely means that we didn't get Color Field added to @spectrum-web-components/bundle appropriately. Can you check on including that in this PR?

I could see '@spectrum-web-components/color-field' in bundle/index.ts and elements.ts but it was missing as a dependency in @spectrum-web-components/bundle/package.json on its dependency tree

@Rajdeepc Rajdeepc requested a review from Westbrook March 7, 2024 13:42
Copy link
Collaborator

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for cleaning this up. :shipit:

@Westbrook Westbrook merged commit b3bb23a into main Mar 9, 2024
7 of 48 checks passed
@Westbrook Westbrook deleted the bug/color-field-dependency branch March 9, 2024 00:59
@Rajdeepc Rajdeepc linked an issue Mar 13, 2024 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Missing dependencies in ColorField
2 participants