-
Notifications
You must be signed in to change notification settings - Fork 98
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
Billy/1053 balance header #1188
Conversation
locally on the
@faboweb could this have to do with the new multiple validator testing setup? on circleci the log says:
|
… into billy/1053-balance-header
Codecov Report
@@ Coverage Diff @@
## develop #1188 +/- ##
===========================================
+ Coverage 95.86% 95.89% +0.02%
===========================================
Files 80 81 +1
Lines 1598 1608 +10
Branches 75 75
===========================================
+ Hits 1532 1542 +10
Misses 60 60
Partials 6 6
|
add config for disabling feature |
What does |
.h2 {{totalRewards}} | ||
router-link(to="claim") Claim | ||
.bottom | ||
.address(@click="copy") {{address}} |
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.
Should this be it's own component?
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.
is it used anywhere else?
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.
Not yet. OK, we can extract it later.
package.json
Outdated
@@ -98,7 +98,7 @@ | |||
"webpack-dev-server": "2.11.2" | |||
}, | |||
"dependencies": { | |||
"@tendermint/ui": "0.2.20", | |||
"@tendermint/ui": "https://github.com/tendermint/ui.git#5493de3544dae62dfd8f8cc565076a2f161ce909", |
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.
Let's wait for a release to merge.
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.
sounds good
test/e2e/common.js
Outdated
try { | ||
await app.client.waitUntilTextExists(".tm-page-header-title", titleText) | ||
} catch (error) { | ||
console.log("failed trying to navigate to " + titleText) |
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.
Can you add a comment on why we need to check for errors here?
@@ -0,0 +1,3 @@ | |||
// Jest Snapshot v1, https://goo.gl/fbAQLP | |||
|
|||
exports[`VmToolBar has the expected html structure 1`] = `"<div class=\\"tm-tool-bar\\"><div class=\\"tm-tool-bar-container\\"><div class=\\"main\\"><a disabled=\\"disabled\\" class=\\"back\\"><i class=\\"material-icons\\">arrow_back</i></a><a class=\\"help\\"><i class=\\"material-icons\\">help_outline</i></a><a href=\\"#/preferences\\" class=\\"settings\\"><i class=\\"material-icons\\">settings</i></a><a id=\\"signOut-btn\\"><i class=\\"material-icons\\">exit_to_app</i></a></div></div></div>"`; |
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.
Can we format the output to better readable?
|
||
exports[`TmBalance has the expected html structure before adding props 1`] = `"<div class=\\"header-balance\\"><div class=\\"top\\"><img src=\\"~assets/images/cosmos-logo.png\\" class=\\"icon\\"><div class=\\"total-atoms\\"><div class=\\"h3\\">Total Steak</div><div class=\\"h2\\">321</div></div><!----><!----><!----></div><div class=\\"bottom\\"><div class=\\"address\\">useraddress16876876876876876786876876876876876</div><div class=\\"success\\"><i class=\\"material-icons\\">check</i><span>Copied</span></div></div></div>"`; | ||
|
||
exports[`TmBalance shows correct stats depending on props 1`] = `"<div class=\\"header-balance\\"><div class=\\"top\\"><img src=\\"~assets/images/cosmos-logo.png\\" class=\\"icon\\"><div class=\\"total-atoms\\"><div class=\\"h3\\">Total Steak</div><div class=\\"h2\\">321</div></div><div class=\\"unstaked-atoms\\"><div class=\\"h3\\">Unstaked Steak</div><div class=\\"h2\\">1337</div></div><div class=\\"total-earnings\\"><div class=\\"h3\\">Total Earnings</div><div class=\\"h2\\">1337</div></div><div class=\\"total-rewards\\"><div class=\\"h3\\">Total Rewards</div><div class=\\"group\\"><div class=\\"h2\\">1337</div><a href=\\"#/claim\\" class=\\"\\">Claim</a></div></div></div><div class=\\"bottom\\"><div class=\\"address\\">useraddress16876876876876876786876876876876876</div><div class=\\"success\\"><i class=\\"material-icons\\">check</i><span>Copied</span></div></div></div>"`; |
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.
Can we format the outputs to better readable?
@Fabo |
Just |
I will get npm publish rights soon ;) |
Closes #1053
Description:
Added the new header style to the wallet balance page. Needed to make some updates to tendermint/cosmos-ui#62 as well.
Including:
Not sure if this should be merged into our develop branch or if we should be implementing all these larger layout changes into a single branch and then merge them all in at once for consistency in style.
Using the new header on other pages should follow this format in front of the menu slot:
Where
unstakedAtoms
,totalRewards
&totalEarnings
are strings that only show if they're truthy.also update TmToolBar to consistent naming of VmToolBar do differentiate from the ui library TmToolBar