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

Ana/add no proposal history #3198

Merged
merged 9 commits into from
Nov 28, 2019
Merged

Ana/add no proposal history #3198

merged 9 commits into from
Nov 28, 2019

Conversation

Bitcoinera
Copy link
Contributor

Closes #ISSUE

Description:

Integrating the Regen network into the frontend I noticed that there was an issue with the PageProposals component: the banner of "No Governance History" wouldn't be displayed, and the component would just stay blank, due to lack of proposals history.

Luckily I fixed it by removing the PageContainer altogether.

This is the screen as it was before the fix:

image

Thank you! 🚀


For contributor:

  • Added changes entries. Run yarn changelog for a guided process.
  • 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

</div>
</div>
<div v-else-if="!$apollo.loading && proposals.length > 0">
<div class="button-container">
Copy link
Collaborator

Choose a reason for hiding this comment

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

The button is duplicated, can we pull it out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

</div>
<div slot="subtitle">
There are currently no governance proposals to display.
Click the 'Create Proposal' button to submit the first proposal of the network!
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Click the 'Create Proposal' button to submit the first proposal of the network!
Click the 'Create Proposal' button to submit the first network proposal!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The language of Shakespeare and its mysteries...

@@ -1,56 +1,48 @@
<template>
<PageContainer
Copy link
Collaborator

Choose a reason for hiding this comment

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

what was PageContainer doing?

Copy link
Contributor

Choose a reason for hiding this comment

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

what was PageContainer doing?

It was intended to replace TmPage and some of the internals we don't need there anymore.

I assume we will still need TmPage to be present?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think so true. I think it should be like:

<TmPage
  data-title="Proposals"
  :managed="false">
...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I am going to change it

@Bitcoinera
Copy link
Contributor Author

Ok, now it should be good

@Bitcoinera
Copy link
Contributor Author

Oops, I missed the unit tests

@codecov
Copy link

codecov bot commented Nov 27, 2019

Codecov Report

Merging #3198 into develop will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           develop    #3198   +/-   ##
========================================
  Coverage    88.04%   88.04%           
========================================
  Files          126      126           
  Lines         1824     1824           
  Branches       275      275           
========================================
  Hits          1606     1606           
  Misses         211      211           
  Partials         7        7
Impacted Files Coverage Δ
src/components/governance/PageProposals.vue 92.85% <100%> (ø) ⬆️

</div>
</div>
<div v-else-if="!$apollo.loading && proposals.length > 0">
<TmDataLoading v-if="$apollo.loading" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

this contradicts line 31

Copy link
Collaborator

Choose a reason for hiding this comment

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

you can move it up and use a v-else-if

</div>
</div>
<div v-else-if="!$apollo.loading && proposals.length > 0">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<div v-else-if="!$apollo.loading && proposals.length > 0">
<div v-else>

@faboweb faboweb merged commit be29865 into develop Nov 28, 2019
@faboweb faboweb deleted the ana/add-no-proposal-history branch November 28, 2019 11:39
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.

4 participants