Skip to content

Conversation

gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Dec 14, 2023

When commands required for performance tab are failing and the error is atlas error, we show the Performance item as grayed out and also show a tooltip with text explaining why

Light Dark
image image

Some questions I asked product:

  • Any other errors we want to check for here? Not in this PR
  • Should we align existing ADF behavior where we just hide the item with this one? Yes
  • Check whether or not the disabled message needs to be changed. Updated the message

@github-actions github-actions bot added the feat label Dec 14, 2023
@gribnoysup gribnoysup force-pushed the gray-out-performance-tab-for-atlas branch from 8e0ef73 to 979cdfe Compare December 14, 2023 08:47

// Checking if "Performance" tab is supported by running commands required for
// the "Performance" tab to function
void Promise.all([dataService.currentOp(), dataService.top()]).then(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcasimir this check looks good to you? Anything else you'd want to see here?

@gribnoysup
Copy link
Collaborator Author

Pushed some updates based on product feedback

@gribnoysup gribnoysup merged commit 4bf2666 into main Dec 14, 2023
@gribnoysup gribnoysup deleted the gray-out-performance-tab-for-atlas branch December 14, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants