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

Jordan/1866 blocks #1933

Merged
merged 27 commits into from
Feb 12, 2019
Merged

Jordan/1866 blocks #1933

merged 27 commits into from
Feb 12, 2019

Conversation

jbibla
Copy link
Collaborator

@jbibla jbibla commented Feb 6, 2019

closes #1744 - bringing explorer back to voyager
closes #1866 - added blocks to page network
closes #1867 - added block page
closes #1784 - removed links to external explorer

❤️ Thank you!

screen shot 2019-02-11 at 3 32 03 pm

screen shot 2019-02-11 at 3 32 17 pm


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

@sabau
Copy link
Contributor

sabau commented Feb 8, 2019

oops

closes #1744 - bringing explorer back to voyager
closes #1866 - added blocks to page network
closes #1867 - added block page with back and forward buttons
closes #1784 - removed links to external explorer

@codecov
Copy link

codecov bot commented Feb 8, 2019

Codecov Report

Merging #1933 into develop will increase coverage by 0.08%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1933      +/-   ##
===========================================
+ Coverage     95.1%   95.18%   +0.08%     
===========================================
  Files          120      121       +1     
  Lines         2593     2618      +25     
  Branches       122      122              
===========================================
+ Hits          2466     2492      +26     
+ Misses         117      116       -1     
  Partials        10       10
Impacted Files Coverage Δ
app/src/renderer/components/staking/PanelSort.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/wallet/LiCoin.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/common/TmPage.vue 100% <ø> (ø) ⬆️
app/src/renderer/components/network/PageBlock.vue 100% <100%> (ø)
.../renderer/components/common/TmConnectedNetwork.vue 100% <100%> (+10%) ⬆️
app/src/renderer/vuex/modules/blocks.js 100% <100%> (ø) ⬆️
...nderer/components/transactions/TmLiTransaction.vue 100% <100%> (ø) ⬆️
...pp/src/renderer/components/network/PageNetwork.vue 100% <100%> (ø) ⬆️
app/src/renderer/vuex/getters.js 94.23% <100%> (+0.23%) ⬆️
app/src/renderer/connectors/lcdClient.js 100% <100%> (ø) ⬆️
... and 1 more

@jbibla jbibla changed the title [WIP] Jordan/1866 blocks Jordan/1866 blocks Feb 8, 2019
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.

nice ! can you also provide some screenshots on the description ?

app/src/renderer/routes.js Outdated Show resolved Hide resolved
app/src/renderer/vuex/modules/blocks.js Show resolved Hide resolved
<td>{{ precommit.validator_address }}</td>
<td>
{{
moment(precommit.timestamp).format(
Copy link
Contributor

Choose a reason for hiding this comment

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

same as up, would be nicer to have the formatting logic coded only once

Copy link
Contributor

Choose a reason for hiding this comment

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

👀

return moment(this.time).format(`MMM Do YYYY, HH:mm:ss`)
const time = moment(this.time)
return time.format(
`${moment().isSame(time, `day`) ? `` : `MMM Do YYYY `}HH:mm:ss`
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a test for showing the result when it's not the same day?

Copy link
Contributor

@sabau sabau Feb 12, 2019

Choose a reason for hiding this comment

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

As for now nothing else than a snapshot that look only at the same day version, and not the other one.
We should add a tiny test on this, I'll push it here ok?

what if we move this into app/src/renderer/scripts/time.js (other PR maybe)

Copy link
Contributor

Choose a reason for hiding this comment

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

Just added the test (I had to merge develop to have Date working)

@@ -47,7 +47,10 @@ export default {
},
computed: {
date() {
return moment(this.time).format(`MMM Do YYYY, HH:mm:ss`)
const time = moment(this.time)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you move everything to this destructuring should you here also use date({ time } = this) {.

Copy link
Contributor

Choose a reason for hiding this comment

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

  • makes the test on this sweetier

Copy link
Contributor

@sabau sabau left a comment

Choose a reason for hiding this comment

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

Party Block time

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.

block party time ~ O ~

@fedekunze fedekunze merged commit 1237c74 into develop Feb 12, 2019
@fedekunze fedekunze deleted the jordan/1866-blocks branch February 12, 2019 17:17
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.

Explorer: Block Detail Explorer: Blocks page Remove links to Explorer for now Explorer in Voyager
4 participants