diff --git a/packages/compass-indexes/src/components/create-index-form/create-index-form.tsx b/packages/compass-indexes/src/components/create-index-form/create-index-form.tsx index e2b19ab532b..4847ebaa68c 100644 --- a/packages/compass-indexes/src/components/create-index-form/create-index-form.tsx +++ b/packages/compass-indexes/src/components/create-index-form/create-index-form.tsx @@ -18,6 +18,7 @@ import { useConnectionSupports, } from '@mongodb-js/compass-connections/provider'; import { usePreference } from 'compass-preferences-model/provider'; +import IndexFlowSection from './index-flow-section'; const createIndexModalFieldsStyles = css({ margin: `${spacing[600]}px 0 ${spacing[800]}px 0`, @@ -79,13 +80,22 @@ function CreateIndexForm({ }); }, [schemaFields]); + const showIndexesGuidanceIndexFlow = + showIndexesGuidanceVariant && currentTab === 'IndexFlow'; + const showIndexesGuidanceQueryFlow = + showIndexesGuidanceVariant && currentTab === 'QueryFlow'; + return ( <>
+ + Follow the Equality, Sort, Range (ESR) Rule and this index is + optimal for queries that have this pattern: + + {/* Optimal queries, clean up with actual optimal queries in CLOUDP-311783 */} +
+ {`{ awards.wins : 5, imdb.rating: {$gt : 5} }.sort({ awards.nominations : 1 }`} + + + + + Learn More + +