-
-
Notifications
You must be signed in to change notification settings - Fork 347
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: #4302 add wallet name #4476
fix: #4302 add wallet name #4476
Conversation
SUCCESS @petersopko PR for issue #4302 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime! |
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
one thing left when it comes to functionality: changing wallet doesn't update the name in the dropdown, it updates only after refreshing the page. I've spent some time on how to do this and I have only stupid ideas, I'd appreciate some hints here 🥺 |
@exezbcz btw, I have included your comments regarding the dividers etc., one question tho, shouldn't the blue color change on hover? I couldn't figure it out from the design. |
yup, we can add this color on hover, it isnt in the handoff files yet. Working file is a mess :D Visit only the handoffs |
# Conflicts: # components/navbar/ProfileDropdown.vue
This reverts commit 408bd5f.
oh okay, that's actually unrelated to this PR, also on beta, and caused by recent one here: @daiagi would you please create supplemental PR to your fix, so it doesn't break identity? I've reverted it and it works, it seems that |
utils/coingecko.ts
Outdated
@@ -26,6 +26,21 @@ export const getKsmPrice = async (): Promise<void> => { | |||
} | |||
} | |||
|
|||
export const getBsxPrice = async (): Promise<void> => { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
needs some more styling + storing basilisk/usd price (hopefully tomorrow evening). @yangwao when it comes to USD price previews, basilisk is listed on coingecko, but not sure about tnkr, do we want to show that here? maybe hide tnkr for now ? |
oh good catch, my bad 🧐 haven't tested it properly everywhere
ah yes if price is not available we will be showing iirc "--" in current design. yes lot of tokens on lbp at some extent won't have USD price |
let's refactor utils and let's go? |
working on it, for some reason I can't fetch my KSM balance on RMRK. Doesn't work on kodadot.xyz, beta or local, idk. |
}, | ||
} | ||
|
||
export const actions: ActionTree<WalletState, WalletState> = { |
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.
Similar blocks of code found in 3 locations. Consider refactoring.
getWalletName: ({ wallet }: any) => wallet.name, | ||
} | ||
|
||
export const mutations: MutationTree<WalletState> = { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
|
||
export type WalletState = ReturnType<typeof state> | ||
|
||
export const getters: GetterTree<WalletState, WalletState> = { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
Code Climate has analyzed commit 358fba5 and detected 5 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
currently testable at snek/bsx with various wallets. todo:
|
@petersopko
same here |
I have solved issue with reactive wallet name by storing the wallet name in store, which is reactive when accessed through getters in components, i.e.
|
<Identity | ||
:address="account" | ||
class="navbar__address is-size-6" | ||
hide-identity-popover /> | ||
</b-dropdown-item> | ||
|
||
<hr class="dropdown-divider mx-4" aria-role="menuitem" /> |
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.
I personally would not have moved <hr />
tags to component
<th class="has-text-grey">Asset</th> | ||
<th class="has-text-grey">Balance</th> |
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.
<th class="has-text-grey">Asset</th> | |
<th class="has-text-grey">Balance</th> | |
<th class="has-text-grey">{{ $t('assets') }}</th> | |
<th class="has-text-grey">{{ $t('general.balance') }}</th> |
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.
would it be possible to move this file outside `/rmrk' folder?
I thought that's what was in design, so it should be just
Not mergeable yet, please let me implement feedback by @roiLeo 🙏🏻 and clean up a little. |
yes |
"asset": "Asset", | ||
"balance": "Balance", | ||
"noAssets": "There are currently no assets in this wallet." |
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.
I would move asset & noAssets in
"general": { ... }
Seems https://github.com/kodadot/nft-gallery/pull/4476/files#diff-a4a33e7ecfb7969dbf41700112aa3cf6f2880fe4a397f3faececd4a001e67384 is copy of https://github.com/kodadot/nft-gallery/blob/main/components/bsx/Asset/AssetList.vue ? I mean, I'm a bit against copying functions over file and duplicating code. I'm merging it because this was the very last issue to have it released; otherwise, I dislike the code approach ignoring DRY approach. pay 60 USD |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
I'm not too fond of the state in which it got merged in either, and I wish I had time to clean up/finish. Maybe next time :) |
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot 📸
KodaDot.-.Kusama.NFT.Market.Explorer._.Low.Carbon.NFTs.-.Google.Chrome.2022-12-11.12-57-54.mp4