Skip to content

Commit 9e81284

Browse files
committed
Add insights copy
1 parent 7fb0fd2 commit 9e81284

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/compass-indexes/src/components/create-index-form/query-flow-section.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
Button,
33
palette,
4+
InsightsChip,
45
Body,
56
cx,
67
useFocusRing,
@@ -76,6 +77,12 @@ const indexSuggestionsLoaderStyles = css({
7677
borderRadius: editorContainerRadius,
7778
});
7879

80+
const insightStyles = css({
81+
display: 'flex',
82+
alignItems: 'center',
83+
gap: spacing[100],
84+
});
85+
7986
const QueryFlowSection = ({
8087
schemaFields,
8188
serverVersion,
@@ -132,6 +139,14 @@ const QueryFlowSection = ({
132139

133140
return (
134141
<>
142+
{initialQuery && (
143+
<div className={insightStyles}>
144+
<InsightsChip />
145+
<p>
146+
We prefilled the query input below based on your recently run query
147+
</p>
148+
</div>
149+
)}
135150
<Body baseFontSize={16} weight="medium" className={headerStyles}>
136151
Input Query
137152
</Body>

0 commit comments

Comments
 (0)