From edd719f9162766b87270158fc021766257b1f706 Mon Sep 17 00:00:00 2001 From: AngeloCG97 <51149817+AngeloCG97@users.noreply.github.com> Date: Wed, 25 Aug 2021 13:47:06 -0600 Subject: [PATCH] Change size radar labels (#696) * 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 Co-authored-by: JustinCast * 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 <5632966+xavier506@users.noreply.github.com> Co-authored-by: Andres Gomez * 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 Co-authored-by: JustinCast * 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 <5632966+xavier506@users.noreply.github.com> Co-authored-by: Andres Gomez * 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 Co-authored-by: JustinCast * Update push-master-environment.yaml (#576) * fix(cron): update config values (#579) * Revert "fix(cron): update config values (#579)" (#580) This reverts commit 13ecf78f0cec5c1a938a1ee0aee646828995d940. * 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 <5632966+xavier506@users.noreply.github.com> Co-authored-by: Andres Gomez Co-authored-by: JustinCast Co-authored-by: Xavier Fernandez --- hapi/src/libs/sync-bp-stats.js | 11 ----------- webapp/package.json | 2 +- webapp/src/components/radar/index.js | 22 +++++++++++++++++++--- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/hapi/src/libs/sync-bp-stats.js b/hapi/src/libs/sync-bp-stats.js index 765f9a4a..281f8768 100644 --- a/hapi/src/libs/sync-bp-stats.js +++ b/hapi/src/libs/sync-bp-stats.js @@ -31,22 +31,17 @@ 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) @@ -54,19 +49,15 @@ const getEdenBpStats = async (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) @@ -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) => { diff --git a/webapp/package.json b/webapp/package.json index d0b0cd78..3fdfec68 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -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", diff --git a/webapp/src/components/radar/index.js b/webapp/src/components/radar/index.js index 76f8ce48..c2673ffe 100644 --- a/webapp/src/components/radar/index.js +++ b/webapp/src/components/radar/index.js @@ -23,13 +23,24 @@ const RadarData = ({ bpData, height, showLabel, width, ...props }) => { return ( { suggestedMin: 1, suggestedMax: 10, angleLines: { color: '#e5e5e5', lineWidth: 4 }, - pointLabels: { fontColor: '#443F5B', fontSize: 20 } + pointLabels: { + fontColor: '#443F5B', + font: { + size: 12 + } + } } }, layout: {