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

#6417 tooltip update gallery #6448

Merged
merged 10 commits into from
Aug 2, 2023
Merged

#6417 tooltip update gallery #6448

merged 10 commits into from
Aug 2, 2023

Conversation

prachi00
Copy link
Member

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.

👇 __ Let's make a quick check before the contribution.

PR Type

  • Bugfix
  • Feature
  • Refactoring

Needs QA check

  • @kodadot/qa-guild please review

Context

Did your issue had any of the "$" label on it?

Screenshot 📸

  • My fix has changed UI
Screen Shot 2023-07-20 at 8 13 23 PM

Copilot Summary

@prachi00 prachi00 requested a review from a team as a code owner July 21, 2023 03:14
@prachi00 prachi00 requested review from roiLeo and vikiival and removed request for a team July 21, 2023 03:14
@kodabot
Copy link
Collaborator

kodabot commented Jul 21, 2023

WARNING @prachi00 PR for issue #6417 which isn't assigned to you. Please be warned that this PR may get rejected if there's another assignee for issue #6417

@netlify
Copy link

netlify bot commented Jul 21, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 8494f5d
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/64b9f830b25dc10008730678
😎 Deploy Preview https://deploy-preview-6448--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@reviewpad
Copy link
Contributor

reviewpad bot commented Jul 21, 2023

AI-Generated Summary: This pull request includes changes associated with the update of the tooltip used in the gallery. Modifications are made to the GalleryItemBuy.vue and NeoTooltip.vue files, with the addition of new tooltips, labels and links to guide users having insufficient funds to handle NFTs.

The locales/en.json file is updated to introduce new terms related to tooltips, while the styles/components/_gallery-item.scss has been revised to handle new style additions related to tooltip changes in the gallery. Overall, 111 insertions and 50 deletions have been made across these four files under consideration.

@reviewpad reviewpad bot added medium Pull request is medium waiting-for-review labels Jul 21, 2023
@prachi00
Copy link
Member Author

@exezbcz are we okay with tooltip showing up in left side? because with top, it overflows out of the screen
Screen Shot 2023-07-20 at 8 16 25 PM

@netlify
Copy link

netlify bot commented Jul 21, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 2f490b6
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/64c8883853c6f50008f06d1f
😎 Deploy Preview https://deploy-preview-6448--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

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

Small stuff, otherwise lgtm


.neo-tooltip,
.is-neo {
height: 54px;
Copy link
Contributor

Choose a reason for hiding this comment

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

is it necessary to have a fixed height?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah else the button will be of a different height

@roiLeo roiLeo requested a review from preschian July 21, 2023 06:27
@prury
Copy link
Member

prury commented Jul 21, 2023

  • tool tip on mobile is being shown outside the screen:
  • the add funds button is leading to the transfer page, i believe it should lead to the fiat on ramp page

  • on the referenced issue, the tool tip is showing the chain name and not its token/abbreviation like it stands now:

image

best would be showing "Kusama" for RMRK1 and RMRK2

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Jul 21, 2023
@prachi00
Copy link
Member Author

@prury whats ramp page? can you give the url where it should redirect?

@prury
Copy link
Member

prury commented Jul 21, 2023

@prury whats ramp page? can you give the url where it should redirect?

fiat on ramp is a mechanism that allows you to buy crypto directly with your credit card
try going to the profile page and click on +add funds

image
this page shows up:
image

@prachi00
Copy link
Member Author

we need to figure out how this is suppose to look on mobile as the text is too big @prury
Screen Shot 2023-07-22 at 7 06 16 PM

@prachi00
Copy link
Member Author

Screen Shot 2023-07-22 at 7 07 55 PM @prury is this okay?

@prury
Copy link
Member

prury commented Jul 23, 2023

Screen Shot 2023-07-22 at 7 07 55 PM @prury is this okay?

yes, it works, on the right side of the button aswell if it fits

@prachi00
Copy link
Member Author

Screen Shot 2023-07-23 at 6 14 46 PM added top to all now, it will look like this, web and mobile

@prury
Copy link
Member

prury commented Jul 24, 2023

on the referenced issue, the tool tip is showing the chain name and not its token/abbreviation like it stands now:

image

best would be showing "Kusama" for RMRK1 and RMRK2

Wonderful, only thing left now is this ^

@prachi00
Copy link
Member Author

done

@prury
Copy link
Member

prury commented Jul 26, 2023

done

RMRK2 still shows RMRK chain, should be Kusama, otherwise it will induce user to error making it think that he needs assets directly on the RMRK chain, which isn't true, the rest of the other chains are showing the correct information.

{{
$t('tooltip.notEnoughBalanceChain', {
chain:
chainInfo[urlPrefix][0].toUpperCase() +
Copy link
Member

Choose a reason for hiding this comment

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

better to create chainNames on this file https://github.com/kodadot/nft-gallery/blob/main/libs/static/src/chains.ts

using switch case or object to return chain name based on prefix. for example

case 'rmrk'
case 'ksm'
  return 'kusama'

Copy link
Member

Choose a reason for hiding this comment

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

We already have chain names there 👀

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah why are we adding it twice? can we change ksm to 'kusama' instead of rmrk? @preschian @roiLeo @vikiival
Screen Shot 2023-07-26 at 11 56 25 AM

Copy link
Member

@preschian preschian Jul 27, 2023

Choose a reason for hiding this comment

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

on the referenced issue, the tool tip is showing the chain name and not its token/abbreviation like it stands now:

not that one, chainInfo is from the developer's perspective. this is from the user's perspective #6448 (comment). if the user clicks "Add Funds", it means they need some token on "kusama" chain, not on "rmrk" chain

@prachi00 prachi00 requested a review from preschian July 29, 2023 23:41
Co-authored-by: Preschian Febryantara <[email protected]>
@codeclimate
Copy link

codeclimate bot commented Aug 1, 2023

Code Climate has analyzed commit 2f490b6 and detected 0 issues on this pull request.

View more on Code Climate.

@prury
Copy link
Member

prury commented Aug 1, 2023

chains are perfect now! thanks to everyone involved

but oops, seems like mobile is wrong again:

image

@preschian
Copy link
Member

but oops, seems like mobile is wrong again:

button needs full-width to show the entire tooltip on mobile. ref: #6448 (comment)
cc @prachi00

@yangwao
Copy link
Member

yangwao commented Aug 2, 2023

pay 20 usd

continue in #6512

@yangwao yangwao merged commit a3b3d7d into main Aug 2, 2023
@yangwao yangwao deleted the feat-tooltip-update branch August 2, 2023 10:10
@yangwao
Copy link
Member

yangwao commented Aug 2, 2023

😍 Perfect, I’ve sent the payout
💵 $20 @ 5.14 USD/DOT ~ 3.891 $DOT
🧗 13Qx65nLd6SwdtjrRyuoEtp9CKXhF651xdHBPaXcvhwKm4N1
🔗 0xd00d8349e4fa9e980efa2553532255e3831a3c4b2891ad3b40f72bab2c4d00c3

🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

@yangwao yangwao added the paid pull-request has been paid label Aug 2, 2023
This was referenced Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Pull request is medium paid pull-request has been paid S-changes-requested-🤞 PR is almost good to go, just some fine tunning waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Informative tooltip - insufficient funds
7 participants