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

#7685 replace placeholders #7698

Merged
merged 12 commits into from
Nov 1, 2023
Merged

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-10-16 at 8 58 29 PM Screen Shot 2023-10-16 at 8 58 59 PM

Copilot Summary

@prachi00 prachi00 requested a review from a team as a code owner October 17, 2023 04:00
@prachi00 prachi00 requested review from floyd-li and daiagi and removed request for a team October 17, 2023 04:00
@kodabot
Copy link
Collaborator

kodabot commented Oct 17, 2023

SUCCESS @prachi00 PR for issue #7685 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

@reviewpad
Copy link
Contributor

reviewpad bot commented Oct 17, 2023

AI-Generated Summary: This pull request updates the placeholders images used depending on the theme mode in the useTheme.ts file. Instead of using /placeholder.webp for dark mode and /placeholder-white.webp for light mode, it now uses /Kdark.svg and /Klight.svg respectively. These SVG files, Kdark.svg and Klight.svg, added to the public directory, define several complex shapes through various <path> elements. It's worth noting that some paths are filled with black color, and others are filled with white, denoted by different SVG rules like fill-rule and clip-rule.

@reviewpad reviewpad bot added small Pull request is small waiting-for-review labels Oct 17, 2023
@netlify
Copy link

netlify bot commented Oct 17, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 5c6ed3e
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/65409255378c520008577743
😎 Deploy Preview https://deploy-preview-7698--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.

could you use minimized .webp instead?

@roiLeo roiLeo requested a review from exezbcz October 17, 2023 06:47
@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Oct 17, 2023
@prachi00
Copy link
Member Author

could you use minimized .webp instead?

I converted online, the quality is reduced though
Screen Shot 2023-10-17 at 8 49 45 PM

@exezbcz can you provide webp?

@exezbcz
Copy link
Member

exezbcz commented Oct 18, 2023

@prachi00 Hope this helps. I decided to make it k-grey for both modes, since its placeholder, it does not have to have big contrast
image

could you also make it smaller, something like with the size of container
image

ZIP

here is zip, both dark and light version with 4 quality versions - levels of compression.
kdarkplaceholder.zip
klightplaceholder.zip

@prachi00
Copy link
Member Author

@exezbcz check now

@prury
Copy link
Member

prury commented Oct 19, 2023

@exezbcz i think placeholder when loading collection logo image could also be reduced, wdyt
on canary it also had some margins around)

image

@exezbcz
Copy link
Member

exezbcz commented Oct 20, 2023

weird, still see the old one on explorer

image

@exezbcz
Copy link
Member

exezbcz commented Oct 20, 2023

@prury yup, smaller please and without the stretch

@prachi00
Copy link
Member Author

weird, still see the old one on explorer

image
Screen Shot 2023-10-21 at 4 37 04 PM

where is this? dont we have skeletons in explore now?

@prachi00
Copy link
Member Author

Screen Shot 2023-10-21 at 4 38 32 PM @prury

@prury
Copy link
Member

prury commented Oct 22, 2023

Screen Shot 2023-10-21 at 4 38 32 PM @prury

@prachi00 the image you attached still shows the old logo. I believe its supposed to show the new logo, but using the same margins and image proportions that we have on canary

@prachi00
Copy link
Member Author

@prury
Screen Shot 2023-10-22 at 3 56 22 PM

@prachi00
Copy link
Member Author

Screen Shot 2023-10-23 at 9 12 48 PM it seems the old placeholder is coming from `nftListWithSearch` query @roiLeo @prury can we add this in a separate issue ?

@roiLeo
Copy link
Contributor

roiLeo commented Oct 24, 2023

it seems the old placeholder is coming from nftListWithSearch query @roiLeo @prury can we add this in a separate issue ?

it's comming from IPFS_KODADOT_IMAGE_PLACEHOLDER

@prachi00
Copy link
Member Author

IPFS_KODADOT_IMAGE_PLACEHOLDER

okay so what should be the value now for this? how do I get that ipfs hash thingy for new logo?

@prachi00
Copy link
Member Author

IPFS_KODADOT_IMAGE_PLACEHOLDER

okay so what should be the value now for this? how do I get that ipfs hash thingy for new logo?

@roiLeo would you know?

@daiagi
Copy link
Contributor

daiagi commented Oct 26, 2023

okay so what should be the value now for this? how do I get that ipfs hash thingy for new logo?

maybe I am wrong and we have another way but my guess would be

  1. download IPFS desktop
  2. upload the new image file from your computer
  3. use the new identifier in the code

https://docs.ipfs.tech/how-to/desktop-app/

@roiLeo
Copy link
Contributor

roiLeo commented Oct 26, 2023

okay so what should be the value now for this? how do I get that ipfs hash thingy for new logo?

Mint it!

@prachi00
Copy link
Member Author

IPFS_KODADOT_IMAGE_PLACEHOLDER

would you mind generating one? I am having trouble loading it
I got this QmVFb2qxyFePqzMqMrwcszpavi95FUhwapPVPu3z7Fxf1B hash but it doesn't load

https://image-beta.w.kodadot.xyz/ipfs/QmVFb2qxyFePqzMqMrwcszpavi95FUhwapPVPu3z7Fxf1B

@prachi00
Copy link
Member Author

IPFS_KODADOT_IMAGE_PLACEHOLDER

would you mind generating one? I am having trouble loading it I got this QmVFb2qxyFePqzMqMrwcszpavi95FUhwapPVPu3z7Fxf1B hash but it doesn't load

https://image-beta.w.kodadot.xyz/ipfs/QmVFb2qxyFePqzMqMrwcszpavi95FUhwapPVPu3z7Fxf1B

@roiLeo @daiagi

@daiagi
Copy link
Contributor

daiagi commented Oct 29, 2023

Which network did you mint it in?
I didn't find it browsing through explore

@prachi00
Copy link
Member Author

Which network did you mint it in? I didn't find it browsing through explore

I did it through the ipfs thing you mentioned

@daiagi
Copy link
Contributor

daiagi commented Oct 31, 2023

Roileo advice was better. Mint it

@prachi00
Copy link
Member Author

Roileo advice was better. Mint it

yeah so about that, I dont have any balance for testing stuff, and I don't know how to get tokens since we shifted on telegram from discord, would you be able to mint it? or tell me how I can get some test tokens? @daiagi

@prachi00
Copy link
Member Author

@codeclimate
Copy link

codeclimate bot commented Oct 31, 2023

Code Climate has analyzed commit 5c6ed3e and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.9% 0.9% Duplication

@prachi00
Copy link
Member Author

@roiLeo @daiagi it seems even after replacing the hash
https://deploy-preview-7698--koda-canary.netlify.app/ksm/explore/items?listed=true&search=bureau
still has the old placeholder with hash bafkreifahjdjerrz65puqznmsu2acoktrxjbo3vvp2f2j4eb7h5tc345fi
I searched the codebase and we don't have it anywhere else
Screen Shot 2023-10-30 at 10 37 46 PM

@daiagi
Copy link
Contributor

daiagi commented Oct 31, 2023

It seems that IPFS_KODADOT_IMAGE_PLACEHOLDER is only used while minting
so any nft minted before this PR will show the previous placeholder

it looks like we're just going to have to live with it

image

@prury prury added S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked and removed S-changes-requested-🤞 PR is almost good to go, just some fine tunning labels Oct 31, 2023
@yangwao
Copy link
Member

yangwao commented Nov 1, 2023

Thanks!
pay 30 usd

@yangwao yangwao merged commit b879dad into kodadot:main Nov 1, 2023
12 checks passed
@yangwao
Copy link
Member

yangwao commented Nov 1, 2023

😍 Perfect, I’ve sent the payout
💵 $30 @ 4.35 USD/DOT ~ 6.897 $DOT
🧗 13Qx65nLd6SwdtjrRyuoEtp9CKXhF651xdHBPaXcvhwKm4N1
🔗 0x932790f73fcd5119aa0cef35a9e75b0d781f35b46b02af0231721cedb9a2cf23

🪅 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 Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paid pull-request has been paid S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked small Pull request is small waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace gallery item place holder with koda v4 logo
7 participants