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/gov fixes #2167

Merged
merged 18 commits into from
Mar 6, 2019
Merged

Fabo/gov fixes #2167

merged 18 commits into from
Mar 6, 2019

Conversation

faboweb
Copy link
Collaborator

@faboweb faboweb commented Mar 5, 2019

Closes #1875
Closes #1876

Description:

Thank you! 🚀


For contributor:

  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer
  • Attach screenshots of the UI components on the PR description (if applicable)
  • Scope of work approved for big PRs

For reviewer:

  • Manually tested the changes on the UI

@faboweb faboweb changed the title Fabo/gov fixes WIP Fabo/gov fixes Mar 5, 2019
@fedekunze fedekunze mentioned this pull request Mar 5, 2019
5 tasks
@faboweb faboweb changed the title WIP Fabo/gov fixes Fabo/gov fixes Mar 5, 2019
@codecov
Copy link

codecov bot commented Mar 5, 2019

Codecov Report

Merging #2167 into develop will decrease coverage by 0.74%.
The diff coverage is 47.05%.

@@             Coverage Diff             @@
##           develop    #2167      +/-   ##
===========================================
- Coverage    95.52%   94.78%   -0.75%     
===========================================
  Files          108      108              
  Lines         2278     2299      +21     
  Branches       115      115              
===========================================
+ Hits          2176     2179       +3     
- Misses          94      111      +17     
- Partials         8        9       +1
Impacted Files Coverage Δ
.../src/renderer/components/staking/PageValidator.vue 98.75% <ø> (ø) ⬆️
app/src/renderer/vuex/modules/governance/votes.js 100% <ø> (ø) ⬆️
...p/src/renderer/components/governance/ModalVote.vue 86.66% <0%> (-13.34%) ⬇️
...rc/renderer/components/governance/ModalPropose.vue 85.71% <0%> (-14.29%) ⬇️
.../renderer/components/staking/UndelegationModal.vue 83.33% <0%> (-16.67%) ⬇️
app/src/renderer/components/wallet/SendModal.vue 76.47% <0%> (-7.41%) ⬇️
...rc/renderer/components/staking/DelegationModal.vue 88.88% <0%> (-11.12%) ⬇️
...rc/renderer/components/governance/ModalDeposit.vue 91.3% <0%> (-8.7%) ⬇️
...rc/renderer/components/governance/PageProposal.vue 97.77% <100%> (ø) ⬆️
...p/src/renderer/vuex/modules/governance/deposits.js 100% <100%> (ø) ⬆️
... and 4 more

@codecov
Copy link

codecov bot commented Mar 5, 2019

Codecov Report

Merging #2167 into develop will increase coverage by <.01%.
The diff coverage is 97.22%.

@@             Coverage Diff             @@
##           develop    #2167      +/-   ##
===========================================
+ Coverage    95.52%   95.52%   +<.01%     
===========================================
  Files          108      108              
  Lines         2278     2301      +23     
  Branches       115      114       -1     
===========================================
+ Hits          2176     2198      +22     
- Misses          94       95       +1     
  Partials         8        8
Impacted Files Coverage Δ
.../src/renderer/components/staking/PageValidator.vue 98.75% <ø> (ø) ⬆️
app/src/renderer/vuex/modules/governance/votes.js 100% <ø> (ø) ⬆️
...rc/renderer/components/governance/PageProposal.vue 97.77% <100%> (ø) ⬆️
...p/src/renderer/components/governance/ModalVote.vue 100% <100%> (ø) ⬆️
.../renderer/components/governance/TableProposals.vue 100% <100%> (ø) ⬆️
...p/src/renderer/vuex/modules/governance/deposits.js 100% <100%> (ø) ⬆️
app/src/renderer/components/common/ActionModal.vue 100% <100%> (ø) ⬆️
...rc/renderer/components/governance/ModalPropose.vue 100% <100%> (ø) ⬆️
.../src/renderer/components/governance/LiProposal.vue 100% <100%> (ø) ⬆️
.../renderer/components/staking/UndelegationModal.vue 100% <100%> (ø) ⬆️
... and 4 more

jbibla
jbibla previously approved these changes Mar 5, 2019
Co-Authored-By: faboweb <[email protected]>
jbibla
jbibla previously approved these changes Mar 5, 2019
@fedekunze
Copy link
Contributor

coverage missing

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.

There's a small bug when you deposit that shows an error on the modal (too quick to screenshot):

Steps to reproduce:

  • Create proposal with amount 0.5
  • Deposit on same proposal with 0.5 (i.e min_deposit - initial_deposit )

@faboweb
Copy link
Collaborator Author

faboweb commented Mar 6, 2019

@fedekunze I think the case is:

  • create proposal with less then needed deposit
  • click on the proposal before the next block (optimistic entry into the proposals list)

@fedekunze
Copy link
Contributor

create proposal with less then needed deposit

That's not the case because the tx is submitted successfully

@faboweb
Copy link
Collaborator Author

faboweb commented Mar 6, 2019

hmm might have to do with the submissionError timeout. very strange. let's handle in another PR.

@fedekunze
Copy link
Contributor

ok, let's create a tracking issue for it then

@jbibla jbibla merged commit 8b09ded into develop Mar 6, 2019
@jbibla jbibla deleted the fabo/gov-fixes branch March 6, 2019 13:44
jbibla pushed a commit that referenced this pull request Mar 7, 2019
* remove modals

* tests

* cha cha cha

* refactored delegation modal tests

* removed the "to" field on undelegation action modals

* updated undelegation modal msg

* lint

* Fabo/gov fixes (#2167)

* defensive programming

* fixed

* fixed sorting

* optimistic updates

* modals clear forms correctly

* fedes changes

* fixed tests

* fixed more tests

* changelog

* coverage

* Update CHANGELOG.md

Co-Authored-By: faboweb <[email protected]>

* added coverage

* added optimistic updates for proposal creation

* Jordan/2161 fixed positioning of status dot (#2172)

* fixed positioning of status dot

* fix for validator profile status

* removed arrows from buttons, updated snaperoos

* reduce margin on page validator avatar

* Update CHANGELOG.md

Co-Authored-By: jbibla <[email protected]>

* added cosmoswallet config file

* Update CHANGELOG.md

* Fabo/2195 fix wrong amount on undelegation modal (#2196)

* defensive programming

* done

* fixed tests

* removed old fix

* Fabo/2193 hide import (#2194)

* defensive programming

* hide import

* changelog

* tests

* Fabo/1884 bring back e2e tests (#2140)

* added nightwatch

* changelog

* direct to the correct endpoints

* fixed setup and import key

* reenable e2e

* fixed yaml

* switch workspace path

* change workspace

* playing with paths

* paths

* paths

* paths

* paths

* cache bust

* fix build script

* fix build

* only copy if build

* try fixing glob test

* attach correct workspace

* correct paths

* test without localstorage

* serve build files for e2e tests

* require build

* run http-server in parallel

* fix paths

* updated readme

* cleanup

* cleanup

* linted

* Bump version for release.
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.

Optimistic updates: Proposal deposits Optimistic updates: Proposal creation
3 participants