Skip to content

feat: ledger live usde banner#385

Merged
petar-omni merged 1 commit intomainfrom
feat/usde-ll-banner
Jun 6, 2025
Merged

feat: ledger live usde banner#385
petar-omni merged 1 commit intomainfrom
feat/usde-ll-banner

Conversation

@petar-omni
Copy link
Copy Markdown
Contributor

Added

  • USDe banner for LL

Changed

Description of the modifications made to existing functionality, feature, or content in this pull request. This could include changes to code, CI, documentation, etc.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staging-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 0:06am
stakekit-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 0:06am

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 3, 2025

🦋 Changeset detected

Latest commit: 92e6bf1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stakekit/widget Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a promotional banner prompting Ledger Live users with zero USDe balance to swap and earn.

  • Introduces a new translation key for the USDe banner.
  • Implements new styles and conditional rendering logic in the SelectTokenSection component.
  • Adds an isUSDeToken helper and a Balance icon component.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
translations.json Adds usde_banner translation under select_token
styles.css.ts Defines styles for the bottom banner (bottomBanner, bottomBannerText, bottomBannerBottomRadius)
index.tsx Implements showBottomUSDeBanner logic and renders the banner in SelectTokenSection
tokens.ts Adds isUSDeToken utility to detect the USDe token
balance.tsx Creates a new Balance SVG icon component
package.json Bumps pnpm to 10.11.1
.changeset/orange-snakes-stay.md Records a patch release for the new feature
Comments suppressed due to low confidence (2)

packages/widget/src/pages/details/earn-page/components/select-token-section/index.tsx:65

  • This new conditional (showBottomUSDeBanner) drives UI behavior; consider adding unit or component tests to verify the banner appears only for zero USDe balances on Ledger Live.
const showBottomUSDeBanner = Maybe.fromRecord({

packages/widget/src/pages/details/earn-page/components/select-token-section/styles.css.ts:8

  • [nitpick] The name bottomBannerBottomRadius is a bit unclear; it might be more descriptive to name it bannerNoBottomRadius or bannerFlatBottomCorners.
export const bottomBannerBottomRadius = style({

Comment thread packages/widget/src/domain/types/tokens.ts
@petar-omni petar-omni merged commit d6bd237 into main Jun 6, 2025
7 checks passed
@petar-omni petar-omni deleted the feat/usde-ll-banner branch June 6, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants