diff --git a/packages/toolkit/package.json b/packages/toolkit/package.json index 36605e1b7..b585b9b4f 100644 --- a/packages/toolkit/package.json +++ b/packages/toolkit/package.json @@ -13,7 +13,7 @@ "scripts": { "test": "vitest --run --passWithNoTests", "dev": "tsup --watch", - "dev-ts": "tsc --watch --emitDeclaration`Only", + "dev-ts": "tsc --watch --emitDeclarationOnly", "ts-type": "tsc --emitDeclarationOnly", "build": "tsup && pnpm ts-type", "lint": "eslint . --ext .ts,.tsx,.js,.jsx --cache", diff --git a/packages/toolkit/src/view/dashboard/activity/DashboardActivityPageMainView.tsx b/packages/toolkit/src/view/dashboard/activity/DashboardActivityPageMainView.tsx index f356ed03f..83158ec14 100755 --- a/packages/toolkit/src/view/dashboard/activity/DashboardActivityPageMainView.tsx +++ b/packages/toolkit/src/view/dashboard/activity/DashboardActivityPageMainView.tsx @@ -192,7 +192,6 @@ export const DashboardActivityPageMainView = () => { })); }, [triggeredModels.data, triggeredModels.isSuccess]); - const triggeredPipelineList = React.useMemo(() => { if (!triggeredPipelines.isSuccess) return []; return triggeredPipelines.data; @@ -223,7 +222,11 @@ export const DashboardActivityPageMainView = () => { ]); const modelTriggersSummary = React.useMemo(() => { - if (!previousTriggeredModels.isSuccess || !modelsChart.isSuccess || !modelsChart.data.modelTriggerCounts) { + if ( + !previousTriggeredModels.isSuccess || + !modelsChart.isSuccess || + !modelsChart.data.modelTriggerCounts + ) { return null; } @@ -232,17 +235,19 @@ export const DashboardActivityPageMainView = () => { previousTriggeredModels.isSuccess, modelsChart.isSuccess, modelsChart.data?.modelTriggerCounts, - selectedTimeOption // Add this to ensure refetch on date change + selectedTimeOption, // Add this to ensure refetch on date change ]); return (
-

Usage

- +
+

Usage

+ +
{ const chartRef = React.useRef(null); - const { xAxis, yAxis } = React.useMemo(() => - generateModelTriggerChartRecordData(models, selectedTimeOption.value), - [models, selectedTimeOption.value] + const { xAxis, yAxis } = React.useMemo( + () => generateModelTriggerChartRecordData(models, selectedTimeOption.value), + [models, selectedTimeOption.value], ); React.useEffect(() => { @@ -117,7 +123,7 @@ export const ModelsTriggerCountsLineChart = ({ type: "category", data: xAxis, axisLabel: { - fontSize: "14px", + fontSize: "10px", fontFamily: "var(--font-ibm-plex-sans)", fontStyle: "normal", fontWeight: "500", @@ -128,7 +134,7 @@ export const ModelsTriggerCountsLineChart = ({ type: "value", minInterval: 1, axisLabel: { - fontSize: "14px", + fontSize: "10px", fontFamily: "var(--font-ibm-plex-sans)", fontStyle: "normal", fontWeight: "500", @@ -196,7 +202,8 @@ export const ModelsTriggerCountsLineChart = ({
Select any pipeline from the table below to view the - number of model triggers within the last {selectedTimeOption.label} + number of model triggers within the last{" "} + {selectedTimeOption.label}
diff --git a/packages/toolkit/src/view/dashboard/activity/PipelineTriggerCountsLineChart.tsx b/packages/toolkit/src/view/dashboard/activity/PipelineTriggerCountsLineChart.tsx index 8a70d07df..d3e8f8ec3 100644 --- a/packages/toolkit/src/view/dashboard/activity/PipelineTriggerCountsLineChart.tsx +++ b/packages/toolkit/src/view/dashboard/activity/PipelineTriggerCountsLineChart.tsx @@ -126,8 +126,11 @@ export const PipelineTriggerCountsLineChart = ({ xAxis: { type: "category", data: xAxisData, + axisTick: { + length: 0, + }, axisLabel: { - fontSize: "14px", + fontSize: "10px", fontFamily: "var(--font-ibm-plex-sans)", fontStyle: "normal", fontWeight: "500", @@ -137,8 +140,11 @@ export const PipelineTriggerCountsLineChart = ({ yAxis: { type: "value", minInterval: 1, + axisTick: { + length: 0, + }, axisLabel: { - fontSize: "14px", + fontSize: "10px", fontFamily: "var(--font-ibm-plex-sans)", fontStyle: "normal", fontWeight: "500", @@ -201,7 +207,8 @@ export const PipelineTriggerCountsLineChart = ({
Select any pipeline from the table below to view the - number of pipeline triggers within the last {selectedTimeOption.label} + number of pipeline triggers within the last{" "} + {selectedTimeOption.label}
diff --git a/packages/toolkit/src/view/dashboard/cost/CostTab.tsx b/packages/toolkit/src/view/dashboard/cost/CostTab.tsx index 8a348af3b..92e522931 100755 --- a/packages/toolkit/src/view/dashboard/cost/CostTab.tsx +++ b/packages/toolkit/src/view/dashboard/cost/CostTab.tsx @@ -100,21 +100,19 @@ export const CostTab = ({
- {options.map((option) => (