[ENG-46314] feat(webkit): add Badge (content)#663
Merged
Conversation
Compact severity-coded count/short-value indicator (primary/secondary/success/ warning/danger/default; small/medium/large). Story under stories/components, direct `@aziontech/webkit/badge` export. The 'Show code' SFC detector regex is case-insensitive (/i) so CodeQL's bad-tag-filter alert is resolved.
robsongajunior
requested changes
Jun 25, 2026
robsongajunior
requested changes
Jun 25, 2026
… includes addresses review feedback — replaces the explicit severity if-chain with a validSeverities array + includes guard.
robsongajunior
approved these changes
Jun 25, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the Badge content indicator, rebuilt on top of
devin the current repo format. Supersedes #660.primary/secondary/success/warning/danger/default; sizessmall/medium/large; non-interactive.apps/storybook/src/stories/components/content/badge/, titleComponents/Content/Badge.@aziontech/webkit/badge(no category prefix).Review feedback applied
js/bad-tag-filter): thesource.transformSFC-detector regex now uses the/iflag (/<script[\s>]/i), clearing the 'does not match upper case<SCRIPT>' alert. (This regex is a dev-time docs helper, not an HTML sanitizer — no security surface — but the/iflag makes the check green at zero cost.)Notes
Replaces #660, which was branched from
main(pre-dev-reorg). Diff is only the component's own files; merges cleanly intodev.