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

Commit ca24b14

Browse files
committed
Merge branch 'roles-milestone18' into issue-356
2 parents a06e065 + af0ed91 commit ca24b14

File tree

24 files changed

+523
-242
lines changed

24 files changed

+523
-242
lines changed

package-lock.json

+25-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
"redux-logger": "^3.0.6",
8888
"redux-promise-middleware": "^6.1.2",
8989
"redux-thunk": "^2.3.0",
90-
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4"
90+
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4",
91+
"uuid": "^8.3.2"
9192
},
9293
"browserslist": [
9394
"last 1 version",

src/assets/images/customer-logos.svg

+139
Loading
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import "./styles.module.scss";
3+
4+
function CustomerScroll() {
5+
return (
6+
<div>
7+
<h6 styleName="title">Trusted By</h6>
8+
<div styleName="scrolling-logos" />
9+
</div>
10+
);
11+
}
12+
13+
export default CustomerScroll;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@import "styles/include";
2+
3+
.title {
4+
@include font-barlow;
5+
font-weight: 600;
6+
font-size: 22px;
7+
color: #7f7f7f;
8+
text-align: center;
9+
text-transform: uppercase;
10+
margin-bottom: 30px;
11+
}
12+
13+
@keyframes scroll {
14+
from {background-position: 0 0;}
15+
to {background-position: -7701px 0;}
16+
}
17+
18+
.scrolling-logos {
19+
background-image: url("../../assets/images/customer-logos.svg");
20+
height: 60px;
21+
width: 100%;
22+
animation: scroll 300s linear infinite;
23+
position: relative;
24+
25+
&:before {
26+
background: linear-gradient(to right, #F4F5F6 0%, rgba(255, 255, 255, 0) 100%);
27+
content: '';
28+
height: 60px;
29+
left: 0;
30+
position: absolute;
31+
top: 0;
32+
width: 60px;
33+
z-index: 2;
34+
}
35+
&:after {
36+
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #F4F5F6 100%);
37+
content: '';
38+
height: 60px;
39+
position: absolute;
40+
right: 0;
41+
top: 0;
42+
width: 60px;
43+
z-index: 2;
44+
}
45+
}

src/root.component.jsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import JobDetails from "./routes/JobDetails";
1010
import JobForm from "./routes/JobForm";
1111
import TeamAccess from "./routes/TeamAccess";
1212
import CreateNewTeam from "./routes/CreateNewTeam";
13+
import CreateTeamLanding from "./routes/CreateNewTeam/pages/CreateTeamLanding";
1314
import InputSkills from "./routes/CreateNewTeam/pages/InputSkills";
1415
import InputJobDescription from "./routes/CreateNewTeam/pages/InputJobDescription";
1516
import SelectRole from "./routes/CreateNewTeam/pages/SelectRole";
@@ -25,7 +26,6 @@ export default function Root() {
2526
<Router>
2627
<Redirect from="/taas" to="/taas/myteams" exact />
2728
<MyTeamsList path="/taas/myteams" />
28-
<CreateNewTeam path="/taas/createnewteam" />
2929
<MyTeamsDetails path="/taas/myteams/:teamId" />
3030
<JobDetails path="/taas/myteams/:teamId/positions/:jobId" />
3131
<JobForm path="/taas/myteams/:teamId/positions/:jobId/edit" />
@@ -34,9 +34,12 @@ export default function Root() {
3434
<ResourceBookingForm path="/taas/myteams/:teamId/rb/:resourceBookingId/edit" />
3535
<PositionDetails path="/taas/myteams/:teamId/positions/:positionId/candidates" />
3636
<TeamAccess path="/taas/myteams/:teamId/access" />
37-
<InputJobDescription path="/taas/createnewteam/jd/*" />
38-
<InputSkills path="/taas/createnewteam/skills/*" />
39-
<SelectRole path="/taas/createnewteam/role/*" />
37+
<CreateNewTeam path="/taas/createnewteam">
38+
<CreateTeamLanding path="/" />
39+
<InputJobDescription path="jd/*" />
40+
<InputSkills path="skills/*" />
41+
<SelectRole path="role/*" />
42+
</CreateNewTeam>
4043
</Router>
4144

4245
{/* Global config for Toastr popups */}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
width: 100%;
77
margin-right: 20px;
88
position: relative;
9-
height: 80vh;
9+
height: 70vh;
1010
overflow-y: auto;
1111

1212
.title {

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function NoMatchingProfilesResultCard({ role }) {
4242
<div styleName="result-card">
4343
<div styleName="heading">
4444
<IconEarthX />
45-
<h3>No Matching Profiles</h3>
45+
<h3>Additional Evaluation Needed</h3>
4646
<Curve styleName="curve" />
4747
<IconEarthX styleName="transparent-icon" />
4848
</div>
@@ -53,8 +53,11 @@ function NoMatchingProfilesResultCard({ role }) {
5353
: "Custom Role"}
5454
</h4>
5555
<p styleName="info-txt">
56-
We will be looking internally for members matching your requirements
57-
and be back at them in about 2 weeks.
56+
We did not get a perfect match to your requirements on the first pass,
57+
but we are confident they are out there. We'd like to dig a little
58+
deeper into our community to find someone who can fit your needs. This
59+
may take up to two weeks. Please continue to submit your request, and
60+
a Topcoder representative will reach out to you soon with next steps.
5861
</p>
5962
{role.rates && role.name ? (
6063
<div styleName="niche-rate-box">

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
@include font-roboto;
5757
font-size: 14px;
5858
line-height: 22px;
59-
width: 357px;
59+
width: 80%;
6060
text-align: center;
6161
}
6262
.niche-rate-box {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function SearchContainer({
8383
}
8484
onClick={() => setAddAnotherOpen(true)}
8585
extraStyleName={completenessStyle}
86-
buttonLabel="Submit Request"
86+
buttonLabel="Continue"
8787
stages={stages}
8888
percentage={getPercentage()}
8989
/>

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

+8-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import TeamDetailsModal from "../TeamDetailsModal";
2323
import ConfirmationModal from "../ConfirmationModal";
2424
import withAuthentication from "../../../../hoc/withAuthentication";
2525
import "./styles.module.scss";
26-
import { isCustomRole, setCurrentStage } from "utils/helpers";
26+
import { isCustomRole, isUuid, setCurrentStage } from "utils/helpers";
2727
import { clearSearchedRoles } from "../../actions";
2828
import { postTeamRequest } from "services/teams";
2929
import NoMatchingProfilesResultCard from "../NoMatchingProfilesResultCard";
@@ -65,11 +65,15 @@ function SubmitContainer({
6565
};
6666

6767
const assembleTeam = (formData) => {
68-
const teamObject = _.pick(formData, ["teamName", "teamDescription"]);
68+
const teamObject = _.pick(formData, [
69+
"teamName",
70+
"teamDescription",
71+
"refCode",
72+
]);
6973

7074
const positions = [];
7175
for (let key of Object.keys(formData)) {
72-
if (key === "teamName" || key === "teamDescription") {
76+
if (!isUuid(key)) {
7377
continue;
7478
}
7579
const position = _.mapValues(formData[key], (val, key) =>
@@ -119,7 +123,7 @@ function SubmitContainer({
119123
<Completeness
120124
onClick={() => setAddAnotherOpen(true)}
121125
extraStyleName={completenessStyle}
122-
buttonLabel="Submit Request"
126+
buttonLabel="Continue"
123127
stages={stages}
124128
percentage="98"
125129
/>

0 commit comments

Comments
 (0)