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

Fabo/1171 Validator Profile #1317

Merged
merged 20 commits into from
Sep 19, 2018
Merged

Fabo/1171 Validator Profile #1317

merged 20 commits into from
Sep 19, 2018

Conversation

faboweb
Copy link
Collaborator

@faboweb faboweb commented Sep 14, 2018

Closes #1171

New:
image

❤️ Thank you!

@faboweb faboweb changed the title Fabo/1171 Validator Profile WIP: Fabo/1171 Validator Profile Sep 17, 2018
@faboweb faboweb changed the title WIP: Fabo/1171 Validator Profile Fabo/1171 Validator Profile Sep 18, 2018
@@ -247,7 +247,6 @@ export default {
}
},
validatorTitle(validator) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be a computed property instead as opposed to a method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will probably remove it

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

tested ACK. We need to change the validator.owner for the pub_key and show the website mostly. Left other questions that can be migrated to a separate PR/issues

app/src/renderer/components/staking/PageValidator.vue Outdated Show resolved Hide resolved
span.validator-profile__status(v-bind:class="statusColor" v-tooltip.top="status")
.validator-profile__header__name__title {{ validatorTitle(validator) }}
//- TODO replace with address component when ready
anchor-copy.validator-profile__header__name__address(:value="validator.owner" :label="shortAddress(validator.owner)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's display the full address here, we have enough space to show it

Copy link
Collaborator

Choose a reason for hiding this comment

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

no i don't think that's a good idea. the validator profile is like a blown up version of the validator Li - i want to keep it for consistency and familiarity. the form below (validator details) should show the full address.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jbibla we're not showing the address below, only the pub_key

.column
div.validator-profile__status-and-title
span.validator-profile__status(v-bind:class="statusColor" v-tooltip.top="status")
.validator-profile__header__name__title {{ validatorTitle(validator) }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get rid of the ... - (address) please ? I don't see a point on keeping it since we're already showing the validator's owner address

Copy link
Collaborator

Choose a reason for hiding this comment

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

no i don't think that's a good idea. the validator profile is like a blown up version of the validator Li - i want to keep it for consistency and familiarity. the form below (validator details) should show the full address.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fede meant the suffix after the title. For consistency with the LiValidator I removed it.

Copy link
Contributor

@fedekunze fedekunze Sep 19, 2018

Choose a reason for hiding this comment

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

According to the designs we shouldn't be showing the - (address) ...

dd n/a
dl.info_dl
dt Details
dd.info_dl__text-box {{validator.description.details || 'n/a'}}
Copy link
Contributor

Choose a reason for hiding this comment

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

@faboweb I think we should definitely add the validator website on another box as well

Copy link
Contributor

Choose a reason for hiding this comment

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

also let's change all the [do-not-modify] cases to n/a

Copy link
Collaborator

@jbibla jbibla Sep 18, 2018

Choose a reason for hiding this comment

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

i don't think we should add the website as a form element in the second box. the designs have an icon for visiting the website beside the moniker.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think an icon alone is self explanatory. We can have both. I will add it and we can remove it later again.

Copy link
Contributor

Choose a reason for hiding this comment

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

the designs have an icon for visiting the website beside the moniker.

Ohh that's the website ? can we change it for this icon then ?

image

@codecov
Copy link

codecov bot commented Sep 19, 2018

Codecov Report

Merging #1317 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1317      +/-   ##
===========================================
+ Coverage    97.34%   97.37%   +0.02%     
===========================================
  Files           82       82              
  Lines         1622     1639      +17     
  Branches        75       84       +9     
===========================================
+ Hits          1579     1596      +17     
  Misses          37       37              
  Partials         6        6
Impacted Files Coverage Δ
app/src/renderer/components/common/TmBalance.vue 100% <ø> (ø) ⬆️
app/src/renderer/connectors/lcdClientMock.js 99.18% <ø> (-0.01%) ⬇️
app/src/renderer/components/common/VmToolBar.vue 100% <ø> (ø) ⬆️
...pp/src/renderer/components/staking/LiValidator.vue 100% <100%> (ø)
.../src/renderer/components/staking/PageValidator.vue 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/delegates.js 100% <100%> (ø) ⬆️
app/src/renderer/scripts/common.js 100% <100%> (ø) ⬆️
...pp/src/renderer/components/staking/PageStaking.vue 100% <100%> (ø) ⬆️

@faboweb
Copy link
Collaborator Author

faboweb commented Sep 19, 2018

Updated screenshot

fedekunze
fedekunze previously approved these changes Sep 19, 2018
Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

tested ACK

@fedekunze fedekunze merged commit 70b27f7 into develop Sep 19, 2018
@fedekunze fedekunze deleted the fabo/1171-validator-profile branch September 19, 2018 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new UI For validator profile
3 participants