From cbaca8b17ef13e8b08f086204090b21dbd19b568 Mon Sep 17 00:00:00 2001 From: cl-mitch <104023143+cl-mitch@users.noreply.github.com> Date: Thu, 2 Jun 2022 09:30:27 -0500 Subject: [PATCH] web/satellite added new billing screen feature flag (#4836) New feature flag implemented to enable the new billing flow. Co-authored-by: Maximillian von Briesen --- satellite/console/consoleweb/server.go | 3 +++ scripts/testdata/satellite-config.yaml.lock | 3 +++ web/satellite/index.html | 1 + 3 files changed, 7 insertions(+) diff --git a/satellite/console/consoleweb/server.go b/satellite/console/consoleweb/server.go index 8dad65e26..824e681b9 100644 --- a/satellite/console/consoleweb/server.go +++ b/satellite/console/consoleweb/server.go @@ -96,6 +96,7 @@ type Config struct { NewNavigation bool `help:"indicates if new navigation structure should be rendered" default:"true"` NewObjectsFlow bool `help:"indicates if new objects flow should be used" default:"true"` NewAccessGrantFlow bool `help:"indicates if new access grant flow should be used" default:"false"` + NewBillingScreen bool `help:"indicates if new billing screens should be used" default:"false"` GeneratedAPIEnabled bool `help:"indicates if generated console api should be used" default:"false"` InactivityTimerEnabled bool `help:"indicates if session can be timed out due inactivity" default:"false"` InactivityTimerDelay int `help:"inactivity timer delay in seconds" default:"600"` @@ -418,6 +419,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) { NewNavigation bool NewObjectsFlow bool NewAccessGrantFlow bool + NewBillingScreen bool InactivityTimerEnabled bool InactivityTimerDelay int OptionalSignupSuccessURL string @@ -455,6 +457,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) { data.NewNavigation = server.config.NewNavigation data.NewObjectsFlow = server.config.NewObjectsFlow data.NewAccessGrantFlow = server.config.NewAccessGrantFlow + data.NewBillingScreen = server.config.NewBillingScreen data.InactivityTimerEnabled = server.config.InactivityTimerEnabled data.InactivityTimerDelay = server.config.InactivityTimerDelay data.OptionalSignupSuccessURL = server.config.OptionalSignupSuccessURL diff --git a/scripts/testdata/satellite-config.yaml.lock b/scripts/testdata/satellite-config.yaml.lock index 41647155a..f805de485 100755 --- a/scripts/testdata/satellite-config.yaml.lock +++ b/scripts/testdata/satellite-config.yaml.lock @@ -181,6 +181,9 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0 # indicates if new access grant flow should be used # console.new-access-grant-flow: false +# indicates if new billing screens should be used +# console.new-billing-screen: false + # indicates if new navigation structure should be rendered # console.new-navigation: true diff --git a/web/satellite/index.html b/web/satellite/index.html index 12212066b..2916ff221 100644 --- a/web/satellite/index.html +++ b/web/satellite/index.html @@ -33,6 +33,7 @@ +