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

Commit d167be4

Browse files
authored
Merge pull request #387 from yoution/issue-376
Issues #375 #376
2 parents bf6c558 + 1fe3070 commit d167be4

File tree

12 files changed

+53
-40
lines changed

12 files changed

+53
-40
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
import React from "react";
99
import PT from "prop-types";
1010
import AddedRolesAccordion from "../AddedRolesAccordion";
11-
import Completeness from "../Completeness";
11+
import Progress from "../Progress";
1212
import "./styles.module.scss";
1313

1414
function InputContainer({
1515
stages,
16-
isCompletenessDisabled,
16+
isProgressDisabled,
1717
toRender,
1818
search,
1919
onClick,
20-
completenessStyle,
20+
progressStyle,
2121
addedRoles,
2222
}) {
2323
return (
2424
<div styleName="page">
2525
{toRender(search)}
2626
<div styleName="right-side">
2727
<AddedRolesAccordion addedRoles={addedRoles} />
28-
<Completeness
29-
isDisabled={isCompletenessDisabled}
28+
<Progress
29+
isDisabled={isProgressDisabled}
3030
onClick={onClick ? onClick: search}
31-
extraStyleName={completenessStyle}
31+
extraStyleName={progressStyle}
3232
buttonLabel="Search"
3333
stages={stages}
3434
percentage="26"
@@ -40,11 +40,11 @@ function InputContainer({
4040

4141
InputContainer.propTypes = {
4242
stages: PT.array,
43-
isCompletenessDisabled: PT.bool,
43+
isProgressDisabled: PT.bool,
4444
search: PT.func,
4545
onClick: PT.func,
4646
toRender: PT.func,
47-
completenessStyle: PT.string,
47+
progressStyle: PT.string,
4848
addedRoles: PT.array,
4949
};
5050

src/routes/CreateNewTeam/components/CompleteProgress/index.jsx renamed to src/routes/CreateNewTeam/components/ProgressBar/index.jsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
2-
* Complete Progress Tracker
2+
* Progress Tracker
33
* Graphical representation of
4-
* completeness percentage for skill input.
4+
* progress percentage for skill input.
55
*/
66
import React from "react";
77
import PT from "prop-types";
88
import "./styles.module.scss";
99

10-
function CompleteProgress({ percentDone }) {
10+
function ProgressBar({ percentDone }) {
1111
if (!percentDone || percentDone < 0) {
1212
percentDone = 0;
1313
} else if (percentDone > 100) {
@@ -17,7 +17,7 @@ function CompleteProgress({ percentDone }) {
1717
return (
1818
<div styleName="progress">
1919
<div styleName="heading">
20-
<p>Completeness</p>
20+
<p>Progress</p>
2121
<h6>{percentDone}%</h6>
2222
</div>
2323
<div styleName="progress-bar">
@@ -30,8 +30,8 @@ function CompleteProgress({ percentDone }) {
3030
);
3131
}
3232

33-
CompleteProgress.propTypes = {
33+
ProgressBar.propTypes = {
3434
percentDone: PT.number,
3535
};
3636

37-
export default CompleteProgress;
37+
export default ProgressBar;

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import _ from "lodash";
1111
import { useDispatch } from "react-redux";
1212
import { editRoleAction } from "../../actions";
1313
import AddedRolesAccordion from "../AddedRolesAccordion";
14-
import Completeness from "../Completeness";
14+
import Progress from "../Progress";
1515
import SearchCard from "../SearchCard";
1616
import ResultCard from "../ResultCard";
1717
import NoMatchingProfilesResultCard from "../NoMatchingProfilesResultCard";
@@ -22,7 +22,7 @@ import "./styles.module.scss";
2222
function SearchContainer({
2323
isNewRole,
2424
stages,
25-
completenessStyle,
25+
progressStyle,
2626
navigate,
2727
addedRoles,
2828
searchState,
@@ -87,14 +87,14 @@ function SearchContainer({
8787
{renderLeftSide()}
8888
<div styleName="right-side">
8989
<AddedRolesAccordion addedRoles={addedRoles} />
90-
<Completeness
90+
<Progress
9191
isDisabled={
9292
!buttonClickable ||
9393
searchState === "searching" ||
9494
(searchState === "done" && (!addedRoles || !addedRoles.length))
9595
}
9696
onClick={() => setAddAnotherOpen(true)}
97-
extraStyleName={completenessStyle}
97+
extraStyleName={progressStyle}
9898
buttonLabel="Continue"
9999
stages={stages}
100100
percentage={getPercentage()}
@@ -114,7 +114,7 @@ function SearchContainer({
114114
SearchContainer.propTypes = {
115115
isNewRole: PT.bool,
116116
stages: PT.array,
117-
completenessStyle: PT.string,
117+
progressStyle: PT.string,
118118
previousSearchId: PT.string,
119119
navigate: PT.func,
120120
addedRoles: PT.array,

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { toastr } from "react-redux-toastr";
1717
import { navigate } from "@reach/router";
1818
import ResultCard from "../ResultCard";
1919
import AddedRolesAccordion from "../AddedRolesAccordion";
20-
import Completeness from "../Completeness";
20+
import Progress from "../Progress";
2121
import AddAnotherModal from "../AddAnotherModal";
2222
import TeamDetailsModal from "../TeamDetailsModal";
2323
import ConfirmationModal from "../ConfirmationModal";
@@ -31,7 +31,7 @@ import NoMatchingProfilesResultCard from "../NoMatchingProfilesResultCard";
3131
function SubmitContainer({
3232
stages,
3333
setStages,
34-
completenessStyle,
34+
progressStyle,
3535
matchingRole,
3636
addedRoles,
3737
}) {
@@ -120,9 +120,9 @@ function SubmitContainer({
120120
)}
121121
<div styleName="right-side">
122122
<AddedRolesAccordion addedRoles={addedRoles} />
123-
<Completeness
123+
<Progress
124124
onClick={() => setAddAnotherOpen(true)}
125-
extraStyleName={completenessStyle}
125+
extraStyleName={progressStyle}
126126
buttonLabel="Continue"
127127
stages={stages}
128128
percentage="98"
@@ -154,7 +154,7 @@ function SubmitContainer({
154154
SubmitContainer.propTypes = {
155155
stages: PT.array,
156156
setStages: PT.func,
157-
completenessStyle: PT.string,
157+
progressStyle: PT.string,
158158
addedRoles: PT.array,
159159
matchingRole: PT.object,
160160
};

src/routes/CreateNewTeam/components/Completeness/index.jsx renamed to src/routes/CreateNewTeam/components/progress/index.jsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
/**
2-
* Completeness Sidebar
3-
* Shows level of completeness through skill
2+
* Progress Sidebar
3+
* Shows level of progress through skill
44
* input process and contains a button for
55
* searching for users or submitting the job.
66
*/
77
import Button from "components/Button";
88
import React from "react";
99
import cn from "classnames";
1010
import PT from "prop-types";
11-
import CompleteProgress from "../CompleteProgress";
11+
import ProgressBar from "../ProgressBar";
1212
import "./styles.module.scss";
1313
import IconMultipleActionsCheck from "../../../../assets/images/icon-multiple-actions-check-2.svg";
1414
import IconListQuill from "../../../../assets/images/icon-list-quill.svg";
1515
import IconOfficeFileText from "../../../../assets/images/icon-office-file-text.svg";
1616

17-
function Completeness({
17+
function Progress({
1818
extraStyleName,
1919
isDisabled,
2020
onClick,
@@ -23,7 +23,7 @@ function Completeness({
2323
percentage,
2424
}) {
2525

26-
let backgroundIcon
26+
let backgroundIcon
2727
if (extraStyleName === "input-skills") {
2828
backgroundIcon= <IconListQuill styleName="transparent-icon" />
2929
} else if (extraStyleName === "input-job-description") {
@@ -33,8 +33,8 @@ function Completeness({
3333
}
3434

3535
return (
36-
<div styleName={cn("completeness", extraStyleName)}>
37-
<CompleteProgress percentDone={percentage} />
36+
<div styleName={cn("progress", extraStyleName)}>
37+
<ProgressBar percentDone={percentage} />
3838
<ul styleName="list">
3939
{stages.map((stage) => (
4040
<li
@@ -60,7 +60,7 @@ function Completeness({
6060
);
6161
}
6262

63-
Completeness.propTypes = {
63+
Progress.propTypes = {
6464
extraStyleName: PT.string,
6565
isDisabled: PT.bool,
6666
onClick: PT.func,
@@ -69,4 +69,4 @@ Completeness.propTypes = {
6969
stages: PT.arrayOf(PT.string),
7070
};
7171

72-
export default Completeness;
72+
export default Progress;

src/routes/CreateNewTeam/components/Completeness/styles.module.scss renamed to src/routes/CreateNewTeam/components/progress/styles.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import "styles/include";
22

3-
.completeness {
3+
.progress {
44
@include rounded-card;
55
overflow: hidden;
66
padding: 12px;

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function InputJobDescription() {
5656
<SearchAndSubmit
5757
stages={stages}
5858
setStages={setStages}
59-
isCompletenessDisabled={jdString.length < 10 || jdString.length > 100000}
60-
completenessStyle="input-job-description"
59+
isProgressDisabled={jdString.length < 10 || jdString.length > 100000}
60+
progressStyle="input-job-description"
6161
searchObject={searchObject}
6262
page="jd"
6363
onClick={onClick}

src/routes/CreateNewTeam/pages/InputSkills/components/SkillsList/index.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import React, { useCallback, useState } from "react";
88
import PT from "prop-types";
99
import SkillItem from "../SkillItem";
1010
import ItemList from "../../../../components/ItemList";
11+
import "./styles.module.scss";
1112
import { formatPlural } from "utils/format";
1213

1314
function SkillsList({ skills, selectedSkills, toggleSkill }) {
@@ -38,6 +39,11 @@ function SkillsList({ skills, selectedSkills, toggleSkill }) {
3839
: null
3940
}
4041
>
42+
<p styleName="subtitle">
43+
Please select one or more essential skills you require your talent to
44+
have. Topcoder will match to profiles which contain most or all of these
45+
skills.
46+
</p>
4147
{filteredSkills.map(({ id, name }) => (
4248
<SkillItem
4349
key={id}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.subtitle {
2+
position: relative;
3+
font-size: 12px;
4+
line-height: normal;
5+
margin: 10px 24px 0px;
6+
top: -15px;
7+
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ function InputSkills() {
4848
<SearchAndSubmit
4949
stages={stages}
5050
setStages={setStages}
51-
isCompletenessDisabled={selectedSkills.length < 1}
51+
isProgressDisabled={selectedSkills.length < 1}
5252
searchObject={{ skills: selectedSkills }}
5353
page="skills"
54-
completenessStyle="input-skills"
54+
progressStyle="input-skills"
5555
toRender={() => (
5656
<SkillsList
5757
skills={skills}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ function SelectRole() {
4646
<SearchAndSubmit
4747
stages={stages}
4848
setStages={setStages}
49-
isCompletenessDisabled={!selectedRoleId}
49+
isProgressDisabled={!selectedRoleId}
5050
page="role"
5151
searchObject={{ roleId: selectedRoleId }}
52-
completenessStyle="role-selection"
52+
progressStyle="role-selection"
5353
toRender={() => (
5454
<>
5555
<RolesList

0 commit comments

Comments
 (0)