-
Notifications
You must be signed in to change notification settings - Fork 214
feat: Add covered and optimal query examples CLOUDP-311782 #6883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, left a couple questions/comments
packages/compass-indexes/src/components/create-index-form/index-flow-section.tsx
Outdated
Show resolved
Hide resolved
packages/compass-indexes/src/components/create-index-form/index-flow-section.tsx
Outdated
Show resolved
Hide resolved
packages/compass-indexes/src/components/create-index-form/index-flow-section.tsx
Outdated
Show resolved
Hide resolved
packages/compass-indexes/src/components/create-index-form/index-flow-section.tsx
Show resolved
Hide resolved
@@ -173,25 +173,30 @@ const IndexFlowSection = ({ | |||
{} | |||
); | |||
|
|||
const coveredQueriesArr = fields.map((field, index) => { | |||
return { [field.name]: index + 1 }; | |||
const [coveredQueriesObj, setCoveredQueriesObj] = useState<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the user changes the fields should we reset this so that they have to re-click the show covered queries button? That way we don't show them something out of date. Fine as is also, I'm mostly thinking if it's a nicer experience for the user one way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://jira.mongodb.org/browse/CLOUDP-311787 i have this ticket for polishing up all the UX for further disabled states, error states etc for everything across the modal
Description
https://jira.mongodb.org/browse/CLOUDP-311782
Best viewed with 'hide whitespace'
Added a tooltip for when the type is not supported:

Default state:

One field:

Two fields:

Three fields:

Checklist
Motivation and Context
Types of changes