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

✨ LLM / LLD - Europa PostOnboarding #6646

Merged
merged 27 commits into from
Apr 18, 2024

Conversation

cgrellard-ledger
Copy link
Contributor

@cgrellard-ledger cgrellard-ledger commented Apr 10, 2024

✅ Checklist

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

📝 Description

Added europa support to post onboarding on both LLM and LLD
Updated post onboarding copy and analytics
Added an entry point to recover in the post onboarding
Updated the design of the Post onboarding banner on LLD
Screenshot 2024-04-11 at 16 46 50
Screenshot 2024-04-11 at 16 47 06
Screenshot 2024-04-11 at 16 47 20
Screenshot_2024-04-11-15-28-15-25_99c1b3bb631177f8a9e1379ae5b12ffe
Screenshot_2024-04-11-15-28-31-19_99c1b3bb631177f8a9e1379ae5b12ffe
Screenshot_2024-04-11-15-29-03-89_99c1b3bb631177f8a9e1379ae5b12ffe
Screenshot_2024-04-11-15-30-49-14_99c1b3bb631177f8a9e1379ae5b12ffe

❓ 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)

@cgrellard-ledger cgrellard-ledger requested review from a team as code owners April 10, 2024 09:39
Copy link

vercel bot commented Apr 10, 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 Apr 18, 2024 1:06pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2024 1:06pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2024 1:06pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2024 1:06pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2024 1:06pm

@live-github-bot live-github-bot bot added mobile Has changes in LLM ledgerjs Has changes in the ledgerjs open source libs translations Translation files have been touched labels Apr 10, 2024
@cgrellard-ledger cgrellard-ledger marked this pull request as draft April 10, 2024 09:46
@cgrellard-ledger cgrellard-ledger changed the title Feat/llm europa postonboarding ✨ LLM - Europa PostOnboarding Apr 11, 2024
@cgrellard-ledger cgrellard-ledger marked this pull request as ready for review April 11, 2024 14:44
@cgrellard-ledger cgrellard-ledger requested a review from a team as a code owner April 11, 2024 14:45
@live-github-bot live-github-bot bot added the desktop Has changes in LLD label Apr 11, 2024
@cgrellard-ledger cgrellard-ledger changed the title ✨ LLM - Europa PostOnboarding ✨ LLM / LLD - Europa PostOnboarding Apr 11, 2024
@cgrellard-ledger
Copy link
Contributor Author

cgrellard-ledger commented Apr 11, 2024

@cgrellard-ledger

Generating screenshots: workflow ended

Jobs status:
❌ - generate-screenshots-linux

@cgrellard-ledger
Copy link
Contributor Author

cgrellard-ledger commented Apr 12, 2024

@cgrellard-ledger

Generating screenshots: workflow ended

Jobs status:
✅ - generate-screenshots-linux

@live-github-bot live-github-bot bot added the screenshots Screenshots have been updated label Apr 12, 2024
@cgrellard-ledger
Copy link
Contributor Author

cgrellard-ledger commented Apr 17, 2024

@cgrellard-ledger

Generating screenshots: workflow ended

Jobs status:
❌ - generate-screenshots-linux

alalmi-ledger
alalmi-ledger previously approved these changes Apr 18, 2024
@alalmi-ledger
Copy link
Contributor

@cgrellard-ledger Checked on LLM and LLD, QA OK 👍

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.

Some questions but the rest LGTM

Comment on lines +47 to +53
const initIsActionCompleted = useCallback(async () => {
setIsActionCompleted(completed || !!(await getIsAlreadyCompleted?.({ protectId })));
}, [setIsActionCompleted, completed, getIsAlreadyCompleted, protectId]);

useEffect(() => {
initIsActionCompleted();
}, [initIsActionCompleted]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really want to re-run the init if some dep changed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes sense to recompute the isActionCompleted state if a prop changes for some reason

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok it just felt weird to call multiple times a function called init

@@ -29,7 +29,7 @@ export default function RecoverBanner({ children }: { children?: React.ReactNode
const recoverServices = useFeature("protectServicesDesktop");

const recoverBannerIsEnabled = recoverServices?.params?.bannerSubscriptionNotification;
const protectID = recoverServices?.params?.protectId ?? "";
const protectID = recoverServices?.params?.protectId ?? "protect-prod";
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 have a constant for protect-prod as I see it repeated multiple times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed 👍 , maybe a subject for the recover team though

Comment on lines 157 to 159
useEffect(() => {
completeAction(PostOnboardingActionId.assetsTransfer);
}, [completeAction]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question as other useEffect do we want to call this only onMount or whenever completeAction changes too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll update this one to make sure we do not call this one again in case the completeAction changes

Justkant
Justkant previously approved these changes Apr 18, 2024
@cgrellard-ledger cgrellard-ledger merged commit 4d9e708 into develop Apr 18, 2024
52 of 53 checks passed
@cgrellard-ledger cgrellard-ledger deleted the feat/llm-europa-postonboarding branch April 18, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD ledgerjs Has changes in the ledgerjs open source libs mobile Has changes in LLM screenshots Screenshots have been updated translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants