Date: Tue, 22 Jun 2021 11:25:59 +0400
Subject: [PATCH 4/9] Add job title to job description search page. Fixes for
deleting searched roles.
---
.../components/SubmitContainer/index.jsx | 8 ++------
.../components/TeamDetailsModal/index.jsx | 5 ++++-
.../CreateNewTeam/pages/InputJobDescription/index.jsx | 11 +++++++++++
.../pages/InputJobDescription/styles.module.scss | 4 ++++
4 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx b/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
index e2922708..9ae4baeb 100644
--- a/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
+++ b/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
@@ -46,20 +46,16 @@ function SubmitContainer({
useEffect(() => {
setCurrentStage(2, stages, setStages);
- if (!addedRoles || addedRoles.length === 0) {
- navigate("/taas/myteams/createnewteam");
- }
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// redirects user if they enter the page URL directly
- // without adding any roles.
+ // without adding any roles or delete all roles.
useLayoutEffect(() => {
if (!addedRoles || addedRoles.length === 0) {
navigate("/taas/myteams/createnewteam");
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
+ }, [addedRoles]);
const openTeamDetails = () => {
setAddAnotherOpen(false);
diff --git a/src/routes/CreateNewTeam/components/TeamDetailsModal/index.jsx b/src/routes/CreateNewTeam/components/TeamDetailsModal/index.jsx
index 7a932c2f..8db4b420 100644
--- a/src/routes/CreateNewTeam/components/TeamDetailsModal/index.jsx
+++ b/src/routes/CreateNewTeam/components/TeamDetailsModal/index.jsx
@@ -240,7 +240,10 @@ function TeamDetailsModal({ open, onClose, submitForm, addedRoles }) {
diff --git a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
index 9bc211e1..3284f876 100644
--- a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
@@ -9,6 +9,7 @@ import PageHeader from "components/PageHeader";
import MarkdownEditor from "../../../../components/MarkdownEditor";
import "./styles.module.scss";
import SearchAndSubmit from "../../components/SearchAndSubmit";
+import TextInput from "components/TextInput";
function InputJobDescription() {
const [stages, setStages] = useState([
@@ -17,6 +18,7 @@ function InputJobDescription() {
{ name: "Overview of the Results" },
]);
const [jdString, setJdString] = useState("");
+ const [jobTitle, setJobTitle] = useState("");
const onEditChange = useCallback((value) => {
setJdString(value);
@@ -36,6 +38,15 @@ function InputJobDescription() {
title="Input Job Description"
backTo="/taas/myteams/createnewteam"
/>
+
+
+
Date: Tue, 22 Jun 2021 14:46:02 +0400
Subject: [PATCH 5/9] Add Skills Found popup to Job Description search page
---
.../components/SearchAndSubmit/index.jsx | 54 +++++++++++-
.../components/SearchContainer/index.jsx | 65 ++++-----------
.../components/SubmitContainer/index.jsx | 6 +-
.../components/SkillListPopup/index.jsx | 83 ++++++++-----------
.../pages/InputJobDescription/index.jsx | 81 ++++++++++++------
.../CreateNewTeam/pages/InputSkills/index.jsx | 4 +-
.../CreateNewTeam/pages/SelectRole/index.jsx | 4 +-
7 files changed, 159 insertions(+), 138 deletions(-)
diff --git a/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx b/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx
index b801e2d1..778fd984 100644
--- a/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx
+++ b/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx
@@ -1,23 +1,71 @@
import { Router } from "@reach/router";
-import React from "react";
-import { useSelector } from "react-redux";
+import _ from "lodash";
+import React, { useCallback, useState } from "react";
+import { useDispatch, useSelector } from "react-redux";
+import { searchRoles } from "services/teams";
+import { isCustomRole, setCurrentStage } from "utils/helpers";
+import { addRoleSearchId, addSearchedRole } from "../../actions";
import SearchContainer from "../SearchContainer";
import SubmitContainer from "../SubmitContainer";
function SearchAndSubmit(props) {
+ const { stages, setStages, searchObject, onClick } = props;
+
+ const [searchState, setSearchState] = useState(null);
+ const [matchingRole, setMatchingRole] = useState(null);
+
const { addedRoles, previousSearchId } = useSelector(
(state) => state.searchedRoles
);
+ const dispatch = useDispatch();
+
+ const search = useCallback(() => {
+ setCurrentStage(1, stages, setStages);
+ setSearchState("searching");
+ setMatchingRole(null);
+ const searchObjectCopy = { ...searchObject };
+ if (previousSearchId) {
+ searchObjectCopy.previousRoleSearchRequestId = previousSearchId;
+ }
+ searchRoles(searchObjectCopy)
+ .then((res) => {
+ const name = _.get(res, "data.name");
+ const searchId = _.get(res, "data.roleSearchRequestId");
+ if (name && !isCustomRole({ name })) {
+ dispatch(addSearchedRole({ searchId, name }));
+ } else if (searchId) {
+ dispatch(addRoleSearchId(searchId));
+ }
+ setMatchingRole(res.data);
+ })
+ .catch((err) => {
+ console.error(err);
+ })
+ .finally(() => {
+ setCurrentStage(2, stages, setStages);
+ setSearchState("done");
+ });
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [dispatch, previousSearchId, searchObject]);
+
return (
+
-
);
}
diff --git a/src/routes/CreateNewTeam/components/SearchContainer/index.jsx b/src/routes/CreateNewTeam/components/SearchContainer/index.jsx
index bf32a252..094bd141 100644
--- a/src/routes/CreateNewTeam/components/SearchContainer/index.jsx
+++ b/src/routes/CreateNewTeam/components/SearchContainer/index.jsx
@@ -5,70 +5,34 @@
* search pages. Contains logic and supporting
* components for searching for roles.
*/
-import React, { useCallback, useState } from "react";
+import React, { useCallback } from "react";
import PT from "prop-types";
-import _ from "lodash";
-import { useDispatch } from "react-redux";
import AddedRolesAccordion from "../AddedRolesAccordion";
import Completeness from "../Completeness";
import SearchCard from "../SearchCard";
import ResultCard from "../ResultCard";
import NoMatchingProfilesResultCard from "../NoMatchingProfilesResultCard";
-import { searchRoles } from "services/teams";
-import { isCustomRole, setCurrentStage } from "utils/helpers";
-import { addRoleSearchId, addSearchedRole } from "../../actions";
+import { isCustomRole } from "utils/helpers";
import "./styles.module.scss";
function SearchContainer({
stages,
- setStages,
isCompletenessDisabled,
toRender,
- searchObject,
+ onClick,
+ search,
completenessStyle,
navigate,
addedRoles,
- previousSearchId,
+ searchState,
+ matchingRole,
}) {
- const [searchState, setSearchState] = useState(null);
- const [matchingRole, setMatchingRole] = useState(null);
-
- const dispatch = useDispatch();
-
const onSubmit = useCallback(() => {
- navigate("result", { state: { matchingRole } });
- }, [navigate, matchingRole]);
-
- const search = () => {
- setCurrentStage(1, stages, setStages);
- setSearchState("searching");
- setMatchingRole(null);
- const searchObjectCopy = { ...searchObject };
- if (previousSearchId) {
- searchObjectCopy.previousRoleSearchRequestId = previousSearchId;
- }
- searchRoles(searchObjectCopy)
- .then((res) => {
- const name = _.get(res, "data.name");
- const searchId = _.get(res, "data.roleSearchRequestId");
- if (name && !isCustomRole({ name })) {
- dispatch(addSearchedRole({ searchId, name }));
- } else if (searchId) {
- dispatch(addRoleSearchId(searchId));
- }
- setMatchingRole(res.data);
- })
- .catch((err) => {
- console.error(err);
- })
- .finally(() => {
- setCurrentStage(2, stages, setStages);
- setSearchState("done");
- });
- };
+ navigate("result");
+ }, [navigate]);
const renderLeftSide = () => {
- if (!searchState) return toRender;
+ if (!searchState) return toRender(search);
if (searchState === "searching") return ;
if (!isCustomRole(matchingRole)) return ;
return ;
@@ -92,7 +56,7 @@ function SearchContainer({
searchState === "searching" ||
(searchState === "done" && isCustomRole(matchingRole))
}
- onClick={searchState ? onSubmit : search}
+ onClick={searchState ? onSubmit : onClick ? onClick : search}
extraStyleName={completenessStyle}
buttonLabel={searchState ? "Submit Request" : "Search"}
stages={stages}
@@ -105,14 +69,15 @@ function SearchContainer({
SearchContainer.propTypes = {
stages: PT.array,
- setStages: PT.func,
isCompletenessDisabled: PT.bool,
- searchObject: PT.object,
- toRender: PT.node,
+ onClick: PT.func,
+ search: PT.func,
+ toRender: PT.func,
completenessStyle: PT.string,
navigate: PT.func,
addedRoles: PT.array,
- previousSearchId: PT.string,
+ searchState: PT.string,
+ matchingRole: PT.object,
};
export default SearchContainer;
diff --git a/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx b/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
index 9ae4baeb..5296a269 100644
--- a/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
+++ b/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
@@ -32,11 +32,9 @@ function SubmitContainer({
stages,
setStages,
completenessStyle,
- location,
+ matchingRole,
addedRoles,
}) {
- const matchingRole = location?.state?.matchingRole;
-
const [addAnotherOpen, setAddAnotherOpen] = useState(true);
const [teamDetailsOpen, setTeamDetailsOpen] = useState(false);
const [teamObject, setTeamObject] = useState(null);
@@ -147,8 +145,8 @@ SubmitContainer.propTypes = {
stages: PT.array,
setStages: PT.func,
completenessStyle: PT.string,
- location: PT.object,
addedRoles: PT.array,
+ matchingRole: PT.object,
};
export default withAuthentication(SubmitContainer);
diff --git a/src/routes/CreateNewTeam/pages/InputJobDescription/components/SkillListPopup/index.jsx b/src/routes/CreateNewTeam/pages/InputJobDescription/components/SkillListPopup/index.jsx
index 60317253..6d095ca5 100644
--- a/src/routes/CreateNewTeam/pages/InputJobDescription/components/SkillListPopup/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputJobDescription/components/SkillListPopup/index.jsx
@@ -5,67 +5,50 @@
import React from "react";
import _ from "lodash";
import PT from "prop-types";
-import Modal from "react-responsive-modal";
import Button from "components/Button";
-import IconCrossLight from "../../../../../../assets/images/icon-cross-light.svg";
import IconSingleManAdd from "../../../../../../assets/images/icon-single-man-add.svg";
import "./styles.module.scss";
-import CenteredSpinner from "components/CenteredSpinner";
+import BaseCreateModal from "../../../../components/BaseCreateModal";
-const modalStyle = {
- borderRadius: "8px",
- padding: "32px 32px 22px 32px",
- maxWidth: "460px",
- width: "100%",
- margin: 0,
- "overflow-x": "hidden",
-};
-
-const containerStyle = {
- padding: "10px",
-};
+function SkillListPopup({ open, skills, isLoading, onClose, onContinueClick }) {
+ const Buttons = (
+ <>
+
+
+ >
+ );
-function SkillListPopup({ open, skills, onClose, isLoading, onContinueClick }) {
return (
-
+ headerIcon={}
+ title="Skills"
+ subtitle={
+ skills.length
+ ? "These skills are found in your Job Description"
+ : "No skills are found in your Job Description"
}
- styles={{
- modal: modalStyle,
- modalContainer: containerStyle,
- }}
+ isLoading={isLoading}
+ loadingMessage="Loading skills..."
+ maxWidth="460px"
+ buttons={Buttons}
>
-
- {isLoading ? (
- <>
-
- loading skills
- >
- ) : (
- <>
-
- skills
- {_.map(skills, (s) => {
- return {s.tag} ;
- })}
- >
- )}
-
-
-
+
+ {_.map(skills, (s) => {
+ return {s.tag} ;
+ })}
-
+
);
}
diff --git a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
index 3284f876..5849d6dc 100644
--- a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
@@ -10,6 +10,8 @@ import MarkdownEditor from "../../../../components/MarkdownEditor";
import "./styles.module.scss";
import SearchAndSubmit from "../../components/SearchAndSubmit";
import TextInput from "components/TextInput";
+import { getSkillsByJobDescription } from "services/teams";
+import SkillListPopup from "./components/SkillListPopup";
function InputJobDescription() {
const [stages, setStages] = useState([
@@ -19,11 +21,30 @@ function InputJobDescription() {
]);
const [jdString, setJdString] = useState("");
const [jobTitle, setJobTitle] = useState("");
+ const [skills, setSkills] = useState([]);
+ const [loadingSkills, setLoadingSkills] = useState(true);
+ const [popupOpen, setPopupOpen] = useState(false);
const onEditChange = useCallback((value) => {
setJdString(value);
}, []);
+ const onClick = useCallback(() => {
+ setLoadingSkills(true);
+ setSkills([]);
+ setPopupOpen(true);
+ getSkillsByJobDescription(jdString)
+ .then((res) => {
+ setSkills(res.data);
+ })
+ .catch((err) => {
+ console.error(err);
+ })
+ .finally(() => {
+ setLoadingSkills(false);
+ });
+ }, [jdString]);
+
return (
255}
completenessStyle="input-job-description"
searchObject={{ jobDescription: jdString }}
- toRender={
- <>
-
-
-
-
-
- 255
- ? "Maximum of 255 characters. Please reduce job description length."
- : ""
- }
+ onClick={onClick}
+ toRender={(searchFunc) => (
+
+
+
+
- >
- }
+ 255
+ ? "Maximum of 255 characters. Please reduce job description length."
+ : ""
+ }
+ />
+ setPopupOpen(false)}
+ skills={skills}
+ isLoading={loadingSkills}
+ onContinueClick={searchFunc}
+ />
+
+ )}
/>
);
}
diff --git a/src/routes/CreateNewTeam/pages/InputSkills/index.jsx b/src/routes/CreateNewTeam/pages/InputSkills/index.jsx
index a9ace938..ac0a7b2b 100644
--- a/src/routes/CreateNewTeam/pages/InputSkills/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputSkills/index.jsx
@@ -51,13 +51,13 @@ function InputSkills() {
isCompletenessDisabled={selectedSkills.length < 1}
searchObject={{ skills: selectedSkills }}
completenessStyle="input-skills"
- toRender={
+ toRender={() => (
- }
+ )}
/>
);
}
diff --git a/src/routes/CreateNewTeam/pages/SelectRole/index.jsx b/src/routes/CreateNewTeam/pages/SelectRole/index.jsx
index 88c84e07..73dddfa7 100644
--- a/src/routes/CreateNewTeam/pages/SelectRole/index.jsx
+++ b/src/routes/CreateNewTeam/pages/SelectRole/index.jsx
@@ -49,7 +49,7 @@ function SelectRole() {
isCompletenessDisabled={!selectedRoleId}
searchObject={{ roleId: selectedRoleId }}
completenessStyle="role-selection"
- toRender={
+ toRender={() => (
<>
setRoleDetailsModalOpen(false)}
/>
>
- }
+ )}
/>
);
}
From eead1c53171b2c8eca78a40e76067234b84b36cf Mon Sep 17 00:00:00 2001
From: Michael Baghel
Date: Tue, 22 Jun 2021 23:04:18 +0400
Subject: [PATCH 6/9] Add job title to request from Job Description page. Add
job title/role name heading to Result Card. Show No Matching Role page on
backend error.
---
.../CreateNewTeam/components/ResultCard/index.jsx | 11 +++++++++--
.../components/ResultCard/styles.module.scss | 14 +++++++++++++-
.../pages/InputJobDescription/index.jsx | 11 +++++++++--
src/utils/helpers.js | 2 +-
4 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/src/routes/CreateNewTeam/components/ResultCard/index.jsx b/src/routes/CreateNewTeam/components/ResultCard/index.jsx
index 97e44dbf..07f21c13 100644
--- a/src/routes/CreateNewTeam/components/ResultCard/index.jsx
+++ b/src/routes/CreateNewTeam/components/ResultCard/index.jsx
@@ -32,6 +32,10 @@ function ResultCard({ role }) {
isExternalMember,
skillsMatch,
rates: [rates],
+ jobTitle,
+ name,
+ timeToCandidate,
+ timeToInterview,
} = role;
const [userHandle, setUserHandle] = useState(null);
const [showRates, setShowRates] = useState(false);
@@ -54,6 +58,9 @@ function ResultCard({ role }) {
+
+ {jobTitle && jobTitle.length ? jobTitle : name}
+
Qualified candidates within
- 24h
+ {timeToCandidate}h
Interviews can start within
- 48h
+ {timeToInterview}h
diff --git a/src/routes/CreateNewTeam/components/ResultCard/styles.module.scss b/src/routes/CreateNewTeam/components/ResultCard/styles.module.scss
index 95ec69ae..6babd0a1 100644
--- a/src/routes/CreateNewTeam/components/ResultCard/styles.module.scss
+++ b/src/routes/CreateNewTeam/components/ResultCard/styles.module.scss
@@ -13,7 +13,7 @@
justify-content: flex-start;
align-items: center;
padding: 30px 0 60px 0;
- margin-bottom: 30px;
+ margin-bottom: 14px;
color: #fff;
background-image: linear-gradient(225deg, #0ab88a 0%, #137d60 100%);
position: relative;
@@ -40,6 +40,18 @@
}
}
+.job-title {
+ @include font-barlow;
+ font-size: 22px;
+ margin-bottom: 18px;
+ font-weight: 600;
+ text-align: center;
+ text-transform: uppercase;
+ // position text over bottom of header image
+ position: relative;
+ z-index: 100;
+}
+
.button-group {
display: flex;
flex-direction: row;
diff --git a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
index 5849d6dc..e7df1512 100644
--- a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
@@ -4,7 +4,7 @@
* Allows user to search for roles by
* job description
*/
-import React, { useCallback, useState } from "react";
+import React, { useCallback, useMemo, useState } from "react";
import PageHeader from "components/PageHeader";
import MarkdownEditor from "../../../../components/MarkdownEditor";
import "./styles.module.scss";
@@ -29,6 +29,13 @@ function InputJobDescription() {
setJdString(value);
}, []);
+ const searchObject = useMemo(() => {
+ if (jobTitle && jobTitle.length) {
+ return { jobDescription: jdString, jobTitle };
+ }
+ return { jobDescription: jdString };
+ }, [jobTitle, jdString]);
+
const onClick = useCallback(() => {
setLoadingSkills(true);
setSkills([]);
@@ -51,7 +58,7 @@ function InputJobDescription() {
setStages={setStages}
isCompletenessDisabled={jdString.length < 10 || jdString.length > 255}
completenessStyle="input-job-description"
- searchObject={{ jobDescription: jdString }}
+ searchObject={searchObject}
onClick={onClick}
toRender={(searchFunc) => (
diff --git a/src/utils/helpers.js b/src/utils/helpers.js
index 4a92c84e..c54cbe5f 100644
--- a/src/utils/helpers.js
+++ b/src/utils/helpers.js
@@ -70,4 +70,4 @@ export const setCurrentStage = (currentStepIdx, stages, setStagesCallback) => {
* @returns {boolean} whether the role is custom/niche
*/
export const isCustomRole = (role) =>
- !role.name || CUSTOM_ROLE_NAMES.includes(role.name.toLowerCase());
+ !role || !role.name || CUSTOM_ROLE_NAMES.includes(role.name.toLowerCase());
From 1d1cc33b83e00dd701e845197cc82eb9d17041f6 Mon Sep 17 00:00:00 2001
From: Michael Baghel
Date: Wed, 23 Jun 2021 00:36:11 +0400
Subject: [PATCH 7/9] Fix placeholder centering in roles page and skills page.
Fix role details popup changing size:
https://github.com/topcoder-platform/taas-app/issues/309. Redirect to My
Teams list page instead of specific team:
https://github.com/topcoder-platform/taas-app/issues/309. Send
previousRoleSearchRequestId in /sendRoleSearchRequest POST.
---
.../components/ItemList/styles.module.scss | 6 ++--
.../components/RoleDetailsModal/index.jsx | 28 ++++++++++---------
.../RoleDetailsModal/styles.module.scss | 5 ++++
.../components/SubmitContainer/index.jsx | 5 ++--
.../TeamDetailsModal/styles.module.scss | 7 +----
src/services/teams.js | 2 +-
6 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/src/routes/CreateNewTeam/components/ItemList/styles.module.scss b/src/routes/CreateNewTeam/components/ItemList/styles.module.scss
index eaa1099f..6e41531e 100644
--- a/src/routes/CreateNewTeam/components/ItemList/styles.module.scss
+++ b/src/routes/CreateNewTeam/components/ItemList/styles.module.scss
@@ -7,7 +7,7 @@
margin-right: 20px;
position: relative;
height: 80vh;
- overflow-y: scroll;
+ overflow-y: auto;
> header {
padding: 16px 24px;
@@ -33,9 +33,9 @@ input:not([type="checkbox"]).filter-input {
color: #2a2a2a;
font-size: 14px;
height: 40px;
- line-height: 38px;
+ line-height: normal;
outline: none;
- padding: 0 15px;
+ padding: 8px 15px;
&:not(:focus) {
background-image: url("../../../../assets/images/icon-search.svg");
diff --git a/src/routes/CreateNewTeam/components/RoleDetailsModal/index.jsx b/src/routes/CreateNewTeam/components/RoleDetailsModal/index.jsx
index 206e4ee5..153a8a96 100644
--- a/src/routes/CreateNewTeam/components/RoleDetailsModal/index.jsx
+++ b/src/routes/CreateNewTeam/components/RoleDetailsModal/index.jsx
@@ -90,19 +90,21 @@ function RoleDetailsModal({ roleId, open, onClose }) {
Skills
- {showSkills ? (
-
- {skills.map((skill, i) => (
- -
- {skill}
-
- ))}
-
- ) : (
-
-
-
- )}
+
+ {showSkills ? (
+
+ {skills.map((skill, i) => (
+ -
+ {skill}
+
+ ))}
+
+ ) : (
+
+
+
+ )}
+
);
diff --git a/src/routes/CreateNewTeam/components/RoleDetailsModal/styles.module.scss b/src/routes/CreateNewTeam/components/RoleDetailsModal/styles.module.scss
index d8ad2bf7..8aa70eac 100644
--- a/src/routes/CreateNewTeam/components/RoleDetailsModal/styles.module.scss
+++ b/src/routes/CreateNewTeam/components/RoleDetailsModal/styles.module.scss
@@ -58,3 +58,8 @@
margin-bottom: 10px;
font-size: 12px;
}
+
+.content {
+ height: 180px;
+ overflow-y: auto;
+}
diff --git a/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx b/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
index 5296a269..af192122 100644
--- a/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
+++ b/src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
@@ -94,10 +94,9 @@ function SubmitContainer({
const requestTeam = useCallback(() => {
setRequestLoading(true);
postTeamRequest(teamObject)
- .then((res) => {
- const projectId = _.get(res, ["data", "projectId"]);
+ .then(() => {
dispatch(clearSearchedRoles());
- navigate(`/taas/myteams/${projectId}`);
+ navigate("/taas/myteams");
})
.catch((err) => {
setRequestLoading(false);
diff --git a/src/routes/CreateNewTeam/components/TeamDetailsModal/styles.module.scss b/src/routes/CreateNewTeam/components/TeamDetailsModal/styles.module.scss
index 0ebcca39..49a78e76 100644
--- a/src/routes/CreateNewTeam/components/TeamDetailsModal/styles.module.scss
+++ b/src/routes/CreateNewTeam/components/TeamDetailsModal/styles.module.scss
@@ -85,13 +85,8 @@
}
.modal-body {
+ overflow-x: auto;
textarea {
height: 95px;
}
}
-
-@media only screen and (max-width: 550px) {
- .modal-body {
- overflow-x: scroll;
- }
-}
\ No newline at end of file
diff --git a/src/services/teams.js b/src/services/teams.js
index 7fedd403..b8b4200c 100644
--- a/src/services/teams.js
+++ b/src/services/teams.js
@@ -215,13 +215,13 @@ export const postProject = () => {
* @param {string} searchObject.roleId a role id to search for
* @param {string} searchObject.jobDescription job description used for search
* @param {string[]} searchObject.skills array of skill ids used for role search
+ * @param {string} searchObject.jobTitle job title to associate with search
* @param {string} searchObject.previousRoleSearchRequestId id of the last search made
*
* @returns {Promise |