Skip to content

Commit b01d8eb

Browse files
frano-mclaude
andauthored
refactor: move entityview keyvaluesection into @repo/shared (#1512) (#1513)
Co-authored-by: Fran McDade <18710366+frano-m@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent ed23006 commit b01d8eb

6 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/views/EntityView/assembly/components/Side/brc/side.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import {
33
buildAssemblyResources,
44
buildOrganismDetails,
55
} from "@/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders";
6-
import { KeyValueSection } from "@/views/EntityView/components/KeyValueSection/keyValueSection";
76
import { mapAssemblyToOrganism } from "@/views/WorkflowInputsView/utils";
87
import { BackPageContentSideColumn } from "@databiosphere/findable-ui/lib/components/Layout/components/BackPage/backPageView.styles";
98
import { AssemblyFavoriteButton } from "@repo/shared/components/Favorites/components/AssemblyFavoriteButton/assemblyFavoriteButton";
109
import { AnalysisPortals } from "@repo/shared/views/EntityView/assembly/components/Side/AnalysisPortals/analysisPortals";
10+
import { KeyValueSection } from "@repo/shared/views/EntityView/components/KeyValueSection/keyValueSection";
1111
import { JSX } from "react";
1212
import { StyledFluidPaper } from "../side.styles";
1313
import { StyledSection } from "./side.styles";

app/views/EntityView/assembly/components/Side/ga2/components/AssemblyDetails/AssemblyDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { OrganismAvatar } from "@/components/Entity/components/OrganismAvatar/organismAvatar";
22
import { buildAssemblyDetails } from "@/viewModelBuilders/catalog/common/viewModelBuilders";
3-
import { StyledSection } from "@/views/EntityView/components/KeyValueSection/keyValueSection.styles";
43
import { KeyValuePairs } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/keyValuePairs";
4+
import { StyledSection } from "@repo/shared/views/EntityView/components/KeyValueSection/keyValueSection.styles";
55
import { KeyElType } from "@repo/shared/views/EntityView/ui/KeyElType/keyElType";
66
import { KeyValueElType } from "@repo/shared/views/EntityView/ui/KeyValueElType/keyValueElType";
77
import { SectionTitle } from "@repo/shared/views/EntityView/ui/SectionTitle/sectionTitle";

app/views/EntityView/assembly/components/Side/ga2/side.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import {
33
buildOrganismDetails,
44
} from "@/viewModelBuilders/catalog/common/viewModelBuilders";
55
import { AssemblyDetails } from "@/views/EntityView/assembly/components/Side/ga2/components/AssemblyDetails/AssemblyDetails";
6-
import { KeyValueSection } from "@/views/EntityView/components/KeyValueSection/keyValueSection";
76
import { mapAssemblyToOrganism } from "@/views/WorkflowInputsView/utils";
87
import { BackPageContentSideColumn } from "@databiosphere/findable-ui/lib/components/Layout/components/BackPage/backPageView.styles";
98
import { AssemblyFavoriteButton } from "@repo/shared/components/Favorites/components/AssemblyFavoriteButton/assemblyFavoriteButton";
109
import { AnalysisPortals } from "@repo/shared/views/EntityView/assembly/components/Side/AnalysisPortals/analysisPortals";
10+
import { KeyValueSection } from "@repo/shared/views/EntityView/components/KeyValueSection/keyValueSection";
1111
import { JSX } from "react";
1212
import { StyledFluidPaper } from "../side.styles";
1313
import { StyledSection } from "./side.styles";

app/views/EntityView/components/KeyValueSection/keyValueSection.styles.ts renamed to packages/shared/views/EntityView/components/KeyValueSection/keyValueSection.styles.ts

File renamed without changes.

app/views/EntityView/components/KeyValueSection/keyValueSection.tsx renamed to packages/shared/views/EntityView/components/KeyValueSection/keyValueSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { SectionTitle } from "@repo/shared/views/EntityView/ui/SectionTitle/sect
55
import { ValueElType } from "@repo/shared/views/EntityView/ui/ValueElType/valueElType";
66
import { Fragment, JSX } from "react";
77
import { StyledSection } from "./keyValueSection.styles";
8-
import { Props } from "./types";
8+
import type { Props } from "./types";
99

1010
/**
1111
* Renders a key-value section.

app/views/EntityView/components/KeyValueSection/types.ts renamed to packages/shared/views/EntityView/components/KeyValueSection/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { KeyValuePairs } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/keyValuePairs";
2-
import { ComponentProps } from "react";
2+
import type { ComponentProps } from "react";
33

44
export interface Props extends ComponentProps<typeof KeyValuePairs> {
55
title: string;

0 commit comments

Comments
 (0)