Skip to content

feat: add custom webview loader for Buy/Sell #10305

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

mwiercinska
Copy link
Contributor

@mwiercinska mwiercinska commented May 21, 2025

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Adding a custom loader to enable custom transition between Buy/Sell and providers in LLM and LLD.

Demo

LLD LLM iOS LLM Android
https://github.com/user-attachments/assets/0996f9eb-cf00-425f-9615-b84c6d79c9a7 https://github.com/user-attachments/assets/b2e74904-afdb-4f85-9623-7d2fced2d90e https://github.com/user-attachments/assets/d3ca0833-d075-4285-9b28-f0e9ad98be82

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copy link

vercel bot commented May 21, 2025

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jun 11, 2025 7:23am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 11, 2025 7:23am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 11, 2025 7:23am
web-tools ⬜️ Ignored (Inspect) Visit Preview Jun 11, 2025 7:23am

@live-github-bot live-github-bot bot added desktop Has changes in LLD mobile Has changes in LLM common Has changes in live-common ledgerjs Has changes in the ledgerjs open source libs translations Translation files have been touched labels May 21, 2025
@mwiercinska mwiercinska force-pushed the LIVE-17147-buy-sell-custom-loader branch from 05d1b36 to 2d6fd3f Compare May 21, 2025 14:04
@mwiercinska mwiercinska force-pushed the LIVE-17147-buy-sell-custom-loader branch 3 times, most recently from 86c0952 to 29239a4 Compare May 23, 2025 12:10
@hhumphrey-ledger hhumphrey-ledger force-pushed the LIVE-17147-buy-sell-custom-loader branch from 4274195 to 2e0769f Compare June 4, 2025 12:50
@hhumphrey-ledger hhumphrey-ledger marked this pull request as ready for review June 4, 2025 13:11
@hhumphrey-ledger hhumphrey-ledger requested review from a team as code owners June 4, 2025 13:11
sarneijim
sarneijim previously approved these changes Jun 5, 2025
Comment on lines 50 to 56
CustomLoader,
}: WebviewProps & {
CustomLoader?: React.ComponentType<{
manifest: LiveAppManifest;
isLoading: boolean;
}>;
}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should be able to directly use the Loader props from WebviewProps instead of adding a new CustomLoader with the same type

Suggested change
CustomLoader,
}: WebviewProps & {
CustomLoader?: React.ComponentType<{
manifest: LiveAppManifest;
isLoading: boolean;
}>;
}) {
Loader,
}: WebviewProps) {

Choose a reason for hiding this comment

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

Good shout! Update added here cc5d404

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
27.1% Coverage on New Code (required β‰₯ 80%)
75 New Code Smells (required ≀ 1)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD ledgerjs Has changes in the ledgerjs open source libs mobile Has changes in LLM translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants