Closed compojoom closed 1 month ago
β Deploy successful!
Storybook: https://feat_promo_widget_swaps--walletweb.review.5afe.dev/storybook/
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
This analysis was generated by the Next.js Bundle Analysis action. π€
Page | Size (compressed) |
---|---|
global |
950.52Β KB (π‘ +177Β B) |
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
The following page changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/home |
58.77Β KB (π‘ +95Β B) |
1009.29Β KB |
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π‘ | Statements | 79.49% (+0% πΌ) |
11510/14480 |
π΄ | Branches | 58.57% | 2767/4724 |
π‘ | Functions | 66.75% (-0.02% π») |
1851/2773 |
π’ | Lines | 80.84% (+0% πΌ) |
10382/12843 |
1443 tests passing in 199 suites.
Report generated by π§ͺjest coverage report action from 4dc4718c37639b7b6897b744fa464fec1658ee9a
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
Looks good!
just one small thing. It looks a bit odd next to the safe pass widget, since they are very similar but the buttons are way bigger for the safe pass one. Do we plan to show both of these together or is it one promotion at a time?
Noticed this too. AFAIK we will show both at the same time. @TanyaEfremova do you think we should adjust either one of them to make it look more consistent?
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
The widget should be network sensitive, so it should only show in ETH, GNO and Sepolia. Or if we want to show it everywhere for the sake of promotion, we should have "try it now" button grayed out with a tooltip saying that is only supported in those networks (But personally I'd prefer the widget to only show in the supported networks)
Good catch! Check again please!
The widget is now network sensitive, so that's fixed
Are we going to take in account James and Usames' comments regarding the buttons? I personally don't think is that big of a deal if this is widget is going to be there for some time and not forever.
In case you decide to change those buttons, change as well the margin on the left side to match the widget bellow
Left margin is indeed different, let's align with the Safe{Pass} widget:40px
on the left side.
Buttons should use style Large
in both widgets.
As a side note, we should avoid using margins/paddings that are not a multiple of 8 px.
@TanyaEfremova and I aggreed on 32px or also known as var(--space-4) :)
Swaps and Safepass should be aligned now.
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
LGTM
What it solves
Displays a swaps promo block(that can be hidden) on the dashboard. Right now we are loading a .png, but @TanyaEfremova would give us an svg.
Resolves #
How this PR fixes it
Chip
style to match Figma designOther changes:
How to test it
Screenshots
Checklist