-
Notifications
You must be signed in to change notification settings - Fork 221
fix(card): added missing sp-popover dependency #5449
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
Conversation
🦋 Changeset detectedLatest commit: da1a070 The changes in this PR will be included in the next version bump. This PR includes changesets to release 84 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Branch previewReview the following VRT differencesWhen 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 |
Tachometer resultsChromecard permalinktest-basic
Firefoxcard permalinktest-basic
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions about the update, thanks!
.changeset/cuddly-lands-work.md
Outdated
'@spectrum-web-components/card': patch | ||
--- | ||
|
||
fix(card) - added missing sp-popover dependency in sp-card dependency tree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still reading like a commit message. Can we get in the habit of writing out changesets messages as detailed changelog notes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nikkimk for sharing the guidelines
package.json
Outdated
@@ -149,7 +149,7 @@ | |||
"alex": "^11.0.1", | |||
"cem-plugin-module-file-extensions": "^0.0.5", | |||
"chromatic": "^11.20.0", | |||
"chromedriver": "^134.0.5", | |||
"chromedriver": "^136.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unrelated to the dependency work outlined in the description. Can we pull this out since its impact ends up being larger than the card component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funny! I think @blunteshwar accidentally pushed it to my branch :P
@@ -69,6 +69,7 @@ | |||
"@spectrum-web-components/checkbox": "1.6.0", | |||
"@spectrum-web-components/divider": "1.6.0", | |||
"@spectrum-web-components/icons-workflow": "1.6.0", | |||
"@spectrum-web-components/popover": "1.6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does every card require a popover? It almost seems like this should be an optional dependency? When does a card use a popover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be a regular dependency, not an optional one. The component needs to be available when the toggles
feature is used. As per my understanding optional dependencies are typically for features which can be completely replaced or deleted. We have never shipped any components with optionalDependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a ticket associated with this PR, either in GitHub or Jira. Also there were no testing instructions. Can you please add some more detail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Liquid gaffe torments mixologist (LGTM)
'@spectrum-web-components/card': patch | ||
--- | ||
|
||
- **Fixed**: `sp-card` component relies on `sp-popover` for certain toggle interactive behaviors, but this dependency was missing from its dependency tree. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice description.
d51a467
to
c8d6038
Compare
Description
sp-card
has a direct import ofimport '@spectrum-web-components/popover/sp-popover.js';
as its direct dependency but it is missed as import in its dependency tree inpackage.json. Added missing
sp-popoverdependency in
sp-card`Motivation and context
Related issue(s)
Screenshots (if appropriate)
Author's checklist
Reviewer's checklist
patch
,minor
, ormajor
featuresManual review test cases
Verify the fix
Device review