Skip to content

Commit 37fd71d

Browse files
authored
Removed artifact count from the Proposed Changes list view (#7446)
1 parent 5b2d4e8 commit 37fd71d

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

changelog/+artifact.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The artifact count has been removed from the Proposed Changes list view.

frontend/app/src/entities/proposed-changes/ui/proposed-change-item.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Icon } from "@iconify-icon/react";
22
import { Link } from "react-router";
33

4-
import { ARTIFACT_OBJECT, CHECK_OBJECT, TASK_OBJECT } from "@/config/constants";
4+
import { CHECK_OBJECT, TASK_OBJECT } from "@/config/constants";
55

66
import { constructPath } from "@/shared/api/rest/fetch";
77
import { DateDisplay } from "@/shared/components/display/date-display";
@@ -131,7 +131,6 @@ const ProposedChangesData = ({
131131
<div className="flex items-center justify-end gap-4">
132132
<ProposedChangesChecks validations={validations} />
133133
<ProposedChangesTasks id={id} />
134-
<ProposedChangesArtifacts id={id} />
135134
<ProposedChangesComments comments={comments} />
136135
</div>
137136
</div>
@@ -161,22 +160,6 @@ const ProposedChangesChecks = ({ validations }: { validations: number }) => {
161160
);
162161
};
163162

164-
const ProposedChangesArtifacts = ({ id }: { id: string }) => {
165-
const { schema } = useSchema(ARTIFACT_OBJECT);
166-
const { data } = useObjectsCount({
167-
objectKind: ARTIFACT_OBJECT,
168-
filters: [{ name: "object__ids", value: [id] }],
169-
});
170-
171-
return (
172-
<Tooltip enabled content="Artifacts">
173-
<span className="flex items-center gap-1">
174-
<Icon icon={schema?.icon ?? "mdi:file-outline"} /> {data ?? 0}
175-
</span>
176-
</Tooltip>
177-
);
178-
};
179-
180163
const ProposedChangesTasks = ({ id }: { id: string }) => {
181164
const { schema } = useSchema(TASK_OBJECT);
182165
const { data } = useObjectsCount({

0 commit comments

Comments
 (0)