-
Notifications
You must be signed in to change notification settings - Fork 60
feat: add USDT0 launch banner and promo sheet to Home #2990
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
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6eea2d3
feat: add USDT0 launch banner and promo sheet to Home
CassioMG 44bfe23
fix: use lg size for the Transfer USDT0 CTA
CassioMG efba48e
fix: match USDT0 sheet and banner typography to Figma
CassioMG ae98599
fix: add 20px side padding to the USDT0 sheet description
CassioMG 57c97c7
chore: drop Figma reference comments from USDT0 styles
CassioMG 7f72348
fix: win the cascade against SDS Text resets in USDT0 styles
CassioMG 7622609
fix: keep SDS Text metrics, force only the description padding
CassioMG 910927e
fix: flow USDT0 sheet content below the hero in tall viewports
CassioMG 852975f
Merge branch 'master' into usdt0-launch-banner
CassioMG 15e3dc7
fix: address Copilot a11y review on the USDT0 banner
CassioMG b06c12d
Merge remote-tracking branch 'origin/usdt0-launch-banner' into usdt0-…
CassioMG 9547256
fix: localize USDT0 alt text and restore full-card click target
CassioMG 3ce8068
fix: make the banner logo decorative for assistive tech
CassioMG ecc4862
feat: split the USDT0 sheet CTA into Receive and Bridge actions
CassioMG bda0c84
fix: restore 32px clearance above the USDT0 sheet footer
CassioMG 61b4e50
fix: reuse the QR screen's BackButton for the USDT0 sheet close
CassioMG 03fcd70
fix: match the USDT0 banner card metrics to Figma
CassioMG 3912389
fix: restore the 32px clearance above Receive USDT0
CassioMG f87d8e2
fix: wrap "supported networks." together in the USDT0 feature copy
CassioMG 0251c6a
fix: halve the vertical spacing around the Home USDT0 banner
CassioMG d41e076
fix: give the USDT0 sheet a vertical scroll path
CassioMG 5e98bb8
Merge branch 'master' into usdt0-launch-banner
CassioMG 5dd3913
feat: add the Swap to USDT0 action to the launch sheet
CassioMG a26d1d9
fix: fit all three USDT0 sheet actions in the 600px popup
CassioMG 08f040f
fix: size the Transfer to Stellar action like the lg buttons above it
CassioMG a773c74
Merge branch 'master' into usdt0-launch-banner
CassioMG 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
12 changes: 12 additions & 0 deletions
12
extension/src/background/messageListener/handlers/dismissUsdt0LaunchBanner.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import { DataStorageAccess } from "background/helpers/dataStorageAccess"; | ||
| import { USDT0_LAUNCH_BANNER_DISMISSED } from "constants/localStorageTypes"; | ||
|
|
||
| export const dismissUsdt0LaunchBanner = async ({ | ||
| localStore, | ||
| }: { | ||
| localStore: DataStorageAccess; | ||
| }): Promise<{ isDismissed: boolean }> => { | ||
| await localStore.setItem(USDT0_LAUNCH_BANNER_DISMISSED, true); | ||
| const isDismissed = await localStore.getItem(USDT0_LAUNCH_BANNER_DISMISSED); | ||
| return { isDismissed: !!isDismissed }; | ||
| }; | ||
11 changes: 11 additions & 0 deletions
11
extension/src/background/messageListener/handlers/getUsdt0LaunchBannerDismissed.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import { DataStorageAccess } from "background/helpers/dataStorageAccess"; | ||
| import { USDT0_LAUNCH_BANNER_DISMISSED } from "constants/localStorageTypes"; | ||
|
|
||
| export const getUsdt0LaunchBannerDismissed = async ({ | ||
| localStore, | ||
| }: { | ||
| localStore: DataStorageAccess; | ||
| }): Promise<{ isDismissed: boolean }> => { | ||
| const dismissed = await localStore.getItem(USDT0_LAUNCH_BANNER_DISMISSED); | ||
| return { isDismissed: !!dismissed }; | ||
| }; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Fixed in #2999 (a30b52c) — the handler now returns
{ isDismissed: true }straight aftersetItem, matchingdismissDiscoverWelcome. #2990 had already merged, hence the separate PR; also backported to #2997 for v5.48.0.