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: integrate dynamic images on SEO pages #1557

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

Conversation

dennyscode
Copy link
Contributor

Copy link

vercel bot commented Nov 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jumper-exchange ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 0:53am

Copy link

github-actions bot commented Nov 29, 2024

Playwright test results

passed  16 passed
skipped  3 skipped

Details

stats  19 tests across 3 suites
duration  3 minutes, 24 seconds
commit  d44b770

Skipped tests

chromium › e2e.spec.ts › Jumper full e2e flow › Should be able to navigate to profile and open first Mission
chromium › e2e.spec.ts › Jumper full e2e flow › Should be able to navigate to Supefest
chromium › e2e.spec.ts › Jumper full e2e flow › Should be able to open quests mission page and switch background color

@tcheee
Copy link
Contributor

tcheee commented Dec 3, 2024

image
image should be below text no?

@tcheee
Copy link
Contributor

tcheee commented Dec 3, 2024

image
it broke the list

src/app/ui/bridge/BridgePage.style.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@oktapodia oktapodia left a comment

Choose a reason for hiding this comment

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

Couple of comments

src/app/ui/bridge/StepDetail.tsx Outdated Show resolved Hide resolved
src/app/ui/bridge/StepsExplainer.tsx Outdated Show resolved Hide resolved
src/app/ui/bridge/StepsExplainer.tsx Outdated Show resolved Hide resolved
src/app/ui/bridge/StepsExplainer.tsx Outdated Show resolved Hide resolved
src/app/ui/bridge/StepsExplainer.tsx Outdated Show resolved Hide resolved
src/app/ui/bridge/utils.tsx Show resolved Hide resolved
Copy link

github-actions bot commented Dec 6, 2024

Test results (4/4)

passed  5 passed

Details

stats  5 tests across 2 suites
duration  1 minute, 14 seconds
commit  85bfd2c

Copy link

github-actions bot commented Dec 6, 2024

Test results (3/4)

passed  5 passed

Details

stats  5 tests across 2 suites
duration  1 minute, 8 seconds
commit  85bfd2c

Copy link

github-actions bot commented Dec 6, 2024

Test results (2/4)

passed  4 passed
skipped  1 skipped

Details

stats  5 tests across 1 suite
duration  43.8 seconds
commit  85bfd2c

Skipped tests

chromium › e2e.spec.ts › Jumper full e2e flow › Should be able to open quests mission page and switch background color

Copy link

github-actions bot commented Dec 6, 2024

Test results (1/4)

passed  5 passed
skipped  1 skipped

Details

stats  6 tests across 2 suites
duration  1 minute, 7 seconds
commit  85bfd2c

Skipped tests

chromium › e2e.spec.ts › Jumper full e2e flow › Should be able to navigate to profile and open first Mission

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`,
Copy link
Contributor

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)

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 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?

Copy link
Contributor

@oktapodia oktapodia left a comment

Choose a reason for hiding this comment

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

2 more commments

src/app/ui/bridge/InformationCard.style.ts Outdated Show resolved Hide resolved
src/app/ui/bridge/StepDetail.style.ts Outdated Show resolved Hide resolved
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.

3 participants