Browse Source

Add operations runtime group name to tokenomics table help texts, rename in working groups opportunities filter and label

Edvin Dzidic 3 years ago
parent
commit
d1596e6e73

+ 18 - 2
pioneer/packages/joy-roles/src/tabs/Opportunities.tsx

@@ -484,6 +484,22 @@ const OpeningLabel = styled(Label)`
 
 type OpeningViewProps = WorkingGroupOpening & BlockTimeProps & MemberIdProps
 
+const renderWorkingGroupName = (workingGroup: WorkingGroups) => {
+  if(workingGroup === WorkingGroups.OperationsAlpha) {
+    return "Builders";
+  }
+
+  if(workingGroup === WorkingGroups.OperationsBeta) {
+    return "Human Resources";
+  }
+
+  if(workingGroup === WorkingGroups.OperationsGamma) {
+    return "Marketing";
+  }
+
+  return workingGroup;
+}
+
 export const OpeningView = Loadable<OpeningViewProps>(
   ['opening', 'block_time_in_seconds'],
   (props) => {
@@ -495,7 +511,7 @@ export const OpeningView = Loadable<OpeningViewProps>(
         <OpeningTitle>
           {text.job.title}
           <OpeningLabel>
-            { _.startCase(props.meta.group) }{ isLeadOpening ? ' Lead' : '' }
+            { _.startCase(renderWorkingGroupName(props.meta.group)) }{ isLeadOpening ? ' Lead' : '' }
           </OpeningLabel>
         </OpeningTitle>
         <Card fluid className='container'>
@@ -554,7 +570,7 @@ export const OpeningsView = Loadable<OpeningsViewProps>(
 
     const groupOption = (group: WorkingGroups | null, lead = false) => ({
       value: `${basePath}${group ? `/${group}` : ''}${lead ? '/lead' : ''}`,
-      text: _.startCase(`${group || 'All opportunities'}`) + (lead ? ' (Lead)' : '')
+      text: _.startCase(`${group ? renderWorkingGroupName(group) : 'All opportunities'}`) + (lead ? ' (Lead)' : '')
     });
     // Can assert "props.openings!" because we're using "Loadable" which prevents them from beeing undefined
     const filteredOpenings = props.openings!.filter((o) =>

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

@@ -55,13 +55,13 @@ export const WORKING_GROUPS = [
     titleCutoff: 1050,
     shortTitle: 'Builders',
     title: 'Builders',
-    helpText: 'The current Builders, and the sum of their projected rewards and stakes.',
+    helpText: 'The current Builders (Operations Group Alpha), and the sum of their projected rewards and stakes.',
     color: '#009688',
     lead: {
       titleCutoff: 1015,
       shortTitle: 'Builders Lead',
       title: 'Builders Lead',
-      helpText: 'Current Builders Lead, and their projected reward and stake.',
+      helpText: 'Current Builders (Operations Group Alpha) Lead, and their projected reward and stake.',
       color: '#00bcd4'
     }
   },
@@ -70,13 +70,13 @@ export const WORKING_GROUPS = [
     titleCutoff: 1050,
     shortTitle: 'Human Res.',
     title: 'Human Resources',
-    helpText: 'The current Human Resources Workers, and the sum of their projected rewards and stakes.',
+    helpText: 'The current Human Resources (Operations Group Beta) Workers, and the sum of their projected rewards and stakes.',
     color: '#03a9f4',
     lead: {
       titleCutoff: 1015,
       shortTitle: 'HR Lead',
       title: 'Human Res. Lead',
-      helpText: 'Current Human Resources Lead, and their projected reward and stake.',
+      helpText: 'Current Human Resources (Operations Group Beta) Lead, and their projected reward and stake.',
       color: '#2196f3'
     }
   },
@@ -85,13 +85,13 @@ export const WORKING_GROUPS = [
     titleCutoff: 1050,
     shortTitle: 'Marketing',
     title: 'Marketing',
-    helpText: 'The current Marketers, and the sum of their projected rewards and stakes.',
+    helpText: 'The current Marketers (Operations Group Gamma), and the sum of their projected rewards and stakes.',
     color: '#3f51b5',
     lead: {
       titleCutoff: 1015,
       shortTitle: 'Marketing Lead',
       title: 'Marketing Lead',
-      helpText: 'Current Marketing Lead, and their projected reward and stake.',
+      helpText: 'Current Marketing Lead (Operations Group Gamma), and their projected reward and stake.',
       color: '#673ab7'
     }
   },