From 28b2d7eeb81d6568ab136409612fed2baa27be4e Mon Sep 17 00:00:00 2001 From: shahramk Date: Wed, 13 Dec 2023 21:33:58 -0800 Subject: [PATCH 1/6] feat: add option to enable title's tooltip - default: disabled --- src/components/simple-billboard/README.md | 1 + src/components/simple-billboard/index.js | 24 +++++++++++++----- .../simple-billboard/simple-billboard.png | Bin 17227 -> 7518 bytes 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/components/simple-billboard/README.md b/src/components/simple-billboard/README.md index bc5d604..05eb94c 100644 --- a/src/components/simple-billboard/README.md +++ b/src/components/simple-billboard/README.md @@ -47,6 +47,7 @@ and the code snippet to use the component: name: PropTypes.string, // required - metric name style: PropTypes.object, // optional - SCSS class name for metric name className: PropTypes.string, // optional - SCSS style for metric name + toolTip: PropTypes.bool // optional - enable tool tip for metric name (default: false) }), }; ``` diff --git a/src/components/simple-billboard/index.js b/src/components/simple-billboard/index.js index 053fe00..9d547ba 100644 --- a/src/components/simple-billboard/index.js +++ b/src/components/simple-billboard/index.js @@ -8,7 +8,7 @@ import styles from './styles.scss'; /** * @param {Object} metric - metric value, previousValue, optional: prefix, suffix, className, style * @param {Object} statusTrend - optional: className, style - * @param {Object} title - metric name, optional: className, style + * @param {Object} title - metric name, optional: className, style, toolTip * @return {JSX Object} - RENDERING name, value, up/down trend when previousValue present */ const SimpleBillboard = ({ metric, statusTrend = {}, title }) => { @@ -60,11 +60,11 @@ const SimpleBillboard = ({ metric, statusTrend = {}, title }) => { difference > 0 ? { type: 'uparrow', - fill: '#02865B', + fill: '#9EA5A9', } : { type: 'downarrow', - fill: '#DF2D24', + fill: '#9EA5A9', }; return ( { }, [difference]); return ( -
+
{ {changeStatus}
- + {title.toolTip ? ( + +
+ {title.name} +
+
+ ) : (
{ > {title.name}
-
+ )}
); }; @@ -125,6 +136,7 @@ SimpleBillboard.propTypes = { name: PropTypes.string, style: PropTypes.object, className: PropTypes.string, + toolTip: PropTypes.bool, }), }; diff --git a/src/components/simple-billboard/simple-billboard.png b/src/components/simple-billboard/simple-billboard.png index 92ff4e1e8f5aa01b0c71f8854c2e3aa2e25826d9..b028b3f81cea730d591846d308ad0df7e855863d 100644 GIT binary patch literal 7518 zcmds*`smQuO|NfDL?X@q6zhwq!; zAMw06Gxs$!*O~Kb?$4YU9W50+Y)WhZ0Dz~as;Kue_q>D+Ci=_B!0=fY0Ko2aP*BiO zQ&6DSaRYyHaI^&gRAbUJFm&{d$wton4jGDA!tsm5%<56;NTaXRe-MU9Uv(f*C7c0C0CaW~%!9@^M1(>>APK#w(DNVVGbY#Q zKaKgn?rv_L7YsUpSQr3y>P_al@YIlVj*tG^(ckp|I+!TMyLvyFy_qyfnWz*Y_9?ge z@%g`sST%(_IaxUe$*kQ0=ggv}lNiA}(TKwpYUytZvGU9BM@caWc@>w1n3z)IT(}1J zRO2x>)dG~~EIklG^BO6jrWOA;+Dn4A5Sb9gwCU+b8JUsiws?;f4SfBNNqXPq2NG~Q;t-Pb%iEV5h~LS z;zIKIT*k)}xz=qE(RywklT+=@#+^GK4&6qfT%KrS{-KnX(WDh}%T7z~xTLcJHr%VM zDJuGUDTT`nUo`Gp69;vJq#iH$@sp4IUQHRZ7F3LPW+q6K)r6KW4&^secXgZ+J}-LezkE3?Q|l69?dj*}zckQSAm;Tu9eY^I)_PTwhrk z2wvm>J9!j6CPp#?b_v#@0&5cKM*;zQ?NK`H2*yGPJK>gsyej&x!cien1xZyfTtQ@Z zW|rcB$b;r@D6M?&Ed3S!9d5A|kw%24wLXM*GC0cxlNyaL5f%~a(RH$P%3_74KfPyr53H}ma4Cwz8V5V9jWWe?>6)qa z!#Rei2Xlwb2G)kIY?K>~xbZ-do&)IC+l`gWq|0BHrIvkNQ9vENUzh<1#9=?T%aKY9|#|O9-JNkfw_em{0tq0gP3OW zyw*aS^hH@NakJXwY*nwOqG`Xgf8ccGY0NcJ>5=!B_pdK3w5otrHR#9{HYgXFZFUTb zywtDF{4RxMETbipnaPRqT`F%1ZOVG;*hl>)u{R;yE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X^++Z{J z*|(wX5B#1%iLN87wn-nA^Zoe-OKvOMUvKJ^95MCP05)dUlqoEr&VIgfcTktQN?*Xz z_*iH?1nFme&Ut0qQY*SH3eBnH0E{ZoE|o=h#-y}i>tK8881mn_xj6SNSKeGChYk-C z@L4y7K&Zm}i-t5vF3p~HcWNAW7=?tG#~Y@g((=mixf%Nj2bXs8i>+;YY{$CVg)9bs z;#+T@$5v`%rKYj#O7C8LlQHj@c#e}WmDE_3hgjE$iC>KBdDfW7-SX?6WNv-)V4H#6 zF)NAtkixe>|NLkNGeCrXdL3Tz%z^Mx2)h${yJo!Dt4Hr()R@;9!P6vH^&ie*{@wDz zm;<>*^J-`Yr4Jr`>L4zO*sNE#zLa}A+ADF>cB^V!FP8;H1vuk{H%xI70-fJX5vK^B zH819$QeElBdkGEH0hb5rdFwvc4gOy%g3_5CFeFE_cOo|86))sJaClyB4?VQ__sJd? z#HHUNQW=KF!k1}&mTI&5bprVstJCV3(X{wBOSAdWW=|k|3r73l5a*-5vM^V5*?FBX ziJ1x}m;P#^zsDeD3`0fcRg90H8fqPLa From dcd41484aebaf26a0fd28466fab6f58ebf70efd3 Mon Sep 17 00:00:00 2001 From: shahramk Date: Thu, 14 Dec 2023 09:55:32 -0800 Subject: [PATCH 2/6] refactor: clean up code --- src/components/simple-billboard/index.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/components/simple-billboard/index.js b/src/components/simple-billboard/index.js index 9d547ba..1d6b5b4 100644 --- a/src/components/simple-billboard/index.js +++ b/src/components/simple-billboard/index.js @@ -58,20 +58,15 @@ const SimpleBillboard = ({ metric, statusTrend = {}, title }) => { }; const icon = difference > 0 - ? { - type: 'uparrow', - fill: '#9EA5A9', - } - : { - type: 'downarrow', - fill: '#9EA5A9', - }; + ? { type: 'uparrow', } + : { type: 'downarrow', }; + return ( Date: Mon, 18 Dec 2023 17:00:41 -0800 Subject: [PATCH 3/6] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b449a2..d9883e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- add option to enable title's tooltip + change up/down trend arrow colors to grey by [@shahramk](https://github.com/shahramk) + ## [1.16.0] - 2023-08-09 ### Added From 3d375e5946280647b0ee3226a0d92086debf4864 Mon Sep 17 00:00:00 2001 From: nr-opensource-bot Date: Tue, 19 Dec 2023 01:11:38 +0000 Subject: [PATCH 4/6] chore(release): 1.18.0 [skip ci] # [1.18.0](https://github.com/newrelic/nr-labs-components/compare/v1.17.0...v1.18.0) (2023-12-19) ### Features * add option to enable title's tooltip - default: disabled ([28b2d7e](https://github.com/newrelic/nr-labs-components/commit/28b2d7eeb81d6568ab136409612fed2baa27be4e)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 097ab7b..d4f1f39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newrelic/nr-labs-components", - "version": "1.17.0", + "version": "1.18.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newrelic/nr-labs-components", - "version": "1.17.0", + "version": "1.18.0", "license": "Apache-2.0", "dependencies": { "dayjs": "^1.11.7" diff --git a/package.json b/package.json index 3ccea2c..75059d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newrelic/nr-labs-components", - "version": "1.17.0", + "version": "1.18.0", "description": "New Relic Labs components", "main": "dist/index.js", "module": "dist/index.es.js", From 12628b1794fb4599e7cdcaf935652bd6533ab5bd Mon Sep 17 00:00:00 2001 From: nr-opensource-bot Date: Tue, 19 Dec 2023 17:55:01 +0000 Subject: [PATCH 5/6] chore(release): 1.19.0 [skip ci] # [1.19.0](https://github.com/newrelic/nr-labs-components/compare/v1.18.0...v1.19.0) (2023-12-19) ### Features * time picker component ([4dcb884](https://github.com/newrelic/nr-labs-components/commit/4dcb88482654fa90c195e741e28bf4f95c5f3529)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4f1f39..1084f1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newrelic/nr-labs-components", - "version": "1.18.0", + "version": "1.19.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newrelic/nr-labs-components", - "version": "1.18.0", + "version": "1.19.0", "license": "Apache-2.0", "dependencies": { "dayjs": "^1.11.7" diff --git a/package.json b/package.json index 75059d3..79205da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newrelic/nr-labs-components", - "version": "1.18.0", + "version": "1.19.0", "description": "New Relic Labs components", "main": "dist/index.js", "module": "dist/index.es.js", From 0623f72494889147597360c9836d446f10453899 Mon Sep 17 00:00:00 2001 From: Amit Yathirajadasan Date: Tue, 19 Dec 2023 10:01:50 -0800 Subject: [PATCH 6/6] chore: update changelong --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 933a97a..a89353c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.19.0] - 2023-12-18 + ### Added - TimePicker component by [@amit-y](https://github.com/amit-y) -## [1.17.1] - 2023-12-18 +## [1.18.0] - 2023-12-18 + +### Changed -- add option to enable title's tooltip + change up/down trend arrow colors to grey by [@shahramk](https://github.com/shahramk) +- SimpleBillboard - add option to enable title's tooltip + change up/down trend arrow colors to grey by [@shahramk](https://github.com/shahramk) ## [1.17.0] - 2023-12-14