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: Collection filtering on top of profile #8414

Merged
merged 32 commits into from
Dec 16, 2023
Merged

Conversation

hassnian
Copy link
Contributor

@hassnian hassnian commented Dec 5, 2023

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

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

  • Fill up your DOT address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI;

CleanShot 2023-12-05 at 17 38 42@2x

Copilot Summary

🤖[deprecated] Generated by Copilot at b11a9aa

This pull request adds a new feature to filter NFTs by collections on the profile page. It introduces a new CollectionFilter component that uses a NeoDropdown with checkboxes and an ActiveCount badge. It also updates the CSS classes and variables for the filter and the ActiveCount component, and adds the image field to the collectionDetails fragment.

🤖[deprecated] Generated by Copilot at b11a9aa

We filter the NFTs by collections
We show the logos and the counts
We adjust the colors and positions
We unleash the CollectionFilter power

@kodabot
Copy link
Collaborator

kodabot commented Dec 5, 2023

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

Copy link

netlify bot commented Dec 5, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 1292ab4
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/657d9d4a47471300086cfaf0
😎 Deploy Preview https://deploy-preview-8414--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

reviewpad bot commented Dec 5, 2023

AI-Generated Summary: This pull request contains a series of changes that aim to improve functionality by including a profile collection filter. The central feature added is the new component CollectionFilter.vue, which allows users to search and filter out specific collections as per their requirements.

The component ActiveCount.vue has also been modified to include positioning control for the count indicator. Two CSS classes have been added to global.scss to enhance the interface, and Tailwind CSS properties are included as well.

Corresponding modifications in the ProfileDetail.vue have been applied to accommodate changes made in CollectionFilter.vue. Furthermore, 'image' attribute is added in the collectionDetails fragment in collectionDetails.graphql.

Overall, these changes focus on enhancing the user's experience by providing them with an optimal interface to search and filter collections.

@reviewpad reviewpad bot added the medium Pull request is medium label Dec 5, 2023
@exezbcz
Copy link
Member

exezbcz commented Dec 5, 2023

seeing draft, clicking on it lol

image

can you make the dropdown wider please

@hassnian
Copy link
Contributor Author

hassnian commented Dec 5, 2023

seeing draft, clicking on it lol

image can you make the dropdown wider please

I was fixing that lol

@hassnian hassnian marked this pull request as ready for review December 5, 2023 12:41
@hassnian hassnian requested review from a team as code owners December 5, 2023 12:41
@hassnian hassnian requested review from yangwao and daiagi and removed request for a team December 5, 2023 12:41
@exezbcz
Copy link
Member

exezbcz commented Dec 5, 2023

one more thing

image image

active button should have hover white

  • so the stroke is not visible

more on that in components page in figma

image

https://www.figma.com/file/JXNtryaNYhY0XJNArzvPQx/Handoff?type=design&node-id=5311-18771&mode=design&t=DYchv8StBlhD8HzW-11

@prury prury requested review from Jarsen136 and roiLeo and removed request for yangwao December 5, 2023 12:53
@prury
Copy link
Member

prury commented Dec 5, 2023

is it possible for it not to go to the top of the page every time we are messing with the filters?
its also a bit buggy if you chose two filter and scroll down:

collection.filter.mp4

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Dec 5, 2023
@roiLeo
Copy link
Contributor

roiLeo commented Dec 6, 2023

active button should have hover white

link #8362

Comment on lines +589 to +591
.pointer-events-none {
pointer-events: none !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

needed , had to add that , otherwise you could click on the checkbox without triggering the dropdown item select
CleanShot 2023-12-07 at 12 04 47@2x

components/profile/CollectionFilter.vue Outdated Show resolved Hide resolved
components/profile/CollectionFilter.vue Outdated Show resolved Hide resolved
components/profile/CollectionFilter.vue Outdated Show resolved Hide resolved
components/profile/CollectionFilter.vue Outdated Show resolved Hide resolved
@hassnian
Copy link
Contributor Author

@prury try again thanks

@hassnian hassnian closed this Dec 12, 2023
@hassnian hassnian reopened this Dec 12, 2023
@prury
Copy link
Member

prury commented Dec 12, 2023

oh, its getting nice!

  • i would try to take care of horizontal scroll:
    image

  • filtering only works first time, if you try to filter again nothing happens

  • after refreshing or changing network filters stay on, maybe clear they?

  • maybe center modal on mobile:

image

*can make followup if its too much

@hassnian
Copy link
Contributor Author

@prury

  • filtering only works first time, if you try to filter again nothing happens

not sure if fixed or not, couldn't reproduce it

  • after refreshing or changing network filters stay on, maybe clear they?

fixed

neo dropdown issues

  • i would try to take care of horizontal scroll:
    image
  • maybe center modal on mobile:

image

these two are specific of the dropdown component itself

*can make followup if its too much

yes please , create a new issue so we can address them separately.

thanks

@prury
Copy link
Member

prury commented Dec 13, 2023

@prury

  • filtering only works first time, if you try to filter again nothing happens

this one we will have to fix here, otherwise it will introduce bug since its working properly on canary
(sorting only works after you reload collections)

sortbug.mp4

@reviewpad reviewpad bot added large Pull request is large and removed medium Pull request is medium labels Dec 14, 2023
@hassnian
Copy link
Contributor Author

@prury

  • filtering only works first time, if you try to filter again nothing happens

this one we will have to fix here, otherwise it will introduce bug since its working properly on canary (sorting only works after you reload collections)

yes absolutely , fixed try again thanks

yes please , create a new issue so we can address them separately.

I was referring to this

these two are specific of the dropdown component itself

@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 Dec 14, 2023
@yangwao
Copy link
Member

yangwao commented Dec 16, 2023

@hassnian let's resolve conflicts and we will merge it

Thanks!
pay 50 usd

@yangwao
Copy link
Member

yangwao commented Dec 16, 2023

😍 Perfect, I’ve sent the payout
💵 $50 @ 7.27 USD/DOT ~ 6.878 $DOT
🧗 13QUj3pZyFNfYj4AM336hRdyLQbevj5H3sR4PKmLEXLdwZhh
🔗 0x58f8311fafb17a0bab4fdd13f753c0a7e43d05c5b1a9ad89f73aa6b89eaa2530

🪅 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 Dec 16, 2023
@hassnian
Copy link
Contributor Author

ready

Copy link

codeclimate bot commented Dec 16, 2023

Code Climate has analyzed commit 1292ab4 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@yangwao
Copy link
Member

yangwao commented Dec 16, 2023

pleasure! thank you!

@yangwao yangwao merged commit 8fa72c4 into kodadot:main Dec 16, 2023
15 of 16 checks passed
@hassnian hassnian deleted the issue-8384 branch December 16, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large Pull request is large paid pull-request has been paid S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collection filtering on top of profile
7 participants