-
Notifications
You must be signed in to change notification settings - Fork 256
feat(dev-validation): apply shared validation helpers across all Gen2 components #6510
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
Merged
miwha-adobe
merged 49 commits into
main
from
ruben/feat-dev-warning-validation-components
Aug 11, 2026
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
67fe2d4
feat(dev-validation): add reusable dev-mode validation helpers and docs
rubencarvalho bf43016
docs(dev-validation): say Gen2 instead of 2nd-gen in the consumer guide
rubencarvalho 7e1a810
docs(dev-validation): add per-bundler production-stripping recipes
rubencarvalho 4f2a314
feat(dev-validation): retrofit Badge, Tabs, IllustratedMessage onto h…
rubencarvalho 2dc721c
refactor(badge): drop constructor lookup for the non-abstract static
rubencarvalho dc7b09e
Revert "refactor(badge): drop constructor lookup for the non-abstract…
rubencarvalho 85b6e8f
feat(dev-validation): retrofit ProgressCircle, LinearProgressMixin, M…
rubencarvalho 51af7cf
feat(dev-validation): retrofit Button, Card, Tooltip, ActionButton
rubencarvalho eaebb05
feat(dev-validation): retrofit Asset, AlertBanner, StatusLight, Popover
rubencarvalho a0fa407
feat(dev-validation): retrofit Divider, Avatar, ButtonGroup
rubencarvalho 96b4d20
feat(dev-validation): add missing density enum check to Accordion
rubencarvalho e7f6de9
feat(dev-validation): gate helpers on the literal NODE_ENV, not just …
rubencarvalho 653c133
Merge branch 'ruben/feat-dev-warning-validation-foundation' into rube…
rubencarvalho 2b02150
docs(dev-validation): trim over-justification of the residual call-si…
rubencarvalho 017ab27
Merge branch 'ruben/feat-dev-warning-validation-foundation' into rube…
rubencarvalho 94904f4
fix(dev-warning): remove em-dash
miwha-adobe ba43186
refactor(dev-validation): centralize the dev warn gate in emitWarning
miwha-adobe 402a757
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe ab817c4
test(dev-validation): cover DEBUG gate, dedup key, and helper edge cases
miwha-adobe 0939a81
test(dev-validation): cover DEBUG gate, dedup key, and helper edge ca…
miwha-adobe 75bd986
fix(debug-validation): prettier format char width limit
miwha-adobe 0ab5a9f
fix(dev-warning): additional text wrapping
miwha-adobe ce10af4
fix(docs): update the known limitations to be less verbose
miwha-adobe b45b7b3
Merge branch 'main' into ruben/feat-dev-warning-validation-foundation
miwha-adobe 0532ec5
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe ca3d45a
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe f4f6ad4
Merge branch 'ruben/feat-dev-warning-validation-foundation' of https:…
miwha-adobe 45b1e85
Merge branch 'ruben/feat-dev-warning-validation-foundation' into rube…
miwha-adobe 83af7fe
fix(dev-warning): fix the import path for helpers
miwha-adobe e37cd37
feat(dev-validation): add isDebug() gate for expensive call-site checks
miwha-adobe f4bef58
Merge branch 'ruben/feat-dev-warning-validation-foundation' into rube…
miwha-adobe cf4efb8
test(dev-warning): add isDebug test
miwha-adobe 9931fe1
Merge branch 'ruben/feat-dev-warning-validation-foundation' into rube…
miwha-adobe 814d725
chore(dev-warning): add instances of isDebug
miwha-adobe 5c1c5ce
chore(dev-warning): add group warnings and a count
miwha-adobe ae96d85
fix(dev-warning): refine conditional to be exclusive
miwha-adobe 9944fee
test(status-light): name the warning message in the variant assertion
miwha-adobe 397d9ec
Merge branch 'main' into ruben/feat-dev-warning-validation-foundation
miwha-adobe 93b36cc
Merge branch 'ruben/feat-dev-warning-validation-foundation' of https:…
miwha-adobe b04ddb6
fix(dev-warning): restore dropped level
miwha-adobe 121b9e0
test(illustrated-message): add slot warnings
miwha-adobe 5c8b610
refactor(dev-validation): retrofit Dropzone and modernize style-guide…
miwha-adobe 453e87c
fix(dev-warning): return warnMissingAccessible name, and add debug check
miwha-adobe 4efeab9
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe 48b8604
Merge branch 'ruben/feat-dev-warning-validation-foundation' of https:…
miwha-adobe 3c07ec7
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe ca302e2
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe c97829f
Merge branch 'ruben/feat-dev-warning-validation-foundation' of https:…
miwha-adobe 473a20c
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
miwha-adobe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm still trying to make sure I follow the docs correctly, but
super.update(changedProperties)is called first, then the check. Per the docs the check should run beforesuper.update()?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.
My understanding is that it depends on when we want to call the warning. This one is on hasIcon, which are slot derived and so they aren't reliable until the slot is rendered, which is why it is after super.update()