Skip to content
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

Add a call to action banner for the cloud #442

Merged
merged 6 commits into from
Jul 10, 2023
Merged

Conversation

bidoubiwa
Copy link
Contributor

@bidoubiwa bidoubiwa commented Jun 15, 2023

Fixes: #441

A banner now automatically appears at the top of the page with a call to action to the Meilisearch cloud.

To deactivate the banner, you can add cloud_banner=false to the query parameters.

TODO:

  • Implement banner
  • Implement query param
  • Implement caching of banner visibility

@bidoubiwa bidoubiwa force-pushed the add_cloud_banner branch 2 times, most recently from 8086aaf to 8e8b542 Compare June 15, 2023 18:00
@bidoubiwa bidoubiwa requested a review from mdubus June 15, 2023 18:03
@bidoubiwa bidoubiwa marked this pull request as ready for review June 15, 2023 18:03
@mdubus
Copy link
Member

mdubus commented Jun 19, 2023

As commented here, couldn't we use the referral to prevent the banner from being displayed if we come from the cloud? It would prevent us from adding the query param on the Cloud on every link to the mini-dashboard 😄

@bidoubiwa
Copy link
Contributor Author

It depends on when we would like to use remove the banner. If it is only when someone clicks on their meilisearch instance through the cloud than yes. But if we want to provide a like to share to the search preview without the banner, than it wouldn't work.

@mdubus
Copy link
Member

mdubus commented Jun 19, 2023

It depends on when we would like to use remove the banner. If it is only when someone clicks on their meilisearch instance through the cloud than yes. But if we want to provide a like to share to the search preview without the banner, than it wouldn't work.

Make sense. Thanks a lot 🙏

Copy link
Member

@mdubus mdubus left a comment

Choose a reason for hiding this comment

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

LGTM ✨🦕

@bidoubiwa
Copy link
Contributor Author

⚠️ If this PR is merged, we need to inform the cloud so that they can implement the query parameter.

Co-authored-by: Guillaume Mourier <guillaume@meilisearch.com>
@bidoubiwa
Copy link
Contributor Author

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Jul 10, 2023

@meili-bors meili-bors bot merged commit 298daff into main Jul 10, 2023
5 checks passed
@meili-bors meili-bors bot deleted the add_cloud_banner branch July 10, 2023 12:48
meili-bors bot added a commit that referenced this pull request Jul 18, 2023
453: Added api-key warning banner r=bidoubiwa a=vaibhav135

# Pull Request

## Related issue
Fixes #434 

Took creation reference from  #442

## What does this PR do?
- Shows api_key (warning) banner. If the api_key is found in the url.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: vaibhav bisht <vaibhavbisht592@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display a banner mentioning the cloud product
3 participants