From 37c2d6d9c96fb207d56deca4d7906fe5c89b5f6a Mon Sep 17 00:00:00 2001 From: Sunny Guduru Date: Tue, 9 Apr 2024 16:41:39 -0700 Subject: [PATCH] feat: change flag toggle success message for mobile sdks (#156) --- internal/quickstart/choose_sdk.go | 9 +++++---- internal/quickstart/toggle_flag.go | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/quickstart/choose_sdk.go b/internal/quickstart/choose_sdk.go index e3093a4d..e4b28be7 100644 --- a/internal/quickstart/choose_sdk.go +++ b/internal/quickstart/choose_sdk.go @@ -19,6 +19,7 @@ var ( const ( clientSideSDK = "client" + mobileSDK = "mobile" serverSideSDK = "server" ) @@ -116,12 +117,12 @@ var SDKs = []sdkDetail{ kind: clientSideSDK, url: "https://raw.githubusercontent.com/launchdarkly/vue-client-sdk/main/example/README.md", }, - {canonicalName: "ios-swift", displayName: "iOS", kind: clientSideSDK}, + {canonicalName: "ios-swift", displayName: "iOS", kind: mobileSDK}, {canonicalName: "go", displayName: "Go", kind: serverSideSDK}, - {canonicalName: "android", displayName: "Android", kind: clientSideSDK}, - {canonicalName: "react-native", displayName: "React Native", kind: clientSideSDK}, + {canonicalName: "android", displayName: "Android", kind: mobileSDK}, + {canonicalName: "react-native", displayName: "React Native", kind: mobileSDK}, {canonicalName: "ruby", displayName: "Ruby", kind: serverSideSDK}, - {canonicalName: "flutter", displayName: "Flutter", kind: clientSideSDK}, + {canonicalName: "flutter", displayName: "Flutter", kind: mobileSDK}, {canonicalName: "dotnet-client", displayName: ".NET (client-side)", kind: clientSideSDK}, {canonicalName: "erlang", displayName: "Erlang", kind: serverSideSDK}, {canonicalName: "rust", displayName: "Rust", kind: serverSideSDK}, diff --git a/internal/quickstart/toggle_flag.go b/internal/quickstart/toggle_flag.go index ec289142..01182318 100644 --- a/internal/quickstart/toggle_flag.go +++ b/internal/quickstart/toggle_flag.go @@ -64,6 +64,7 @@ func (m toggleFlagModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { var logTypeMap = map[string]string{ serverSideSDK: "application logs", + mobileSDK: "application", clientSideSDK: "browser", }