Skip to content

[M]DLS-535-feat(ui-rnative): add MediaCard component#571

Merged
zel-kass merged 22 commits intomainfrom
DLS-535-feat/media-card-rn
Mar 20, 2026
Merged

[M]DLS-535-feat(ui-rnative): add MediaCard component#571
zel-kass merged 22 commits intomainfrom
DLS-535-feat/media-card-rn

Conversation

@zel-kass
Copy link
Collaborator

@zel-kass zel-kass commented Mar 17, 2026

Overview

Introduce MediaCard component for react native, with tests, documentation, and app sandbox demo

Simulator Screenshot - iPhone 17 Pro - 2026-03-20 at 16 23 30

@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ldls Ready Ready Preview, Comment Mar 20, 2026 5:35pm
ldls-react-native Ready Ready Preview, Comment Mar 20, 2026 5:35pm

Request Review

…ntent support

- Introduced MediaCard component to display images with customizable content.
- Added MediaCardLeadingContent and MediaCardTrailingContent for flexible layouts.
- Updated App.tsx to include MediaCards in the sandbox.
- Enhanced internationalization files with new close button labels in multiple languages.
- Added tests and documentation for MediaCard component functionality.
@zel-kass zel-kass changed the title DLS-535 feat(ui-rnative): MediaCard [M]-DLS-535-feat(ui-rnative): add MediaCard component Mar 18, 2026
@zel-kass zel-kass changed the title [M]-DLS-535-feat(ui-rnative): add MediaCard component [M]DLS-535-feat(ui-rnative): add MediaCard component Mar 18, 2026
github-actions bot and others added 4 commits March 20, 2026 10:25
* 💄 (figma): Sync Figma Design Tokens & Symbols

* fix: remove is-utility: dark

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>

---------

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>
Co-authored-by: gamegee <15988848+gamegee@users.noreply.github.com>
Co-authored-by: Simon Bruneaud <simon.bruneaud@ledger.fr>
* chore: update app-sandbox-rnative versions

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>

* test(ui-rnative): make sure to test the ThemeProvider with real components that consume the theme

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
… theme JS (rn) (#580)

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>
…rs and replace Pressable in MediaCard with new InteractiveIcon
gamegee and others added 2 commits March 20, 2026 12:41
* fix(amount-display): fix ui-react AmountDisplay baseline issue + add 0.5px more width for each char

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>

* nx plan

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>

* fix(ui-react): fix amountdisplay failing test

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>

---------

Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr>
Copy link
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

Adds a new MediaCard component to @ledgerhq/lumen-ui-rnative (with Storybook docs/stories/tests) and introduces supporting UI tweaks across RN + React packages (InteractiveIcon appearance option and AmountDisplay layout/spacing fixes), plus sandbox/demo wiring and i18n additions.

Changes:

  • Add MediaCard / MediaCardTitle (implementation, types, stories, tests, MDX docs) and export it from the RN components barrel.
  • Extend InteractiveIcon with an appearance prop (including a white variant for dark backgrounds).
  • Adjust AmountDisplay digit widths (RN + React) and tweak the React DOM structure + test to address baseline/overflow issues; add common.closeAriaLabel translations and sandbox examples.

Reviewed changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
libs/ui-rnative/src/lib/Components/index.ts Exports the new MediaCard component from the RN components barrel.
libs/ui-rnative/src/lib/Components/MediaCard/types.ts Defines MediaCard and MediaCardTitle prop types.
libs/ui-rnative/src/lib/Components/MediaCard/index.ts Public exports for MediaCard and its types.
libs/ui-rnative/src/lib/Components/MediaCard/MediaCard.tsx Implements the RN MediaCard + gradients + close button.
libs/ui-rnative/src/lib/Components/MediaCard/MediaCard.test.tsx Adds RN tests for rendering and press behaviors.
libs/ui-rnative/src/lib/Components/MediaCard/MediaCard.stories.tsx Adds Storybook stories for layout/composition/close behavior.
libs/ui-rnative/src/lib/Components/MediaCard/MediaCard.mdx Adds Storybook MDX documentation for MediaCard.
libs/ui-rnative/src/lib/Components/InteractiveIcon/types.ts Adds appearance prop to InteractiveIcon API docs/types.
libs/ui-rnative/src/lib/Components/InteractiveIcon/InteractiveIcon.tsx Implements appearance color variants (base/muted/white).
libs/ui-rnative/src/lib/Components/AmountDisplay/AmountDisplay.tsx Updates digit-width constants to prevent overflow in RN.
libs/ui-rnative/src/i18n/locales/zh.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/tr.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/th.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/ru.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/pt.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/ko.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/ja.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/fr.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/es.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/en.json Adds common.closeAriaLabel translation.
libs/ui-rnative/src/i18n/locales/de.json Adds common.closeAriaLabel translation.
libs/ui-react/src/lib/Components/AmountDisplay/AmountDisplay.tsx Updates digit widths and DOM structure to fix baseline/overflow.
libs/ui-react/src/lib/Components/AmountDisplay/AmountDisplay.test.tsx Updates assertions to match new DOM structure (aria-hidden nodes).
apps/app-sandbox-rnative/src/app/blocks/index.ts Exposes new MediaCards sandbox block.
apps/app-sandbox-rnative/src/app/blocks/MediaCards.tsx Adds sandbox examples demonstrating MediaCard usage.
apps/app-sandbox-rnative/src/app/App.tsx Wires the MediaCards block into the sandbox app UI.
.nx/version-plans/version-plan-1774000912719.md Version plan for ui-react AmountDisplay fixes.
.nx/version-plans/version-plan-1774000912718.md Version plan for ui-rnative AmountDisplay width adjustments.
.nx/version-plans/version-plan-1773849698407.md Version plan for introducing MediaCard in ui-rnative.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zel-kass zel-kass merged commit 8812a69 into main Mar 20, 2026
17 checks passed
@zel-kass zel-kass deleted the DLS-535-feat/media-card-rn branch March 20, 2026 17:36
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.

4 participants