Skip to content

Commit 98b6f74

Browse files
committed
About Us: Name new operations lead role as Salesforce Team Lead
1 parent f8f881c commit 98b6f74

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

common/components/componentsBySection/AboutUs/BioPersonData.jsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @flow
22

33
import type {VolunteerUserData, VolunteerDetailsAPIData} from "../../utils/ProjectAPIUtils.js";
4+
import type {Dictionary} from "../../types/Generics.jsx";
45

56
export type BioPersonData = {|
67
first_name: string,
@@ -12,16 +13,17 @@ export type BioPersonData = {|
1213
profile_id: ?number
1314
|};
1415

15-
export function VolunteerUserDataToBioPersonData(v: VolunteerUserData, title: string, title_tag: ?string): BioPersonData {
16-
return {
17-
first_name: v.first_name,
18-
last_name: v.last_name,
19-
title: [title],
20-
title_tag: title_tag,
21-
user_thumbnail: v.user_thumbnail && v.user_thumbnail.publicUrl,
22-
bio_text: v.about_me,
23-
profile_id: v.id
24-
};
16+
export function VolunteerUserDataToBioPersonData(v: VolunteerUserData, title: string, title_tag: ?string, nameOverrides: ?Dictionary<string>): BioPersonData {
17+
const _title: string = nameOverrides && title_tag in nameOverrides ? nameOverrides[title_tag] : title;
18+
return {
19+
first_name: v.first_name,
20+
last_name: v.last_name,
21+
title: [_title],
22+
title_tag: title_tag,
23+
user_thumbnail: v.user_thumbnail && v.user_thumbnail.publicUrl,
24+
bio_text: v.about_me,
25+
profile_id: v.id
26+
};
2527
}
2628

2729
export function VolunteerDetailsAPIDataEqualsBioPersonData(v: VolunteerDetailsAPIData, b: BioPersonData): boolean {

common/components/componentsBySection/AboutUs/TeamSections.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {VolunteerDetailsAPIDataEqualsBioPersonData, VolunteerUserDataToBioPerson
1212
import GroupBy from "../../utils/groupBy.js";
1313
import BioModal from "./BioModal.jsx";
1414
import Sort from "../../utils/sort.js";
15-
import array from "../../utils/array";
15+
import array from "../../utils/array.js";
16+
import type {Dictionary} from "../../types/Generics.jsx";
1617

1718
type Props = {|
1819
teamResponse: TeamAPIData
@@ -54,14 +55,18 @@ const SectionConfigs: $ReadOnlyArray<SectionConfig> = [
5455
}, {
5556
title: "Salesforce Dev/Admin",
5657
sectionRoleCategory: "Operations",
57-
topRoles: []
58+
topRoles: ["business-operations-lead"]
5859
}, {
5960
title: "Operations",
6061
sectionRoleCategory: "Business",
6162
topRoles: []
6263
}
6364
];
6465

66+
const roleNameOverride: Dictionary<string> = {
67+
"business-operations-lead": "Salesforce Team Lead"
68+
};
69+
6570
class TeamSections extends React.PureComponent<Props, State> {
6671
constructor(props: Props): void {
6772
super(props);
@@ -97,7 +102,7 @@ class TeamSections extends React.PureComponent<Props, State> {
97102
uniqueVolunteers,
98103
(pv: VolunteerDetailsAPIData) => pv.roleTag.subcategory,
99104
(pv: VolunteerDetailsAPIData) => {
100-
return VolunteerUserDataToBioPersonData(pv.user, pv.roleTag.display_name, pv.roleTag.tag_name);
105+
return VolunteerUserDataToBioPersonData(pv.user, pv.roleTag.display_name, pv.roleTag.tag_name, roleNameOverride);
101106
});
102107
}
103108

common/fixtures/testdata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

common/models/Tag_definitions.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ marketing-lead,Marketing Team Lead,,Role,Marketing,
221221
marketing,Marketing,,Role,Marketing,
222222
sales,Sales,,Role,Business,
223223
business-operations,Operations,,Role,Operations,
224+
business-operations-lead,Operations Lead,,Role,Operations,
224225
business-management,Management,,Role,Business,
225226
business-strategy,Strategy,,Role,Business,
226227
business-legal,Legal,,Role,Business,

0 commit comments

Comments
 (0)