Repository navigation
Improve PR comment with emoji indicators, real interactions, video support - #103
Closed
thedjpetersen wants to merge 6 commits into
Closed
thedjpetersen wants to merge 6 commits into
thedjpetersen wants to merge 6 commits into
Conversation
…and video support Add threshold-based emoji indicators (⬇️/➡️/⬆️) to component metrics and component health badges (🟢/🟡/🔴). Replace hover-only screenshot interactions with detection-based real interactions (typing, toggling, clicking tabs/buttons, opening dialogs). Use <video> tags for MP4 previews with GIF fallback. Add clickable Storybook links to component previews.
…r directly Remove duplicated inline generation logic from test script — now writes mock JSON files (including screenshots + screenshot URLs) and shells out to generate-pr-comment.js. Exercises both <video> tag (MP4) and GIF fallback paths.
Contributor
PR Analysis Report📚 Storybook PreviewNew ComponentsChip 🟢
Modified ComponentsBadge 🟢
Bundle Size Summary
Accessibility AuditStatus: 2 accessibility violation(s) found. XDSBadge - 1 issue(s)
XDSChip - 1 issue(s)
Component PreviewsIncludes interactive previews. XDSBadgeXDSChipGenerated by PR Enrichment workflow | Storybook | View full report |
New component: XDSChip - a dismissible tag/filter chip with neutral, info,
success, and error variants. Includes tests, stories, and documentation.
Modified component: XDSBadge - add size prop ('sm' | 'md') for controlling
badge dimensions.
GitHub strips <video> tags from PR comments. Switch to GIF image embeds (which render natively) with an optional MP4 download link. Also preserve trailing slash in Storybook URLs for correct routing.
… embeds Remove the CML dependency (asset.cml.dev) for uploading screenshots and videos. Screenshots are now deployed to GitHub Pages alongside Storybook, making URLs deterministic from the storybook URL. Interaction previews use inline <video> MP4 embeds (supported on github.io domains) with GIF as a fallback link.
Contributor
|
Nice! Seems like the deploy went through but screenshots are broken. One thing about component previews is that they take up a lot of vertical space if we have a lot of variants. I wonder if we should use tables to make more of a grid layout instead. |
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
<video>tags for MP4 interaction previews (with GIF fallback) and add clickable Storybook links to component previewsTest plan
node .github/scripts/test-pr-enrichment.js— produces correct markdown with emojisnode .github/scripts/generate-pr-comment.jswith mock data — output matches expected format