Skip to content

Commit

Permalink
Change size radar labels (#696)
Browse files Browse the repository at this point in the history
* Publish changes to prod  (#566)

* avoid statefulsets update errors on actions runs refs #535. (#536)

* deprecate demux service. refs #538 (#540)

* add handler url from env var & other minor bug fixes (#542)

* Add missing env var to config map (#543)

* add handler url from env var & other minor bug fixes

* add missing env var

* fix: update some env vars

* fix: update some env vars

* fix: replace .env values with the previous ones

* Feat/add tx link (#545)

* feat: add tx link

* feat: remove secrets

* setup env workflow (#546)

* wip

* wip: add env files & db_data to .gitignore

* fix: remove .env files

* fix: remove .env files

* fix: delete unnecessary code

* refactor: remove unnecessary code

* fix: minimal

* Fix/rate action buttons not showing (#547)

* wip

* wip: add env files & db_data to .gitignore

* fix: remove .env files

* fix: remove .env files

* fix: delete unnecessary code

* refactor: remove unnecessary code

* fix: minimal

* fix: rate buttons not showing in certains densities

* Fix/hasura console config (#556)

* Deploy to mainnet (#544)

* avoid statefulsets update errors on actions runs refs #535. (#536)

* deprecate demux service. refs #538 (#540)

* add handler url from env var & other minor bug fixes (#542)

* Add missing env var to config map (#543)

* add handler url from env var & other minor bug fixes

* add missing env var

* fix: update some env vars

* fix: update some env vars

* fix: replace .env values with the previous ones

Co-authored-by: Andres Gomez <[email protected]>
Co-authored-by: JustinCast <[email protected]>

* wip

* wip: add env files & db_data to .gitignore

* fix: remove .env files

* fix: remove .env files

* fix: delete unnecessary code

* refactor: remove unnecessary code

* fix: minimal

* feat: voting tool revamp

* fix: remove comments

* fix: add i18n entries

* fix: bug fixes

* fix: hasura console config

Co-authored-by: Xavier <[email protected]>
Co-authored-by: Andres Gomez <[email protected]>

* Fix/add missing i18n entries (#554)

* Deploy to mainnet (#544)

* avoid statefulsets update errors on actions runs refs #535. (#536)

* deprecate demux service. refs #538 (#540)

* add handler url from env var & other minor bug fixes (#542)

* Add missing env var to config map (#543)

* add handler url from env var & other minor bug fixes

* add missing env var

* fix: update some env vars

* fix: update some env vars

* fix: replace .env values with the previous ones

Co-authored-by: Andres Gomez <[email protected]>
Co-authored-by: JustinCast <[email protected]>

* wip

* wip: add env files & db_data to .gitignore

* fix: remove .env files

* fix: remove .env files

* fix: delete unnecessary code

* refactor: remove unnecessary code

* fix: minimal

* feat: voting tool revamp

* fix: remove comments

* fix: add i18n entries

* fix: bug fixes

Co-authored-by: Xavier <[email protected]>
Co-authored-by: Andres Gomez <[email protected]>

* docs: add env example (#565)

* fix: not able to sync proxies locally (#564)

* fix: update hasura version

* fix: hasura version && other minor bug fixes

* Fix/update hasura version (#567)

* fix: remove build:staging statement

* latest changes

Co-authored-by: Andres Gomez <[email protected]>
Co-authored-by: JustinCast <[email protected]>

* Update push-master-environment.yaml (#576)

* fix(cron): update config values (#579)

* Revert "fix(cron): update config values (#579)" (#580)

This reverts commit 13ecf78.

* add(link sidebar): Add network Monitor in sidebar

* fix(design): Align BP cards in all screen resolutions

* fix(bp page): Fix broke design in bp page

* fix(voting-tool): apply changes on design

* fix(proxy-component): change cards and voting tool proxy design

* fix(vote-bp): change method got to top page

* fix(content): delete unnecessary console.log

* fix(design): delete unnecessary backgraound color

* fix(front-end): delete unnecessary code

* fix(radar-component): change radar label font size

* fix(code): delete unnecessary code

* fix(code): delete unnecessary code

* fix(code): delete unnecessary code

Co-authored-by: Xavier <[email protected]>
Co-authored-by: Andres Gomez <[email protected]>
Co-authored-by: JustinCast <[email protected]>
Co-authored-by: Xavier Fernandez <[email protected]>
  • Loading branch information
5 people authored Aug 25, 2021
1 parent cc3ca7d commit edd719f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
11 changes: 0 additions & 11 deletions hapi/src/libs/sync-bp-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,42 +31,33 @@ const getBpStats = async (bp, scope) => {
}

const updateBpStats = async (bpName) => {
// const CONTRACT_SCOPES = [defaultContractScope, edenContractScope]

try {
const edenResult = await getEdenBpStats(bpName)
await getDefaultBpStats(bpName)

return edenResult

} catch (err) {
console.error(`sync-bp-stats: ${err}`)
}
console.log('END FUNCTION UPDATE BP STATS')
}

const getEdenBpStats = async (bpName) => {

try {
const bpStat = await getBpStats(bpName, edenContractScope)

if (!bpStat.rows.length || !bpStat.rows[0].bp === bpName)
return 'Did not find ratings for BP: ' + bpName

const stat = bpStat.rows[0]

const edenResult = await updateBpStatsEden(bpName, stat)

return edenResult

} catch (err) {
console.error(`sync-bp-stats: ${err}`)
}
console.log('END FUNCTION UPDATE BP STATS')
}

const getDefaultBpStats = async (bpName) => {

try {
const bpStat = await getBpStats(bpName, defaultContractScope)

Expand All @@ -76,11 +67,9 @@ const getDefaultBpStats = async (bpName) => {
const stat = bpStat.rows[0]

return await updateBpStatsDefault(bpName, stat)

} catch (err) {
console.error(`sync-bp-stats: ${err}`)
}
console.log('END FUNCTION UPDATE BP STATS')
}

const updateBpStatsDefault = async (bpName, stat) => {
Expand Down
2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"apollo-link-http": "^1.5.16",
"apollo-link-ws": "^1.0.19",
"apollo-utilities": "^1.3.3",
"chart.js": "^3.4.1",
"chart.js": "^3.5.1",
"classnames": "^2.3.1",
"env-cmd": "^10.1.0",
"eosjs": "^22.1.0",
Expand Down
22 changes: 19 additions & 3 deletions webapp/src/components/radar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,24 @@ const RadarData = ({ bpData, height, showLabel, width, ...props }) => {
return (
<Radar
data={bpValidData}
style={{ margin: 'auto', width: sizes.width, height: sizes.height }}
style={{
margin: 'auto',
width: sizes.width,
height: sizes.height
}}
options={{
animation: {
duration: false
},
plugins: {
legend: showLabel
legend: {
display: showLabel,
labels: {
font: {
size: 14
}
}
}
},
scales: {
r: {
Expand All @@ -46,7 +57,12 @@ const RadarData = ({ bpData, height, showLabel, width, ...props }) => {
suggestedMin: 1,
suggestedMax: 10,
angleLines: { color: '#e5e5e5', lineWidth: 4 },
pointLabels: { fontColor: '#443F5B', fontSize: 20 }
pointLabels: {
fontColor: '#443F5B',
font: {
size: 12
}
}
}
},
layout: {
Expand Down

0 comments on commit edd719f

Please sign in to comment.