Browse Source

Rename working groups to their actual roles in Pioneer (tokenomics, wg, proposals)

Edvin Dzidic 3 years ago
parent
commit
80fbe86e16

+ 6 - 4
pioneer/packages/joy-proposals/src/forms/GenericWorkingGroupProposalForm.tsx

@@ -43,18 +43,20 @@ type ExportComponentProps = ProposalFormExportProps<FormAdditionalProps, FormVal
 type FormContainerProps = ProposalFormContainerProps<ExportComponentProps>;
 export type FormInnerProps = ProposalFormInnerProps<FormContainerProps, FormValues>;
 
+const OPERATIONS_GROUP_NAMES = { Alpha: 'Builders', Beta: 'Human Resources', Gamma: 'Marketing' };
+
 const availableGroupsOptions = Object.keys(WorkingGroupDef)
   .filter((wgKey) => wgKey !== 'Gateway') // Gateway group not yet supported!
   .map((wgKey) => {
-    let text = `${wgKey} Working Group`;
+    let operationsGroupName;
 
     if (wgKey.toLowerCase().includes('operations')) {
-      const workingGroupType = wgKey.slice('operations'.length);
+      const operationsGroupType = wgKey.slice('operations'.length) as 'Alpha' | 'Beta' | 'Gamma';
 
-      text = `Operations Working Group ${workingGroupType}`;
+      operationsGroupName = OPERATIONS_GROUP_NAMES[operationsGroupType];
     }
 
-    return { text, value: wgKey };
+    return { text: `${operationsGroupName ?? wgKey} Working Group`, value: wgKey };
   });
 
 export const GenericWorkingGroupProposalForm: React.FunctionComponent<FormInnerProps> = (props) => {

+ 4 - 0
pioneer/packages/joy-roles/src/tabs/WorkingGroup.tsx

@@ -75,6 +75,7 @@ type GroupOverviewProps = GroupOverviewOuterProps & {
 
 interface OperationsGroupProps extends GroupOverviewOuterProps{
   group: WorkingGroups;
+  customGroupName?: string;
 }
 
 const GroupOverview = Loadable<GroupOverviewProps>(
@@ -165,6 +166,7 @@ export const OperationsGroup = (props: OperationsGroupProps) => (
 export const OperationsGroupAlpha = (props: GroupOverviewOuterProps) => (
   <OperationsGroup
     group={WorkingGroups.OperationsAlpha}
+    customGroupName='Builders'
     {...props}
   />
 );
@@ -172,6 +174,7 @@ export const OperationsGroupAlpha = (props: GroupOverviewOuterProps) => (
 export const OperationsGroupBeta = (props: GroupOverviewOuterProps) => (
   <OperationsGroup
     group={WorkingGroups.OperationsBeta}
+    customGroupName='Human Resources'
     {...props}
   />
 );
@@ -179,6 +182,7 @@ export const OperationsGroupBeta = (props: GroupOverviewOuterProps) => (
 export const OperationsGroupGamma = (props: GroupOverviewOuterProps) => (
   <OperationsGroup
     group={WorkingGroups.OperationsGamma}
+    customGroupName='Marketing'
     {...props}
   />
 );

+ 4 - 4
pioneer/packages/joy-roles/src/working_groups.ts

@@ -19,8 +19,8 @@ export const AvailableGroups: readonly WorkingGroups[] = [
 export const workerRoleNameByGroup: { [key in WorkingGroups]: string } = {
   [WorkingGroups.ContentCurators]: 'Content Curator',
   [WorkingGroups.StorageProviders]: 'Storage Provider',
-  [WorkingGroups.OperationsAlpha]: 'Operations Group Alpha Worker',
-  [WorkingGroups.OperationsBeta]: 'Operations Group Beta Worker',
-  [WorkingGroups.OperationsGamma]: 'Operations Group Gamma Worker',
-  [WorkingGroups.Distribution]: 'Distribution'
+  [WorkingGroups.OperationsAlpha]: 'Builder',
+  [WorkingGroups.OperationsBeta]: 'HR Worker',
+  [WorkingGroups.OperationsGamma]: 'Marketer',
+  [WorkingGroups.Distribution]: 'Distributor'
 };

+ 18 - 18
pioneer/packages/joy-tokenomics/src/tokenomicsGroupsData.ts

@@ -53,45 +53,45 @@ export const WORKING_GROUPS = [
   {
     groupType: 'operationsAlpha' as const,
     titleCutoff: 1050,
-    shortTitle: 'Operations A.',
-    title: 'Operations Alpha',
-    helpText: 'The current Operations Group Alpha members, and the sum of their projected rewards and stakes.',
+    shortTitle: 'Builders',
+    title: 'Builders',
+    helpText: 'The current Builders, and the sum of their projected rewards and stakes.',
     color: '#009688',
     lead: {
       titleCutoff: 1015,
-      shortTitle: 'Operations A. Lead',
-      title: 'Operations Alpha Lead',
-      helpText: 'Current Operations Group Alpha Lead, and their projected reward and stake.',
+      shortTitle: 'Builders Lead',
+      title: 'Builders Lead',
+      helpText: 'Current Builders Lead, and their projected reward and stake.',
       color: '#00bcd4'
     }
   },
   {
     groupType: 'operationsBeta' as const,
     titleCutoff: 1050,
-    shortTitle: 'Operations B.',
-    title: 'Operations Beta',
-    helpText: 'The current Operations Group Beta members, and the sum of their projected rewards and stakes.',
+    shortTitle: 'Human Res.',
+    title: 'Human Resources',
+    helpText: 'The current Human Resources Workers, and the sum of their projected rewards and stakes.',
     color: '#03a9f4',
     lead: {
       titleCutoff: 1015,
-      shortTitle: 'Operations B. Lead',
-      title: 'Operations Beta Lead',
-      helpText: 'Current Operations Group Beta Lead, and their projected reward and stake.',
+      shortTitle: 'HR Lead',
+      title: 'Human Res. Lead',
+      helpText: 'Current Human Resources Lead, and their projected reward and stake.',
       color: '#2196f3'
     }
   },
   {
     groupType: 'operationsGamma' as const,
     titleCutoff: 1050,
-    shortTitle: 'Operations G.',
-    title: 'Operations Gamma',
-    helpText: 'The current Operations Group Gamma members, and the sum of their projected rewards and stakes.',
+    shortTitle: 'Marketing',
+    title: 'Marketing',
+    helpText: 'The current Marketers, and the sum of their projected rewards and stakes.',
     color: '#3f51b5',
     lead: {
       titleCutoff: 1015,
-      shortTitle: 'Operations G. Lead',
-      title: 'Operations Gamma Lead',
-      helpText: 'Current Operations Group Gamma Lead, and their projected reward and stake.',
+      shortTitle: 'Marketing Lead',
+      title: 'Marketing Lead',
+      helpText: 'Current Marketing Lead, and their projected reward and stake.',
       color: '#673ab7'
     }
   },