Skip to content

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

Merged
merged 4 commits into from
Apr 29, 2025

Conversation

syn-zhu
Copy link
Contributor

@syn-zhu syn-zhu commented Apr 23, 2025

https://jira.mongodb.org/browse/COMPASS-9158

Screen.Recording.2025-04-28.at.8.11.44.PM.mov

Description

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Comment on lines 71 to 72
const DISMISSED_SEARCH_INDEXES_BANNER_LOCAL_STORAGE_KEY =
'mongodb_compass_dismissedSearchIndexesBanner' as const;
Copy link
Contributor Author

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?

@syn-zhu syn-zhu requested a review from Anemy April 29, 2025 00:12
@syn-zhu syn-zhu marked this pull request as ready for review April 29, 2025 00:14
@syn-zhu syn-zhu changed the title update banner feat: add Atlas search indexes link when banner dismissed Apr 29, 2025
@github-actions github-actions bot added the feat label Apr 29, 2025
@Anemy Anemy changed the title feat: add Atlas search indexes link when banner dismissed feat(indexes): add Atlas search indexes link when banner dismissed COMPASS-9158 Apr 29, 2025
Copy link
Member

@Anemy Anemy left a 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}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Anemy Anemy added the no release notes Fix or feature not for release notes label Apr 29, 2025
@syn-zhu syn-zhu merged commit e7b7d3e into main Apr 29, 2025
101 of 107 checks passed
@syn-zhu syn-zhu deleted the update-search-index-banner branch April 29, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants