Skip to content

Commit 982783d

Browse files
committed
Team fixes 1 for #4788
1 parent e0e8257 commit 982783d

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

src/server/services/recruitCRM.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export default class RecruitCRMService {
4545
error: true,
4646
status: response.status,
4747
url: `${this.private.baseUrl}/v1/jobs/search?${qs.stringify(req.query)}`,
48-
key: this.private.authorization,
4948
});
5049
}
5150
const data = await response.json();
@@ -78,7 +77,6 @@ export default class RecruitCRMService {
7877
error: true,
7978
status: response.status,
8079
url: `${this.private.baseUrl}/v1/jobs/${req.params.id}`,
81-
key: this.private.authorization,
8280
});
8381
}
8482
const data = await response.json();
@@ -111,7 +109,6 @@ export default class RecruitCRMService {
111109
error: true,
112110
status: response.status,
113111
url: `${this.private.baseUrl}/v1/jobs/search?${qs.stringify(req.query)}`,
114-
key: this.private.authorization,
115112
});
116113
}
117114
const data = await response.json();

src/shared/components/GUIKit/JobListCard/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function JobListCard({
2828
const hoursPerWeek = getCustomField(job.custom_fields, 'Hours per week');
2929
return (
3030
<div styleName="container">
31-
<h6>{job.name}</h6>
31+
<Link to={`${config.GIGS_PAGES_PATH}/${job.slug}`} styleName="gig-name">{job.name}</Link>
3232
<div styleName="job-infos">
3333
<div styleName="icon-val">
3434
<IconBlackSkills /> {skills}

src/shared/components/GUIKit/JobListCard/style.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@
1414
@include gui-kit-content;
1515
@include roboto-regular;
1616

17-
h6 {
17+
.gig-name,
18+
.gig-name:visited,
19+
.gig-name:active,
20+
.gig-name:hover {
1821
color: #1e94a3;
1922
margin-top: 0;
2023
margin-bottom: 12px;
24+
text-decoration: none;
25+
font-family: Barlow, sans-serif;
26+
font-size: 20px;
27+
font-weight: 600;
28+
line-height: 24px;
29+
text-transform: uppercase;
2130

2231
@include xs-to-sm {
2332
margin-bottom: 20px;

src/shared/containers/Gigs/RecruitCRMJobs.jsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RecruitCRMJobsContainer extends React.Component {
2222
this.state = {
2323
term: '',
2424
page: 0,
25-
sortBy: 'created_on',
25+
sortBy: 'updated_on',
2626
};
2727

2828
this.onSearch = this.onSearch.bind(this);
@@ -88,9 +88,17 @@ class RecruitCRMJobsContainer extends React.Component {
8888
// Filter by term
8989
if (term) {
9090
jobsToDisplay = _.filter(jobs, (job) => {
91-
if (job.name.toLowerCase().includes(term.toLowerCase())) return true;
91+
// eslint-disable-next-line no-underscore-dangle
92+
const _term = term.toLowerCase();
93+
// name search
94+
if (job.name.toLowerCase().includes(_term)) return true;
95+
// skills search
96+
const skills = _.find(job.custom_fields, ['field_name', 'Technologies Required']);
97+
if (skills && skills.value && skills.value.toLowerCase().includes(_term)) return true;
98+
// location
99+
if (job.country.toLowerCase().includes(_term)) return true;
100+
// no match
92101
return false;
93-
// add skills here
94102
});
95103
}
96104
// Sort controlled by sortBy state
@@ -106,7 +114,7 @@ class RecruitCRMJobsContainer extends React.Component {
106114
return (
107115
<div styleName="container">
108116
<div styleName="filters">
109-
<SearchCombo placeholder="Search Job Listings by Name or Skills" onSearch={this.onSearch} term={term} />
117+
<SearchCombo placeholder="Search Gig Listings by Name, Skills or Location" onSearch={this.onSearch} term={term} />
110118
</div>
111119
<div styleName="jobs-list-container">
112120
{

0 commit comments

Comments
 (0)