Skip to content

Commit

Permalink
Change Deploying to Deploying devices
Browse files Browse the repository at this point in the history
  • Loading branch information
jakdan99 committed Nov 6, 2024
1 parent 546d03c commit 4c20fa0
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 24 deletions.
12 changes: 5 additions & 7 deletions src/pages/Deployment/BasicInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ const BasicInfo = () => {
<StyledStatusText
variant="h6"
status={deployment.deploymentStatus.__type.split(".").pop()}
align="center"
>
{
deployment.deploymentStatus.__type
.split(".")
.pop()
.replace(/([a-z])([A-Z])/g, "$1 $2")
.split(" ")[0]
}
{deployment.deploymentStatus.__type
.split(".")
.pop()
.replace(/([a-z])([A-Z])/g, "$1 $2")}
</StyledStatusText>
</Stack>
{!deployment.deploymentStatus.__type.includes("Stopped") && (
Expand Down
11 changes: 4 additions & 7 deletions src/pages/Deployments/DeploymentCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,10 @@ const DeploymentCard = ({
status={deployment.deploymentStatus.__type.split(".").pop()}
/>
<Typography variant="h6">
{
deployment.deploymentStatus.__type
.split(".")
.pop()
.replace(/([a-z])([A-Z])/g, "$1 $2")
.split(" ")[0]
}
{deployment.deploymentStatus.__type
.split(".")
.pop()
.replace(/([a-z])([A-Z])/g, "$1 $2")}
</Typography>
<DateTooltip
invitedAt={deployment.deploymentStatus.createdOn}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Deployments/DeploymentCard/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const GreyText = styled(Typography)(({ theme }) => ({
export const TopContainer = styled("div")({
borderRadius: "16px",
display: "grid",
gridTemplateColumns: "1fr 40px 220px 400px 60px",
gridTemplateColumns: "1fr 40px 275px 400px 60px",
alignItems: "center",
marginBottom: 16,
width: "100%",
Expand Down
9 changes: 4 additions & 5 deletions src/pages/Participant/Deployment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,10 @@ const Deployment = () => {
status={deploymentInformation.groupStatus}
/>
<SecondaryText variant="h6">
{
deploymentInformation.groupStatus
.replace(/([a-z])([A-Z])/g, "$1 $2")
.split(" ")[0]
}
{deploymentInformation.groupStatus.replace(
/([a-z])([A-Z])/g,
"$1 $2",
)}
</SecondaryText>
<DateTooltip
invitedAt={deploymentInformation.deploymentStatus.invitedOn}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/StudyAnnouncementNew/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const validationSchema = yup.object().shape({
type: yup.string().required("Type is required"),
url: yup.string().test("is-url-valid", "URL is not valid", (value) => {
try {
if (!value) return true;

// eslint-disable-next-line no-new
new URL(value);
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ParticipantsRow = styled("div")({
display: "grid",
gridTemplateColumns: "80px 1fr",
gap: 8,
alignItems: "end",
alignItems: "center",
});

export default ParticipantsRow;
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const TooltipContent = () => {
invitation.
</Typography>
<Typography variant="h5">
<span style={{ color: getDeploymentStatusColor("Deploying") }}>
Deploying
<span style={{ color: getDeploymentStatusColor("DeployingDevices") }}>
Deploying Devices
</span>
: Participants have started registering devices, but are remaining
devices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const DeploymentStatus = () => {
deploying: {
id: 1,
value: 0,
label: "Deploying",
label: "Deploying Devices",
color: getDeploymentStatusColor("DeployingDevices"),
},
running: {
Expand Down

0 comments on commit 4c20fa0

Please sign in to comment.