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

jbibla+fedekunze/1501 Modal Vote #1541

Merged
merged 58 commits into from
Nov 12, 2018
Merged

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Nov 8, 2018

Depends #1531
Closes #1501

Description:

TODO:

  • Modal to vote based on wireframe design
    Link to explain the types of proposals
  • Disable other option buttons if an option is selected and select the clicked button
  • Styling cc: @jbibla
  • Integrate modal with PageProposal
  • E2E tests Add voting to E2E tests #1550

❤️ Thank you!


  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer

@fedekunze fedekunze requested a review from jbibla November 8, 2018 17:28
@fedekunze fedekunze changed the title WIP: jbibla+fedekunze/Modal Vote WIP: jbibla+fedekunze/1501 Modal Vote Nov 8, 2018
@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #1541 into develop will increase coverage by 0.07%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1541      +/-   ##
===========================================
+ Coverage    96.45%   96.52%   +0.07%     
===========================================
  Files           98       99       +1     
  Lines         1833     1872      +39     
  Branches        91       92       +1     
===========================================
+ Hits          1768     1807      +39     
  Misses          55       55              
  Partials        10       10
Impacted Files Coverage Δ
app/src/renderer/vuex/modules/send.js 100% <ø> (ø) ⬆️
app/src/renderer/connectors/lcdClient.js 97.56% <ø> (ø) ⬆️
...rc/renderer/components/governance/PageProposal.vue 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/governance/votes.js 100% <100%> (ø) ⬆️
...p/src/renderer/components/governance/ModalVote.vue 100% <100%> (ø)
app/src/renderer/connectors/lcdClientMock.js 99.45% <100%> (+0.06%) ⬆️


describe(`Modal onVote`, () => {
it(`enables voting if the proposal is Active`, () => {
let status = { button: `vote` }
Copy link
Collaborator

Choose a reason for hiding this comment

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

just thinking: status seems to be a complex object that doesn't seem self explanatory. Maybe we could split the object in a refactor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc: @jbibla ^^

proposal,
status
}
describe(`without magic`, () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool, you got this. :)

it(`fetches all governance proposals`, async () => {
let proposals = lcdClientMock.state.proposals
let proposalsRes = await client.getProposals()
expect(proposalsRes).toBeDefined()
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool safety check

@fedekunze fedekunze changed the title WIP: jbibla+fedekunze/1501 Modal Vote jbibla+fedekunze/1501 Modal Vote Nov 12, 2018
@faboweb faboweb merged commit cdef23b into develop Nov 12, 2018
@faboweb faboweb deleted the jbibla+fedekunze/1501-proposal-voting branch November 12, 2018 10:52
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.

Voting
3 participants