feat: summary component - #14
Open
marissahuysentruyt wants to merge 3 commits into
Open
Conversation
|
📦 Extension packages built successfully! |
marissahuysentruyt
force-pushed
the
marissa/feat-summary-component
branch
from
January 27, 2026 18:48
ab7f88a to
8aabda7
Compare
marissahuysentruyt
marked this pull request as ready for review
January 27, 2026 19:04
| width: 100%; | ||
| } | ||
|
|
||
| .cv-summary__grid { |
Contributor
Author
There was a problem hiding this comment.
I'd love some feedback on the styles. There's some open for discussion for sure:
- gap between the columns: should that be smaller? 🤔
- "0g CO2": should we use
.heading-lginstead of xl? 🤔 - "No data yet": should we use
.heading-sminstead of md? 🤔 - grid rows: think I should add explicit grid rows to more or less line up the top bits of info, and then also line up the bottom bits? 🤔
This screenshot is a smaller gap and the heading-lg and heading-sm classes, just to give an idea.
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.
Description
Adds a Summary component to display CO2 emissions data in the Results panel. The component shows the CO2 per page visit metric with a comparison to the global average, styled using the existing design system tokens.
Changes
New Component: Created
Summary.jscomponent``Validation Instructions
Analyze this pageVerify the card shows:
CO2 value (e.g., "2.4g CO₂") in large text on the left
"per page visit" label below the CO2 value
Comparison text (e.g., "Better than average") on the right
Global average text below the comparison
Verify font sizes and colors match the design decently (dark green text on light green background)
Verify the card has rounded corners (0.5rem border radius)
Check that the component renders with default values if no data is provided
Visual Checklist
[ ] Summary card appears in Results panel
[ ] Light green background with rounded corners
[ ] CO2 value is prominently displayed in large text
[ ] Typography hierarchy is clear (large value, smaller labels)
[ ] Colors use the green token system (dark green text on light green bg)
[ ] Layout uses two-column grid with proper spacing