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

update design and default values #26

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions _data/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of the minority consensus clients.
default_value: 59.57
default_value: 55.28
danger_value: 34
goal_value: 67
target_value: 55
target_date: Jul 2022
influence: 1
data_name: Blockprint
data_link: https://github.com/sigp/blockprint
data_sources:
- blockprint-consensus-diversity
- migalabs-consensus-diversity
Expand All @@ -54,12 +56,14 @@
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of the minority execution clients.
default_value: 16.26
default_value: 19.46
danger_value: 34
goal_value: 67
target_value: 20
target_date: Jul 2022
influence: 1
data_name: Ethernodes
data_link: https://ethernodes.org/
data_sources:
- ethernodes-execution-diversity
- title: Consensus Client Count
Expand All @@ -75,6 +79,8 @@
target_value:
target_date:
influence: 1
data_name: Ethereum.org
data_link: http://ethereum.org/
data_sources:
- title: Execution Client Count
id: execution-clients
Expand All @@ -89,19 +95,23 @@
target_value:
target_date:
influence: 1
data_name: Ethereum.org
data_link: http://ethereum.org/
data_sources:
- title: Non-Hosted Validator Marketshare
id: hosted-validators
disabled: false
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of nodes not operating out of data centers.
default_value: 41.9
default_value: 75.07
danger_value: 30
goal_value: 60
target_value: 50
target_date: Jul 2022
influence: 1
data_name: Node Watch
data_link: https://nodewatch.io/
data_sources:
- nodewatch-hosted-validators
- title: Geolocation Diversity
Expand All @@ -110,12 +120,14 @@
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of validators not operating in the country with the highest validator count (i.e. 100% - [% of validators in a single country]).
default_value: 50.21
default_value: 49.67
danger_value: 33
goal_value: 66
target_value: 50
target_date: Jul 2022
influence: 1
data_name: Node Watch
data_link: https://nodewatch.io/
data_sources:
- nodewatch-geolocation
- title: Staking Pool Diversity
Expand All @@ -124,12 +136,14 @@
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of staking pool validators not operated by the top pool.
default_value: 59.25
default_value: 53.6
danger_value: 80
goal_value: 90
target_value: 75
target_date: Jul 2022
influence: 1
data_name: Rated Network
data_link: https://rated.network/
data_sources:
- ratednetwork-pool-diversity
- title: Non-Pool Validator Marketshare
Expand All @@ -138,12 +152,14 @@
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of validators not operated by pools.
default_value: 30.92
default_value: 33.66
danger_value: 30
goal_value: 70
target_value: 50
target_date: Jul 2022
influence: 1
data_name: Rated Network
data_link: https://rated.network/
data_sources:
- ratednetwork-pool-validators
- title: Staking Entity Diversity
Expand All @@ -152,12 +168,14 @@
modal_enabled: true
tooltip_enabled: true
tooltip_text: This metric shows the percent marketshare of validators not operated by the top entity (DAO, protocol, solo operator, nation-state, etc).
default_value: 68.94
default_value: 69.17
danger_value: 80
goal_value: 90
target_value: 75
target_date: Jul 2022
influence: 1
data_name: Rated Network
data_link: https://rated.network/
data_sources:
- ratednetwork-staking-diversity
- title: Decentralized Stablecoin Marketshare
Expand All @@ -172,6 +190,8 @@
target_value:
target_date:
influence: 1
data_name:
data_link:
data_sources:
# -
- title: Stablecoin Diversity
Expand All @@ -186,5 +206,7 @@
target_value:
target_date:
influence: 1
data_name:
data_link:
data_sources:
# -
26 changes: 19 additions & 7 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ layout: default
<!-- Card Body -->
<div class="card-body d-flex flex-column">
<div class="row flex-grow-1">
<!-- Title & Tooltip -->
<div class="col-12 col-sm-8 col-xl-9">
<div class="d-flex justify-content-between">
<!-- Title & Tooltip -->
<h5 class="card-title">
{{metric.title}}
{%- if metric.tooltip_enabled and metric.tooltip_text -%}
Expand All @@ -75,10 +75,16 @@ layout: default
</span>
{%- endif -%}
</h5>
<!-- Twitter Share -->
{%- if metric.disabled == false -%}
<a class="tweet-link text-decoration-none me-1" onclick="createTweet('{{metric.id}}')">
{{site.data.icons.twitter}}
</a>
{%- endif -%}
</div>
<!-- Source Select/Dropdown -->
<div class="d-none d-sm-inline col-4 col-xl-3 {{hide}}">
<div class="form-floating">
<div class="d-none form-floating">
{%- if metric.data_sources.size > 1 -%}
<select id="select-{{metric.id}}" class="form-select form-select-sm" aria-label="data source select" onchange='getData("{{metric.id}}", this.value, {{metric.default_value}}).then(updateProgressBar)'>
{%- for source in metric.data_sources -%}
Expand Down Expand Up @@ -108,7 +114,7 @@ layout: default
{%- assign percent = "" -%}
{%- endif -%}
{%- if metric.target_value -%}
<label class="progress-label fw-normal small">
<label class="d-none progress-label fw-normal small">
Target: {{metric.target_value}}{{percent}}
{%- if metric.target_date -%}
<span class="d-none d-xl-inline ms-1">by {{metric.target_date}}</span>
Expand Down Expand Up @@ -181,9 +187,15 @@ layout: default
<a class="btn btn-sunshine text-dark btn-sm {{hide}}" data-bs-toggle="modal" data-bs-target="#modal-{{metric.id}}">Take Action!</a>
{%- endif -%}
{%- if metric.disabled == false -%}
<a class="tweet-link text-decoration-none mt-1 me-1" onclick="createTweet('{{metric.id}}')">
{{site.data.icons.twitter}}
</a>
{%- if metric.data_name and metric.data_link -%}
<small class="mt-2 text-muted">
<small>
Source:
<a href="{{metric.data_link}}" class="text-muted">{{metric.data_name}}</a>
<!-- <a href="{{metric.data_link}}" class="text-muted">Data Source</a> -->
</small>
</small>
{%- endif -%}
{%- endif -%}
</div>
</div>
Expand Down