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

Issue 4398 - How to buy $JOY #4513

Merged
merged 8 commits into from
Sep 13, 2023
Merged

Issue 4398 - How to buy $JOY #4513

merged 8 commits into from
Sep 13, 2023

Conversation

vrrayz
Copy link
Contributor

@vrrayz vrrayz commented Sep 1, 2023

@vercel
Copy link

vercel bot commented Sep 1, 2023

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

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Sep 13, 2023 3:53am
pioneer-2 ✅ Ready (Inspect) Visit Preview Sep 13, 2023 3:53am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Sep 13, 2023 3:53am

Copy link
Contributor

@chrlschwb chrlschwb left a comment

Choose a reason for hiding this comment

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

ok

@chrlschwb chrlschwb added community-dev issue suitable for community-dev pipeline jsg-code-review labels Sep 4, 2023
Copy link
Member

@thesan thesan left a comment

Choose a reason for hiding this comment

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

The code is good, but my main concern with this PR is actually on www.joystream.org

  1. There is no id on the page so the "Learn how to earn JOY’s: link can't link to the "EARN" section and the "Buy Joy tokens" link can't link to the "EXCHANGES" section like what the design implies. Instead they both link to the top of the page.
  2. The MEXC link on www.joystream.org is to https://www.mexc.com/ this increase the risk of users buying the wrong token from Drawshop.

IMO until this is addressed on www.joystream.org Pioneer should link "Buy Joy tokens" to https://www.mexc.com/exchange/JOYSTREAM_USDT?_from=market (just like the banner). WDYT @dmtrjsg ?

Also I think "Learn how to earn JOY’s:" should link to "https://www.joystream.org/token#earn" even though the anchor doesn't exist yet it should be created (even if it isn't we still link to the the right page).

Comment on lines 219 to 231
&.popper-light {
background-color: ${Colors.Black[75]};
border-color: ${Colors.Black[300]};
}
&.popper-light a {
color: ${Colors.Blue[500]};
font-weight: 700;
}
&.popper-light:after {
background-color: ${Colors.Black[75]};
border-color: ${Colors.Black[300]};
}

Copy link
Member

Choose a reason for hiding this comment

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

To stay consistent with the codebase instead of adding this class add this in packages/ui/src/memberships/components/ProfileComponent.tsx:

const StyledTooltip = styled(Tooltip)`
  background-color: ${Colors.Black[75]};
  border-color: ${Colors.Black[300]};
  a {
    color: ${Colors.Blue[500]};
    font-weight: 700;
  }
  :after {
    background-color: ${Colors.Black[75]};
    border-color: ${Colors.Black[300]};
  }
`

Then use:

<StyledTooltip
  tooltipLinkText="Learn how to earn JOY’s"
  tooltipLinkURL="https://www.joystream.org/token/"
  placement="top-start"
>

@dmtrjsg
Copy link
Contributor

dmtrjsg commented Sep 4, 2023

Chasing with Edwin: link>

Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
Copy link
Member

@thesan thesan left a comment

Choose a reason for hiding this comment

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

Here are some more things I missed on the first reviews. About the test failing you just need to pull the dev branch into this one.

@@ -52,6 +53,7 @@ export const MyAccounts = () => {
const { total, transferable, locked, recoverable, vestingTotal, vestedClaimable, vestingLocked } =
useMyTotalBalances()
const { hasAccounts, isLoading } = useMyAccounts()
const [shouldDismissBanner, setShouldDismissBanner] = useState(false)
Copy link
Member

Choose a reason for hiding this comment

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

Based on this:
image

The dismissed information should be stored in the localstorage instead of the component state:

Suggested change
const [shouldDismissBanner, setShouldDismissBanner] = useState(false)
const [shouldDismissBanner, setShouldDismissBanner] = useLocalStorage<boolean>('buy-joy-banner') ?? false

</a>
under "JOYSTREAM" ticker.
</TextMedium>
<TextLink href="https://www.joystream.org/token/" target="_blank">
Copy link
Member

Choose a reason for hiding this comment

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

This link should point to the EARN section too:

Suggested change
<TextLink href="https://www.joystream.org/token/" target="_blank">
<TextLink href="https://www.joystream.org/token#earn" target="_blank">

Comment on lines 30 to 32
<a href="https://www.mexc.com/exchange/JOYSTREAM_USDT?_from=market" target="_blank">
MEXC exchange{' '}
</a>
Copy link
Member

Choose a reason for hiding this comment

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

For this link please use a LinkButtonLinkStyles component from @/common/components/buttons/LinkButtons and move the exchange out of the link to follow the design better:
image

Copy link
Member

@thesan thesan left a comment

Choose a reason for hiding this comment

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

👍

@thesan thesan merged commit 3eab8e4 into Joystream:dev Sep 13, 2023
3 checks passed
@chrlschwb chrlschwb removed the qa-task label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-dev issue suitable for community-dev pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants