Add papercuts support to the support form
Summary: For groups that have a papercuts entry, the support form will now link to them. This will hopefully increase the amount of feedback we get. Reviewed By: nikoant Differential Revision: D24921296 fbshipit-source-id: c6d07a10838a7abb1c70e8d61197a7b339f611bc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b66f452271
commit
229f7bd036
@@ -38,6 +38,7 @@ export default Object.freeze({
|
|||||||
defaultPlugins: ['DeviceLogs'],
|
defaultPlugins: ['DeviceLogs'],
|
||||||
supportedOS: ['Android'] as Array<OS>,
|
supportedOS: ['Android'] as Array<OS>,
|
||||||
deeplinkSuffix: 'default',
|
deeplinkSuffix: 'default',
|
||||||
|
papercuts: '',
|
||||||
},
|
},
|
||||||
|
|
||||||
SUPPORT_GROUPS: [],
|
SUPPORT_GROUPS: [],
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export class Group {
|
|||||||
defaultPlugins: Array<string>,
|
defaultPlugins: Array<string>,
|
||||||
supportedOS: Array<OS>,
|
supportedOS: Array<OS>,
|
||||||
deeplinkSuffix: string,
|
deeplinkSuffix: string,
|
||||||
|
papercuts?: string,
|
||||||
) {
|
) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.requiredPlugins = requiredPlugins;
|
this.requiredPlugins = requiredPlugins;
|
||||||
@@ -56,6 +57,7 @@ export class Group {
|
|||||||
this.workplaceGroupID = workplaceGroupID;
|
this.workplaceGroupID = workplaceGroupID;
|
||||||
this.supportedOS = supportedOS;
|
this.supportedOS = supportedOS;
|
||||||
this.deeplinkSuffix = deeplinkSuffix;
|
this.deeplinkSuffix = deeplinkSuffix;
|
||||||
|
this.papercuts = papercuts;
|
||||||
}
|
}
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
requiredPlugins: Array<string>;
|
requiredPlugins: Array<string>;
|
||||||
@@ -63,6 +65,7 @@ export class Group {
|
|||||||
workplaceGroupID: number;
|
workplaceGroupID: number;
|
||||||
supportedOS: Array<OS>;
|
supportedOS: Array<OS>;
|
||||||
deeplinkSuffix: string;
|
deeplinkSuffix: string;
|
||||||
|
papercuts?: string;
|
||||||
|
|
||||||
getPluginsToSelect(): Array<string> {
|
getPluginsToSelect(): Array<string> {
|
||||||
return Array.from(
|
return Array.from(
|
||||||
@@ -261,6 +264,7 @@ const DEFAULT_GROUP = new Group(
|
|||||||
DEFAULT_SUPPORT_GROUP.defaultPlugins,
|
DEFAULT_SUPPORT_GROUP.defaultPlugins,
|
||||||
DEFAULT_SUPPORT_GROUP.supportedOS,
|
DEFAULT_SUPPORT_GROUP.supportedOS,
|
||||||
DEFAULT_SUPPORT_GROUP.deeplinkSuffix,
|
DEFAULT_SUPPORT_GROUP.deeplinkSuffix,
|
||||||
|
DEFAULT_SUPPORT_GROUP.papercuts,
|
||||||
);
|
);
|
||||||
|
|
||||||
export const SUPPORTED_GROUPS: Array<Group> = [
|
export const SUPPORTED_GROUPS: Array<Group> = [
|
||||||
@@ -273,6 +277,7 @@ export const SUPPORTED_GROUPS: Array<Group> = [
|
|||||||
defaultPlugins,
|
defaultPlugins,
|
||||||
supportedOS,
|
supportedOS,
|
||||||
deeplinkSuffix,
|
deeplinkSuffix,
|
||||||
|
papercuts,
|
||||||
}) => {
|
}) => {
|
||||||
return new Group(
|
return new Group(
|
||||||
name,
|
name,
|
||||||
@@ -281,6 +286,7 @@ export const SUPPORTED_GROUPS: Array<Group> = [
|
|||||||
defaultPlugins,
|
defaultPlugins,
|
||||||
supportedOS,
|
supportedOS,
|
||||||
deeplinkSuffix,
|
deeplinkSuffix,
|
||||||
|
papercuts,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user