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

fix: collection search no result #7581

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

newraina
Copy link
Member

@newraina newraina commented Oct 10, 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

After fix:

CleanShot.2023-10-10-yOs3YhrI.mp4

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

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; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at 4d5199f

Refactored search suggestion component to use Vue 3 refs for better reactivity. Fixed ref value access and modification in SearchSuggestion.vue.

🤖 Generated by Copilot at 4d5199f

To make search suggestions more snappy
The coder refactored some refs
But they had to be careful
Not to mess with the value
Or else the rendering would be messy

@newraina newraina requested a review from a team as a code owner October 10, 2023 11:34
@newraina newraina requested review from preschian and daiagi and removed request for a team October 10, 2023 11:34
@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for nuxt-kodadot ready!

Name Link
🔨 Latest commit 4d5199f
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-kodadot/deploys/652536d53a004b00087fed41
😎 Deploy Preview https://deploy-preview-7581--nuxt-kodadot.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 reviewpad bot added small Pull request is small waiting-for-review labels Oct 10, 2023
@reviewpad
Copy link
Contributor

reviewpad bot commented Oct 10, 2023

Reviewpad Report

⚠️ Warnings

  • Please link an issue to the pull request

@reviewpad
Copy link
Contributor

reviewpad bot commented Oct 10, 2023

AI-Generated Summary: This pull request includes changes to the SearchSuggestion.vue component. The changes are primarily to the updateCollectionSuggestion function, where the collectionWithImagesList variable has been changed from a regular array to a reactive reference object using Vue's ref function. This results in updating the array mutation operation and the assignment to collectionResult.value to reflect this change. The intent behind these alterations seems to be to utilize Vue's reactivity system to better manage state within this function.

@sonarcloud
Copy link

sonarcloud bot commented Oct 10, 2023

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
No Duplication information No Duplication information

@roiLeo roiLeo merged commit f9870de into kodadot:nuxt Oct 10, 2023
13 checks passed
@newraina newraina deleted the collection-search branch October 10, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Pull request is small waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants