Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c64bcf9

Browse files
authored
Merge pull request #505 from yoution/feature/taas-intake-1.3
fix: taas-intake #504,#408,#497
2 parents 62902e4 + 4a27e8c commit c64bcf9

File tree

9 files changed

+34
-94
lines changed

9 files changed

+34
-94
lines changed

src/assets/images/icon-earth-x.svg

-13
This file was deleted.

src/assets/images/icon-person.svg

+11
Loading

src/constants/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export const MAX_ALLOWED_INTERVIEWS = 3;
391391
/**
392392
* Custom role names to remove from RoleList component
393393
*/
394-
export const CUSTOM_ROLE_NAMES = ["custom", "niche"];
394+
export const CUSTOM_ROLE_NAMES = ["custom", "niche", "custom role"];
395395

396396
/**
397397
* Minimal Resource Booking duration (weeks)

src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx

+11-29
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import PT from "prop-types";
88
import { useDispatch, useSelector } from "react-redux";
99
import { addSearchedRole } from "../../actions";
1010
import "./styles.module.scss";
11-
import IconEarthX from "../../../../assets/images/icon-earth-x.svg";
11+
import IconPerson from "../../../../assets/images/icon-person.svg";
1212
import Curve from "../../../../assets/images/curve.svg";
1313
import Button from "components/Button";
1414
import { formatMoney } from "utils/format";
1515

16-
function NoMatchingProfilesResultCard({ role }) {
16+
function NoMatchingProfilesResultCard({ role, onSubmit }) {
1717
const { addedRoles } = useSelector((state) => state.searchedRoles);
1818

1919
const alreadyAdded = useMemo(() => {
@@ -43,54 +43,35 @@ function NoMatchingProfilesResultCard({ role }) {
4343
imageUrl: role.imageUrl,
4444
})
4545
);
46+
onSubmit()
4647
}, [dispatch, role]);
4748

4849
return (
4950
<div styleName="result-card">
5051
<div styleName="heading">
51-
<IconEarthX />
52-
<h3>Dang. No matching talent (yet)</h3>
52+
<IconPerson />
53+
<h3>locating available custom talent</h3>
5354
<Curve styleName="curve" />
54-
<IconEarthX styleName="transparent-icon" />
5555
</div>
5656
<div styleName="content">
5757
<h4 styleName="job-title">
58-
{role.jobTitle && role.jobTitle.length
59-
? role.jobTitle
60-
: "What happens next"}
58+
What happens next
6159
</h4>
6260
<p styleName="info-txt">
63-
We did not find a perfect match to your requirements, but we'd like to
64-
dig a little deeper into our community. We’ll start right away, and
65-
this may take up to two weeks. You can modify your criteria, or
66-
continue this search. If you choose to continue, we will reach out
67-
soon with next steps.
61+
We routinely place great people with the skills you’ve asked for. Right now, we don’t have anyone available. However, our database is dynamic and updated often. Please continue below so we can finalize your talent request and alert you when a great candidate becomes available.
6862
</p>
69-
{role.rates && role.name ? (
70-
<div styleName="niche-rate-box">
71-
<p>Estimate for this role</p>
72-
<p styleName="cost">{formatMoney(role.rates[0].global)}</p>
73-
<p>/Week</p>
74-
</div>
75-
) : (
76-
<div styleName="niche-rate-box">
77-
<p>Estimate for this role</p>
78-
<p styleName="cost">$1,200</p>
79-
<p>/Week</p>
80-
</div>
81-
)}
8263
<div styleName="button-group">
8364
<Link to="/taas/createnewteam">
8465
<Button styleName="left" type="secondary">
85-
Modify Search Criteria
66+
Modify Search
8667
</Button>
8768
</Link>
8869
<Button
8970
onClick={addRole}
90-
disabled={!role.roleSearchRequestId || alreadyAdded}
71+
disabled={!role.roleSearchRequestId}
9172
type="primary"
9273
>
93-
{alreadyAdded ? "Added" : "Continue this search"}
74+
Request talent
9475
</Button>
9576
</div>
9677
</div>
@@ -100,6 +81,7 @@ function NoMatchingProfilesResultCard({ role }) {
10081

10182
NoMatchingProfilesResultCard.propTypes = {
10283
role: PT.object,
84+
onSubmit: PT.func,
10385
};
10486

10587
export default NoMatchingProfilesResultCard;

src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/styles.module.scss

+1-42
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
padding: 30px 0 60px 0;
1616
margin-bottom: 14px;
1717
color: #fff;
18-
background-image: linear-gradient(225deg, #555555 0%, #2a2a2a 100%);
18+
background-image: linear-gradient(90deg, #F45500 0%, #FF940F 100%);
1919
position: relative;
2020
text-align: center;
2121
border-radius: 8px 8px 0 0;
@@ -59,38 +59,6 @@
5959
width: 80%;
6060
text-align: center;
6161
}
62-
.niche-rate-box {
63-
margin-top: 32px;
64-
background-color: #fbfbfb;
65-
padding: 30px;
66-
border: 1px solid #f4f4f4;
67-
border-radius: 6px;
68-
width: 196px;
69-
p:first-child {
70-
@include font-barlow;
71-
margin-top: 4px;
72-
font-size: 16px;
73-
line-height: 20px;
74-
font-weight: 600;
75-
text-align: center;
76-
text-transform: uppercase;
77-
}
78-
p:last-child {
79-
@include font-roboto;
80-
color: #555555;
81-
font-size: 14px;
82-
line-height: 22px;
83-
text-align: center;
84-
}
85-
.cost {
86-
@include font-barlow-condensed;
87-
margin-top: 8px;
88-
font-size: 48px;
89-
line-height: 50px;
90-
font-weight: 500;
91-
text-align: center;
92-
}
93-
}
9462

9563
.button-group {
9664
margin-top: 62px;
@@ -110,12 +78,3 @@
11078
bottom: -70px;
11179
width: 100%;
11280
}
113-
114-
.transparent-icon {
115-
position: absolute;
116-
top: -40px;
117-
right: 10px;
118-
opacity: 12%;
119-
height: 142px;
120-
width: 142px;
121-
}

src/routes/CreateNewTeam/components/ResultCard/index.jsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,8 @@ function ResultCard({
245245
</div>
246246
</div>
247247
<div styleName="timeline-info">
248-
<IconTeamMeetingChat />
249248
<div>
250-
<p>Interviews can start within</p>
251-
<h6>{timeToInterview}h</h6>
249+
(NEED TO DEVELOP TEXT W/ ANNIKA)
252250
</div>
253251
</div>
254252
</div>

src/routes/CreateNewTeam/components/SearchContainer/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function SearchContainer({
7777
currentRole={currentRole}
7878
/>
7979
);
80-
return <NoMatchingProfilesResultCard role={matchingRole} />;
80+
return <NoMatchingProfilesResultCard role={matchingRole} onSubmit={onSubmit}/>;
8181
};
8282

8383
const progressBarPercentage = useMemo(

src/routes/CreateNewTeam/components/SubmitContainer/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function SubmitContainer({
176176
currentRole={currentRole}
177177
/>
178178
) : (
179-
<NoMatchingProfilesResultCard role={matchingRole} />
179+
<NoMatchingProfilesResultCard role={matchingRole} onSubmit={()=> setAddAnotherOpen(true)}/>
180180
)}
181181
<div styleName="right-side">
182182
<AddedRolesAccordion addedRoles={addedRoles} />

src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Elements } from "@stripe/react-stripe-js";
55
import { loadStripe } from "@stripe/stripe-js";
66
import { ThemeProvider } from "@material-ui/styles";
77
import { toastr } from "react-redux-toastr";
8+
import { isCustomRole } from "utils/helpers";
89

910
import PaymentForm from "./PaymentForm";
1011
import PageHeader from "components/PageHeader";
@@ -58,7 +59,9 @@ const CreateTassPayment = () => {
5859
durationWeeks,
5960
availability,
6061
});
61-
amount.push({ rate, numberOfResources });
62+
if (!isCustomRole(role)) {
63+
amount.push({ rate, numberOfResources });
64+
}
6265
});
6366
setValue(temp);
6467

@@ -109,15 +112,15 @@ const CreateTassPayment = () => {
109112
<div>
110113
<p styleName="title">{data.name}</p>
111114
<ul styleName="details">
112-
<li>
115+
{!isCustomRole(data) && <li>
113116
{data.numberOfResources} x ${data.rate}/ Week
114-
</li>
117+
</li>}
115118
<li>{data.durationWeeks} Week Duration</li>
116119
<li>{data.availability}</li>
117120
</ul>
118121
</div>
119122
<p styleName="amount">
120-
${data.numberOfResources * data.rate}
123+
${isCustomRole(data) ? '0' : data.numberOfResources * data.rate}
121124
</p>
122125
</div>
123126
<hr styleName="divider" />

0 commit comments

Comments
 (0)