Skip to content

Commit 6d8a25c

Browse files
committed
Merge branch 'main' into production
2 parents 6630cf8 + b4f9824 commit 6d8a25c

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/components/resource-sections/index.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import {
44
Box,
55
Divider,
66
Flex,
7+
Grid,
8+
GridItem,
79
ListItem,
810
SimpleGrid,
911
Skeleton,
@@ -38,6 +40,7 @@ import { CompletenessBadgeCircle } from 'src/components/metadata-completeness-ba
3840
import { ResourceCatalogCollection } from './components/collection-information';
3941
import { DownloadMetadata } from '../download-metadata';
4042
import { SearchableItems } from 'src/components/searchable-items';
43+
import { Summary } from './components/summary';
4144
import { OverviewSectionWrapper } from './components/overview-section-wrapper';
4245
import { getMetadataDescription } from '../metadata';
4346
import { TagWithUrl } from '../tag-with-url';
@@ -117,13 +120,15 @@ const Sections = ({
117120
<ResourceBanner data={data} />
118121

119122
{/*<--- AI Generated short description -->*/}
120-
{/* {data?.disambiguatingDescription && (
121-
<Flex mx={6} my={2}>
122-
<Summary
123-
description={data.disambiguatingDescription}
124-
tagLabel='AI Generated'
125-
/>
126-
{data && data['_meta'] && (
123+
{process.env.NODE_ENV !== 'production' &&
124+
data?.disambiguatingDescription && (
125+
<Flex mx={6} my={2}>
126+
<Summary
127+
description={data.disambiguatingDescription}
128+
tagLabel='AI Generated'
129+
/>
130+
{/* Badge indicating completeness of metadata */}
131+
{/* {data && data['_meta'] && (
127132
<Flex
128133
px={4}
129134
py={4}
@@ -137,9 +142,9 @@ const Sections = ({
137142
size='lg'
138143
/>
139144
</Flex>
145+
)} */}
146+
</Flex>
140147
)}
141-
</Flex>
142-
)} */}
143148

144149
{sections.map(section => {
145150
return (

0 commit comments

Comments
 (0)