Skip to content

Commit b07766a

Browse files
committed
Removes displayGraphs enum
1 parent f044660 commit b07766a

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

src/components/projects/projectId/overview/ProjectOverview.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { postProcessLabelingTasks, postProcessLabelingTasksSchema } from '@/src/
1010
import { selectLabelingTasksAll, setAllAttributes, setLabelingTasksAll } from '@/src/reduxStore/states/pages/settings';
1111
import { setDataSlices } from '@/src/reduxStore/states/pages/data-browser';
1212
import { selectOverviewFilters } from '@/src/reduxStore/states/tmp';
13-
import { DisplayGraphs } from '@/submodules/javascript-functions/enums/enums';
1413
import LabelDistributionBarChart from './charts/LabelDistributionBarChart';
1514
import { LabelDistribution } from '@/src/types/components/projects/projectId/project-overview/charts';
1615
import { selectAllUsers, selectOrganizationId, setComments } from '@/src/reduxStore/states/general';
@@ -137,15 +136,15 @@ export default function ProjectOverview() {
137136
<ProjectOverviewHeader />
138137
<ProjectOverviewCards projectStats={projectStats} />
139138
{graphsHaveValues ? (<div>
140-
{overviewFilters.graphType.value == DisplayGraphs.LABEL_DISTRIBUTION && <div className="mt-8 grid w-full">
139+
<div className="mt-8 grid w-full">
141140
<div className="text-lg leading-6 text-gray-900 font-medium inline-block">Label distribution</div>
142141
<div className="mt-1 text-sm leading-5 font-medium text-gray-700 inline-block">See the distribution of your manually labeled and weakly supervised records.</div>
143142
<div className={`mt-2 w-full h-full shadow ${style.stats} bg-white grid place-items-center flex-grow`}>
144143
{labelDistribution && <div className="h-full w-full p-5">
145144
<LabelDistributionBarChart dataInput={labelDistribution} />
146145
</div>}
147146
</div>
148-
</div>}
147+
</div>
149148

150149

151150
</div>

src/components/projects/projectId/overview/ProjectOverviewHeader.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { selectOverviewFilters, setOverviewFilters, updateOverFilters } from "@/
44
import { ProjectOverviewFilters } from "@/src/types/components/projects/projectId/project-overview/project-overview";
55
import { LabelingTask } from "@/src/types/components/projects/projectId/settings/labeling-tasks";
66
import { TOOLTIPS_DICT } from "@/src/util/tooltip-constants";
7-
import { DisplayGraphs } from "@/submodules/javascript-functions/enums/enums";
87
import KernDropdown from "@/submodules/react-components/components/KernDropdown";
98
import { Tooltip } from "@nextui-org/react";
109
import { useEffect, useState } from "react";
@@ -25,7 +24,6 @@ export default function ProjectOverviewHeader() {
2524
if (!labelingTasks || !targetAttributes || !dataSlices || !targetAttributes[0] || !dataSlices[0]) return;
2625
const labelingTasksFinal = labelingTasks.find((labelingTask) => labelingTask.targetName === targetAttributes[0].name);
2726
const overviewFiltersNew: ProjectOverviewFilters = {
28-
graphType: { name: "Label Distribution", value: DisplayGraphs.LABEL_DISTRIBUTION },
2927
targetAttribute: targetAttributes[0],
3028
labelingTask: labelingTasksFinal,
3129
dataSlice: dataSlices[0],

src/types/components/projects/projectId/project-overview/project-overview.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DisplayGraphs } from "@/submodules/javascript-functions/enums/enums";
21

32
export type ProjectStats = {
43
generalLoading: boolean;
@@ -27,7 +26,6 @@ export enum CardStatsEnum {
2726
}
2827

2928
export type ProjectOverviewFilters = {
30-
graphType: { name: string, value: DisplayGraphs };
3129
targetAttribute: string;
3230
labelingTask: string;
3331
dataSlice: string;

0 commit comments

Comments
 (0)