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: carousel for resources on gallery detail #5751

Merged
merged 12 commits into from
May 8, 2023

Conversation

preschian
Copy link
Member

@preschian preschian commented Apr 21, 2023

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

Context

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality

Optional

  • I've tested it at </ksm/collection>
  • I've tested PR on mobile
  • I've written unit tests 🧪
  • I've found edge cases

Had issue bounty label?

  • Fill up your KSM address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.

Screenshot 2023-04-21 at 18 07 46

Copilot Summary

🤖 Generated by Copilot at f754fbe

This pull request enhances the gallery item component to show the additional resources of the NFT in a carousel. It introduces a new custom type NftResources to represent the resources, and updates the useGalleryItem and useNft composables to handle the new type. It also modifies the GalleryItem.vue component to use the carousel and hide the fullscreen button if there are resources.

🤖 Generated by Copilot at f754fbe

To show more resources of an NFT
We added a carousel, you see
We used useNft
And changed ItemResources a bit
To make the types more consistent and pretty

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 311f491
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/645677ba3497ec0008368a57
😎 Deploy Preview https://deploy-preview-5751--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 settings.

@reviewpad
Copy link
Contributor

reviewpad bot commented Apr 21, 2023

AI-Generated Summary: This pull request introduces a carousel feature for the gallery component. It modifies three files, GalleryItem.vue, useGalleryItem.ts, and useNft.ts. The changes include adding a new carousel component with O-carousel and O-carousel-item in GalleryItem.vue, updating the item resources in useNft.ts, and handling the new resources and their sanitization in useGalleryItem.ts. The updated files now manage the resources and enable a functional carousel for displaying multiple media items in the gallery.

@reviewpad reviewpad bot added the small Pull request is small label Apr 21, 2023
@preschian preschian marked this pull request as ready for review April 21, 2023 11:11
@preschian preschian requested a review from a team as a code owner April 21, 2023 11:11
@preschian preschian requested review from roiLeo and Jarsen136 and removed request for a team April 21, 2023 11:11
@preschian
Copy link
Member Author

preschian commented Apr 21, 2023

@exezbcz while waiting expected design use this temporarily?

Copy link
Contributor

@Jarsen136 Jarsen136 left a comment

Choose a reason for hiding this comment

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

components/gallery/GalleryItem.vue Outdated Show resolved Hide resolved
@exezbcz
Copy link
Member

exezbcz commented Apr 21, 2023

@preschian yup, works

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.

Hey I don't know if it's related but it's missing hover fullscreenn button on media

Screenshot 2023-04-21 at 14-18-57 Wine dogo KodaDot - NFT Market Explorer

@preschian
Copy link
Member Author

It looks strange that there is only one dot there.

Hey I don't know if it's related but it's missing hover fullscreenn button on media

noted, will check later. currently, the query seems didn't load on my end. stuck on loading

Capture-2023-04-21-204807

@yangwao yangwao mentioned this pull request Apr 22, 2023
@preschian
Copy link
Member Author

Hey I don't know if it's related but it's missing hover fullscreenn button on media

seems like there is no hover style even on canary or production?

Copy link
Contributor

@Jarsen136 Jarsen136 left a comment

Choose a reason for hiding this comment

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

otherwise lgtm

components/gallery/GalleryItem.vue Outdated Show resolved Hide resolved
@floyd-li
Copy link
Member

Hey I don't know if it's related but it's missing hover fullscreenn button on media

seems like there is no hover style even on canary or production?

yes it do have the fullscreen button, i added it lol

image

and this fullscreen preview has different behavior with current one. but i think it's okay to merge this pr first, it can done in a separate pr.

iShot_2023-04-23_13.25.36.mp4

Copy link
Member

@floyd-li floyd-li left a comment

Choose a reason for hiding this comment

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

lgtm

components/gallery/GalleryItem.vue Outdated Show resolved Hide resolved
@vikiival
Copy link
Member

noted, will check later. currently, the query seems didn't load on my end. stuck on loading

@preschian there was a service outage

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.

otherwise lgtm

components/gallery/GalleryItem.vue Outdated Show resolved Hide resolved
components/gallery/GalleryItem.vue Show resolved Hide resolved
@exezbcz
Copy link
Member

exezbcz commented Apr 29, 2023

image

  • full screen is not working how it should - missing button on hover and it triggers the full screen with a click on the img

@floyd-li
Copy link
Member

image

  • full screen is not working how it should - missing button on hover and it triggers the full screen with a click on the img

yes. seems o-carousel got a default fullscreen behavior which is different to current. you may take a reference of #5321 i added.

@reviewpad reviewpad bot added medium Pull request is medium and removed small Pull request is small labels May 4, 2023
@preschian
Copy link
Member Author

Hey I don't know if it's related but it's missing hover fullscreenn button on media

oohh, sorry I misread this, I thought it was about hover style. added now

@exezbcz
Copy link
Member

exezbcz commented May 4, 2023

functionality good - i will follow up with the stylign

@roiLeo roiLeo added the S-code-lgtm-✅ code review guild has reviewed this PR and it's code is approved label May 4, 2023
@codeclimate
Copy link

codeclimate bot commented May 6, 2023

Code Climate has analyzed commit 311f491 and detected 0 issues on this pull request.

View more on Code Climate.

@vikiival vikiival merged commit 15b95b8 into main May 8, 2023
@vikiival vikiival deleted the feat/carousel-for-resources branch May 8, 2023 12:16
@vikiival
Copy link
Member

vikiival commented May 8, 2023

pay 70 usd

@yangwao
Copy link
Member

yangwao commented May 8, 2023

😍 Perfect, I’ve sent the payout
💵 $70 @ 26.82 USD/KSM ~ 2.61 $KSM
🧗 DY4SQF2iD456tH89aQtz5wv1EV3BbSW8wKKuMcwbmXaj1pM
🔗 0xf9993bc082d1f157f175d8666a8b18a04a9b49ac868d8d23f95265e53fd31a30

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

@yangwao yangwao added paid pull-request has been paid and removed paid pull-request has been paid labels May 8, 2023
@yangwao
Copy link
Member

yangwao commented May 8, 2023

pay 70 usd

@yangwao
Copy link
Member

yangwao commented May 8, 2023

😍 Perfect, I’ve sent the payout
💵 $70 @ 25.52 USD/KSM ~ 2.743 $KSM
🧗 DY4SQF2iD456tH89aQtz5wv1EV3BbSW8wKKuMcwbmXaj1pM
🔗 0xafecdedeca3088e06a577137aa6b44d365693d2cbf5e90bf4e3b2c1d89f0028e

🪅 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 May 8, 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-code-lgtm-✅ code review guild has reviewed this PR and it's code is approved S-visual-ok-✅ waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make carrousel viewer for multi-resource NFTs
7 participants