From 64ca717ae968a432198e27cefc7bace02ba3b8f5 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Thu, 9 Apr 2020 09:52:40 -0700 Subject: [PATCH] Add support of CK in Flipper's Support Form Summary: As per the title it adds the CK support to the Flipper's support form. Reviewed By: jknoxville Differential Revision: D20943408 fbshipit-source-id: bc8f0ac6a4974fe8258e91d7ac9437931c4d4abd --- .../chrome/mainsidebar/MainSidebarUtilsSection.tsx | 4 +--- desktop/app/src/fb-stubs/constants.tsx | 1 + desktop/app/src/reducers/supportForm.tsx | 13 ++++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/desktop/app/src/chrome/mainsidebar/MainSidebarUtilsSection.tsx b/desktop/app/src/chrome/mainsidebar/MainSidebarUtilsSection.tsx index 9a602c6c2..7d666e161 100644 --- a/desktop/app/src/chrome/mainsidebar/MainSidebarUtilsSection.tsx +++ b/desktop/app/src/chrome/mainsidebar/MainSidebarUtilsSection.tsx @@ -91,9 +91,7 @@ function MainSidebarUtilsSection({ name={'app-dailies'} isActive={active} /> - - Litho/GraphQL Support Request - + Support Requests ); })()} diff --git a/desktop/app/src/fb-stubs/constants.tsx b/desktop/app/src/fb-stubs/constants.tsx index 8ec130e58..a59834750 100644 --- a/desktop/app/src/fb-stubs/constants.tsx +++ b/desktop/app/src/fb-stubs/constants.tsx @@ -32,4 +32,5 @@ export default Object.freeze({ LITHO_SUPPORT_GROUP_ID: 0, GRAPHQL_ANDROID_SUPPORT_GROUP_ID: 0, GRAPHQL_IOS_SUPPORT_GROUP_ID: 0, + COMPONENTKIT_GROUP_ID: 0, }); diff --git a/desktop/app/src/reducers/supportForm.tsx b/desktop/app/src/reducers/supportForm.tsx index c3d8683df..ce24c58bd 100644 --- a/desktop/app/src/reducers/supportForm.tsx +++ b/desktop/app/src/reducers/supportForm.tsx @@ -30,6 +30,7 @@ const { GRAPHQL_IOS_SUPPORT_GROUP_ID, GRAPHQL_ANDROID_SUPPORT_GROUP_ID, LITHO_SUPPORT_GROUP_ID, + COMPONENTKIT_GROUP_ID, } = constants; type SubmediaType = | {uploadID: string; status: 'Uploaded'} @@ -254,7 +255,8 @@ export class Group { export type GroupNames = | 'Litho Support' | 'GraphQL Android Support' - | 'GraphQL iOS Support'; + | 'GraphQL iOS Support' + | 'ComponentKit'; export const LITHO_GROUP = new Group( 'Litho Support', @@ -280,10 +282,19 @@ export const GRAPHQL_IOS_GROUP = new Group( ['iOS'], ); +export const COMPONENTKIT_GROUP = new Group( + 'ComponentKit', + COMPONENTKIT_GROUP_ID, + ['Inspector'], + ['Sections', 'DeviceLogs'], + ['iOS'], +); + export const SUPPORTED_GROUPS: Array = [ LITHO_GROUP, GRAPHQL_ANDROID_GROUP, GRAPHQL_IOS_GROUP, + COMPONENTKIT_GROUP, ]; export type MediaType = Array;