-
Notifications
You must be signed in to change notification settings - Fork 214
feat(indexes): add Atlas search indexes link when banner dismissed COMPASS-9158 #6880
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
const DISMISSED_SEARCH_INDEXES_BANNER_LOCAL_STORAGE_KEY = | ||
'mongodb_compass_dismissedSearchIndexesBanner' as const; |
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.
This is duplicated in components/indexes/indexes.tsx - where I can put it in a common place?
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.
lgtm! one q on tests, not a blocker
Updated the pr/commit title to pass the check:
https://wiki.corp.mongodb.com/spaces/DRIVERS/pages/296292675/DevTools+PR+CR+Guidelines#DevToolsPR%2BCRGuidelines-PRTitleandDescription
Took me a bit to find where those docs are now lol, in the morning I'll check that the github action links to that.
@@ -42,6 +42,8 @@ describe('IndexesToolbar Component', function () { | |||
onIndexViewChanged={() => {}} | |||
onCreateRegularIndexClick={() => {}} | |||
onCreateSearchIndexClick={() => {}} | |||
namespace="" | |||
showAtlasSearchLink={false} |
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.
Should we add a unit test to make sure it's the right url?
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.
I think that's already somewhat covered by https://github.com/mongodb-js/compass/blob/main/packages/compass-indexes/src/utils/atlas-search-indexes-link.spec.ts?
https://jira.mongodb.org/browse/COMPASS-9158
Screen.Recording.2025-04-28.at.8.11.44.PM.mov
Description
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes