meilisearch / mini-dashboard

mini-dashboard for Meilisearch

Home Page:https://edge-preview-meili.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display a banner mentioning the cloud product

gmourier opened this issue · comments

Capture d’écran 2023-06-14 à 18 16 13

  • The banner can be closed with the cross icon on the right. If it is closed, it should not reappear for the user again.
  • It must be possible to deactivate it via a query parameter or a header, e.g ?banner=false; It should not be displayed for users who open the mini-dashboard from the cloud interface.
  • The link on "Meilisearch Cloud" is this one.

@bidoubiwa I have a figma link at hand if needed

cc @mayasssh, @davelarkan, @brunoocasali

Thanks @gmourier

The query param to hide the banner on the cloud should work fine for us. It's a little "fragile" but absolutely fine for a first iteration.

Just thinking out loud, maybe we can use something like document.referrer to get the provenance URL and compare it with the Cloud URL 🤔
Don't know if that would work, some tests have to be made, but it could be a much "cleaner" solution than the query params one 😀