Skip to content

insights: modal to announce GA

Created by: Joelkw

Note there is a dependency on https://github.com/sourcegraph/customer/issues/655

We need to update our beta modal copy to announce our GA!

This is part of RFC 566

We need to set this explicitly tied to 3.37. If a user has not accepted but is on 3.38 or higher, we don't want to show it because they won't still have access – things will be no longer free after that. This can happen if someone is on an old instance that is quickly upgraded from 3.35 to 3.39 before they revisit Insights. In that case, we should never fire this modal.

So, the only conditions you (per user) see this modal are all of the below, AND-ed:

  • You are on Sourcegraph 3.37.x
  • It is after Feb 24, 2022
  • You have not already accepted it
  • You haven't purchased it (no code-insights license tag)

The general logic of taking folks back to the homepage if don't accept, etc., can all be reused from the beta modal.