-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Refactor/decorator2 #6693
Refactor/decorator2 #6693
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request consists of two patches both refactoring Vue.js components to use the Composition API. The first patch refactors the 'TokenBalanceInput' component, getting rid of the previous usage of mixins, modifying the structure of the script block, and creating a new composable 'useAsset' for shared logic. This new composable includes a 'getAssetById' method, which fetches the asset by its ID from the assets store. The second patch refactors the 'MultiPaymentFeeButton' component, once again replacing mixins with the Vue.js Composition API. The component's various properties, including 'tokenId', 'asset', 'unit' and 'url', have been rewritten using 'computed' and 'ref' functions. The method 'fetchCurrency' has also been modified and now it is an async function. Observability on 'accountId' is established using the 'watch' function. The 'fetchCurrency' method is called when the 'accountId' changes. Overall, these changes improve readability, maintainability and promote code reusability across the Vue.js application. |
Reviewpad Report
|
There was a problem hiding this 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, tested on /snek
Co-authored-by: roiLeo <[email protected]>
Co-authored-by: roiLeo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ code lgtm
Code Climate has analyzed commit 4904b61 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@prury can I ask for a recheck one more time if validation works? |
on it! |
Sorry I am not familiar with deepscan very well. Can anyone please explain? I checked components/rmrk/Profile/Sales.vue but i don't know how it is connected with the files in this PR. Or are these issues completely unrelated and you want me to see and fix? @yangwao |
if it does what i think it does (refactor the part related to bsx assets and its balances and also the button to change asset fee on bsx) then it works 😄 https://basilisk.subscan.io/tx/0xd3a89e8a289a56677972b5c8fe600cead5e68df63c9fe7ad3f2cfdbc11821bdc |
I don't understand the basilik scan btw. I just see a couple of transactions being made. I just recently started on this project so need more help @prury, would greatly appreciate if you can explain in more detail Thank you |
pay 50 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
PR Type
Context
Before submitting pull request, please make sure:
Optional
Did your issue had any of the "$" label on it?
Community participation
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at 769abca
Refactored the code for opening the shopping cart modal from the navbar. Moved the logic and configuration from
ShoppingCartModalConfig.ts
andShoppingCartButton.vue
toNavbar.vue
to improve code organization and performance.🤖 Generated by Copilot at 769abca