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/sign in msg #2151

Merged
merged 13 commits into from
Mar 4, 2019
Merged

Fabo/sign in msg #2151

merged 13 commits into from
Mar 4, 2019

Conversation

faboweb
Copy link
Collaborator

@faboweb faboweb commented Mar 4, 2019

Added a sign in required message
Readded the primary color to buttons.

image

@faboweb faboweb changed the base branch from develop to jordan/1982-session-2.0 March 4, 2019 12:34
@codecov
Copy link

codecov bot commented Mar 4, 2019

Codecov Report

Merging #2151 into jordan/1982-session-2.0 will increase coverage by 0.01%.
The diff coverage is 100%.

@@                     Coverage Diff                     @@
##           jordan/1982-session-2.0    #2151      +/-   ##
===========================================================
+ Coverage                    95.22%   95.23%   +0.01%     
===========================================================
  Files                          106      107       +1     
  Lines                         2261     2266       +5     
  Branches                       111      111              
===========================================================
+ Hits                          2153     2158       +5     
  Misses                          97       97              
  Partials                        11       11
Impacted Files Coverage Δ
app/src/renderer/components/common/TmBtn.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/wallet/PageWallet.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/common/TmDataMsg.vue 100% <ø> (ø) ⬆️
...rc/renderer/components/wallet/PageTransactions.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/common/TmPage.vue 93.75% <100%> (+0.41%) ⬆️
...c/renderer/components/staking/TabMyDelegations.vue 100% <100%> (ø) ⬆️
.../renderer/components/common/CardSignInRequired.vue 100% <100%> (ø)

1 similar comment
@codecov
Copy link

codecov bot commented Mar 4, 2019

Codecov Report

Merging #2151 into jordan/1982-session-2.0 will increase coverage by 0.01%.
The diff coverage is 100%.

@@                     Coverage Diff                     @@
##           jordan/1982-session-2.0    #2151      +/-   ##
===========================================================
+ Coverage                    95.22%   95.23%   +0.01%     
===========================================================
  Files                          106      107       +1     
  Lines                         2261     2266       +5     
  Branches                       111      111              
===========================================================
+ Hits                          2153     2158       +5     
  Misses                          97       97              
  Partials                        11       11
Impacted Files Coverage Δ
app/src/renderer/components/common/TmBtn.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/wallet/PageWallet.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/common/TmDataMsg.vue 100% <ø> (ø) ⬆️
...rc/renderer/components/wallet/PageTransactions.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/common/TmPage.vue 93.75% <100%> (+0.41%) ⬆️
...c/renderer/components/staking/TabMyDelegations.vue 100% <100%> (ø) ⬆️
.../renderer/components/common/CardSignInRequired.vue 100% <100%> (ø)

@@ -17,7 +17,8 @@ const getters = {
committedDelegations: {
},
connected: true,
bondDenom: `stake`
bondDenom: `stake`,
session: { signedIn: true }
Copy link
Contributor

Choose a reason for hiding this comment

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

we should add a snapshot when not signed in

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. tests should move into TmPage (which is barely tested) #2156

@@ -14,7 +14,8 @@
<slot slot="header-buttons" name="header-buttons" />
</tm-page-header>
<main class="tm-page-main">
<template v-if="this.$slots['managed-body']">
<card-sign-in-required v-if="signinRequired && !session.signedIn" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this go inside of the template below with connecting, loading, and error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

either way. I can do it.

@@ -90,6 +93,10 @@ export default {
refresh: {
type: Function,
default: undefined
},
signInRequired: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

thinking ahead a little bit (maybe too far ahead) maybe this should be called addressRequired because soon you will not need to "sign in" or "be signed in" - you will just have to provide an address.

Copy link
Contributor

Choose a reason for hiding this comment

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

although the address will still be provided on the sign in session

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 could go either way

Copy link
Collaborator

Choose a reason for hiding this comment

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

let's merge it for now.

@jbibla jbibla merged commit 2c92ae9 into jordan/1982-session-2.0 Mar 4, 2019
@faboweb faboweb deleted the fabo/sign-in-msg branch March 4, 2019 17:17
@faboweb
Copy link
Collaborator Author

faboweb commented Mar 4, 2019

Some things were missing. Will add them to your PR

@jbibla jbibla mentioned this pull request Mar 4, 2019
5 tasks
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.

3 participants