From fce40bdd2b43ad601adfad5249bf3f142d408348 Mon Sep 17 00:00:00 2001
From: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
Date: Wed, 4 Sep 2024 18:24:33 -0700
Subject: [PATCH 1/2] added enforced 2 decimal precision max
Signed-off-by: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
---
src/app/modules/homepage/demo.json | 2 +-
src/app/modules/homepage/demoTable.tsx | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/app/modules/homepage/demo.json b/src/app/modules/homepage/demo.json
index 935063c..c3044ef 100644
--- a/src/app/modules/homepage/demo.json
+++ b/src/app/modules/homepage/demo.json
@@ -3,7 +3,7 @@
"id": 1,
"file_completion": 100,
"created_by": "John Doe",
- "execution_time": 42.021,
+ "execution_time": 42.02,
"status": "completed",
"metrics": ["time_series"],
"error": 26.207
diff --git a/src/app/modules/homepage/demoTable.tsx b/src/app/modules/homepage/demoTable.tsx
index ac279bc..a36ee14 100644
--- a/src/app/modules/homepage/demoTable.tsx
+++ b/src/app/modules/homepage/demoTable.tsx
@@ -55,7 +55,8 @@ export default function DemoBoard() {
groupable: false,
headerClassName: 'text-center',
valueGetter: (params: any) => {
- return params !== null && params !== undefined ? params + '%' : 0 + '%';
+ return params !== null && params !== undefined ?
+ params.toFixed(2) + '%' : 0 + '%';
},
},
{
@@ -65,7 +66,8 @@ export default function DemoBoard() {
align: 'center',
flex: 1,
valueGetter: (params: any) => {
- return params !== null && params !== undefined ? params : 'N/A';
+ return params !== null && params !== undefined ?
+ params.toFixed(2) : 'N/A';
},
},
{
@@ -75,7 +77,8 @@ export default function DemoBoard() {
align: 'center',
flex: 1,
valueGetter: (params: any) => {
- return params !== null && params !== undefined ? params : 0;
+ return params !== null && params !== undefined ?
+ params.toFixed(2) : 0;
},
},
{
From f6e4c3f20283c13571c2b055b7fb93e6a17fca7c Mon Sep 17 00:00:00 2001
From: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
Date: Thu, 5 Sep 2024 21:07:05 -0700
Subject: [PATCH 2/2] table tweaks 2 significant digits
Signed-off-by: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
---
src/app/modules/homepage/demoTable.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/modules/homepage/demoTable.tsx b/src/app/modules/homepage/demoTable.tsx
index a36ee14..6d4e9d4 100644
--- a/src/app/modules/homepage/demoTable.tsx
+++ b/src/app/modules/homepage/demoTable.tsx
@@ -117,7 +117,7 @@ export default function DemoBoard() {
}} className='content-center justify-center'>
+ className="text-5xl font-bold sTextColor scale-[0.73] mt-2">
Demo Board
);