Skip to content

Commit

Permalink
satellite/console: feature flag for new setup app flow
Browse files Browse the repository at this point in the history
Added new feature flag for new setup application flow

Issue:
#6829

Change-Id: I8ca20620162782e92f579e6af1c615a92da39040
  • Loading branch information
VitaliiShpital authored and Storj Robot committed Mar 20, 2024
1 parent bf817ec commit 11124b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions satellite/console/consoleweb/config.go
Expand Up @@ -65,6 +65,7 @@ type FrontendConfig struct {
AnalyticsEnabled bool `json:"analyticsEnabled"`
PlausibleScriptUrl string `json:"plausibleScriptUrl"`
PlausibleDomain string `json:"plausibleDomain"`
NewAppSetupFlowEnabled bool `json:"newAppSetupFlowEnabled"`
}

// Satellites is a configuration value that contains a list of satellite names and addresses.
Expand Down
2 changes: 2 additions & 0 deletions satellite/console/consoleweb/server.go
Expand Up @@ -109,6 +109,7 @@ type Config struct {
ApplicationsPageEnabled bool `help:"whether applications page should be shown" default:"false"`
DaysBeforeTrialEndNotification int `help:"days left before trial end notification" default:"3"`
BadPasswordsFile string `help:"path to a local file with bad passwords list, empty path == skip check" default:""`
NewAppSetupFlowEnabled bool `help:"whether new application setup flow should be used" default:"false"`

OauthCodeExpiry time.Duration `help:"how long oauth authorization codes are issued for" default:"10m"`
OauthAccessTokenExpiry time.Duration `help:"how long oauth access tokens are issued for" default:"24h"`
Expand Down Expand Up @@ -847,6 +848,7 @@ func (server *Server) frontendConfigHandler(w http.ResponseWriter, r *http.Reque
PlausibleDomain: server.AnalyticsConfig.Plausible.Domain,
PlausibleScriptUrl: server.AnalyticsConfig.Plausible.ScriptUrl,
DaysBeforeTrialEndNotification: server.config.DaysBeforeTrialEndNotification,
NewAppSetupFlowEnabled: server.config.NewAppSetupFlowEnabled,
}

err := json.NewEncoder(w).Encode(&cfg)
Expand Down
3 changes: 3 additions & 0 deletions satellite/satellite-config.yaml.lock
Expand Up @@ -382,6 +382,9 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0
# indicates if storj native token payments system is enabled
# console.native-token-payments-enabled: false

# whether new application setup flow should be used
# console.new-app-setup-flow-enabled: false

# how long oauth access tokens are issued for
# console.oauth-access-token-expiry: 24h0m0s

Expand Down
1 change: 1 addition & 0 deletions web/satellite/src/types/config.gen.ts
Expand Up @@ -61,6 +61,7 @@ export class FrontendConfig {
analyticsEnabled: boolean;
plausibleScriptUrl: string;
plausibleDomain: string;
newAppSetupFlowEnabled: boolean;
}

export class MultiCaptchaConfig {
Expand Down

0 comments on commit 11124b4

Please sign in to comment.