Skip to content
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

feat: Save locally added manifest into the storage on both Mobile and Desktop client #6719

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

Conversation

RamyEB
Copy link
Contributor

@RamyEB RamyEB commented Apr 22, 2024

βœ… Checklist

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

πŸ“ Description

Save locally added manifest into the storage on both Mobile and Desktop client

image

❓ Context

  • JIRA or GitHub link:

🧐 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 Apr 22, 2024

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

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:36pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:36pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:36pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:36pm
web-tools ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:36pm

@live-github-bot live-github-bot bot added desktop Has changes in LLD common Has changes in live-common labels Apr 22, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-11397-save-locally-loaded-apps branch from 9a0af59 to da09c01 Compare April 22, 2024 15:41
@live-github-bot live-github-bot bot added the translations Translation files have been touched label Apr 22, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-11397-save-locally-loaded-apps branch from 1b02751 to a5caa86 Compare April 23, 2024 12:43
@live-github-bot live-github-bot bot added mobile Has changes in LLM ledgerjs Has changes in the ledgerjs open source libs tools Has changes in tools automation CI/CD stuff labels Apr 26, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-11397-save-locally-loaded-apps branch from 068f43d to 0a3dcf3 Compare April 26, 2024 15:05
@live-github-bot live-github-bot bot removed ledgerjs Has changes in the ledgerjs open source libs tools Has changes in tools automation CI/CD stuff labels Apr 26, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-11397-save-locally-loaded-apps branch from 9803689 to a5bf6e7 Compare April 30, 2024 14:22
@RamyEB RamyEB marked this pull request as ready for review April 30, 2024 14:22
@RamyEB RamyEB requested review from a team as code owners April 30, 2024 14:22
@RamyEB RamyEB changed the title feat: create useLocalLiveApp hook feat: Save locally added manifest into the storage on both Mobile and Desktop client Apr 30, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-11397-save-locally-loaded-apps branch from 1ccea88 to e9d5fb6 Compare May 2, 2024 10:35
Copy link
Contributor

@Justkant Justkant left a comment

Choose a reason for hiding this comment

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

LGTM just some small comments

@@ -33,11 +38,17 @@ export function PlatformAppProviderWrapper({ children }: PlatformAppProviderWrap
}}
updateFrequency={AUTO_UPDATE_DEFAULT_DELAY}
>
<LocalLiveAppProvider>
<LocalLiveAppProvider db={useLocalLiveAppDB()}>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably call the hook outside JSX and create a constant db above

Comment on lines 30 to 31
console.log("state localLiveApps", localLiveApps);

Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably remove this console.log

@@ -32,11 +38,19 @@ export default function PlatformAppProviderWrapper({ children }: PlatformAppProv
lang,
}}
>
<LocalLiveAppProvider>
<LocalLiveAppProvider db={useLocalLiveAppDB()}>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably move this hook too outside the jsx

lambertkevin
lambertkevin previously approved these changes May 7, 2024
Copy link
Contributor

@lambertkevin lambertkevin left a comment

Choose a reason for hiding this comment

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

LGTM for the coin integration scope

{list.map(m => {
return (
// eslint-disable-next-line react/jsx-key
<Box flexDirection="row">
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we use m.id as key to avoid // eslint-disable-next-line react/jsx-key ?

LucasWerey
LucasWerey previously approved these changes May 7, 2024
kallen-ledger
kallen-ledger previously approved these changes May 7, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-11397-save-locally-loaded-apps branch from 45fc8b9 to 69aa79f Compare May 7, 2024 12:47
Justkant
Justkant previously approved these changes May 7, 2024
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 mobile Has changes in LLM translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants