-
Notifications
You must be signed in to change notification settings - Fork 201
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
chore(schema): add tooltip showing folks the export button when they legacy export schema COMPASS-8971 #6744
Conversation
…legacy export schema
packages/compass-schema/src/components/export-schema-legacy-modal.tsx
Outdated
Show resolved
Hide resolved
Thank you! No tests needed. Just one thing - if it's not too complicated, it would be nice to show also if they switch to and complete the new export. Since they came in the legacy way, it might be they haven't noticed the button. |
@@ -238,7 +238,9 @@ export const changeExportSchemaFormat = ( | |||
try { | |||
const schemaAccessor = schemaAccessorRef.current; | |||
if (!schemaAccessor) { | |||
throw new Error('No schema analysis available'); | |||
throw new Error( | |||
"No schema analysis available. Please analyze the collection's schema before exporting." |
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.
Drive-by, updated this error message to be a bit more descriptive as folks do see it if they try exporting and they have not yet run analysis.
@paula-stacho Pushed a commit to show the tooltip after the new export modal has closed after using the legacy menu entry. Looks like there was an simple way to do it after all. |
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.
Thank you!
COMPASS-8971
This'll go away eventually. Didn't add any tests, I can if folks would like.
Drive by renamed the
banner
tomodal
as it is a modal.