-
Notifications
You must be signed in to change notification settings - Fork 152
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: integrate dynamic images on SEO pages #1557
base: develop
Are you sure you want to change the base?
feat: integrate dynamic images on SEO pages #1557
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Playwright test resultsDetails 19 tests across 3 suites Skipped testschromium › e2e.spec.ts › Jumper full e2e flow › Should be able to navigate to profile and open first Mission |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments
Test results (4/4)Details 5 tests across 2 suites |
Test results (3/4)Details 5 tests across 2 suites |
Test results (2/4)Details 5 tests across 1 suite Skipped testschromium › e2e.spec.ts › Jumper full e2e flow › Should be able to open quests mission page and switch background color |
Test results (1/4)Details 6 tests across 2 suites Skipped testschromium › e2e.spec.ts › Jumper full e2e flow › Should be able to navigate to profile and open first Mission |
src/app/ui/bridge/StepsExplainer.tsx
Outdated
you have the correct ${sourceChain?.name} wallet address and that your | ||
${sourceToken?.name} account is funded.`} | ||
img={{ | ||
imgUrl: `/api/widget-selection?fromToken=${sourceToken.address}&fromChainId=${sourceChain.id}&toToken=${destinationToken.address}&toChainId=${destinationChain.id}&amount=${WIDGET_AMOUNT}&theme=${theme.palette.mode}&isSwap=false`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thing I did not see before, those imgUrl params are all duplicated, you can use querystring
to make it clearer (and avoid duplication by declaring those at the top of the file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have extracted this to first create an object[] called "steps" which takes in the necessary information for each step-item explanation. In the render message it loops through that. This seperates the data-logic from the returned render-logic. In addition with our new function "getWidgetImageProps" it should be much cleaner now.
Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 more commments
Ticket: https://lifi.atlassian.net/browse/LF-10781