Skip to content

Commit

Permalink
feat(version): release 0.33.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 26, 2024
1 parent c7c7485 commit 6ebebce
Show file tree
Hide file tree
Showing 50 changed files with 224 additions and 287 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.33.0",
"version": "0.33.1",
"private": true,
"scripts": {
"dev": "GENERATE_SOURCEMAP=false react-scripts start",
Expand Down
35 changes: 0 additions & 35 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1162,36 +1162,10 @@ video {
height: 100vh;
}

.h-max {
height: -webkit-max-content;
height: max-content;
}

.h-min {
height: -webkit-min-content;
height: min-content;
}

.h-auto {
height: auto;
}

.max-h-\[40rem\] {
max-height: 40rem;
}

.max-h-full {
max-height: 100%;
}

.\!max-h-full {
max-height: 100% !important;
}

.\!max-h-\[20rem\] {
max-height: 20rem !important;
}

.min-h-4 {
min-height: 1rem;
}
Expand Down Expand Up @@ -1421,11 +1395,6 @@ video {
width: max-content;
}

.w-min {
width: -webkit-min-content;
width: min-content;
}

.min-w-24 {
min-width: 6rem;
}
Expand Down Expand Up @@ -2217,10 +2186,6 @@ video {
background-color: rgb(234 179 8 / var(--tw-bg-opacity));
}

.object-cover {
object-fit: cover;
}

.\!p-0 {
padding: 0px !important;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/CFAddBuildButton/CFAddBuildButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ interface ICFAddBuildButton {
export default function CFAddBuildButton({
formik,
}: ICFAddBuildButton): ReactElement {
const { handleAddStepToBuildStep } = useCreateRobot();
const { handleAddBuildStep } = useCreateRobot();

return (
<div data-tut="create-robot-step3-build-add-button">
<CreateRobotFormAddButton
onClick={() => handleAddStepToBuildStep(formik)}
onClick={() => handleAddBuildStep(formik)}
disabled={formik?.isSubmitting}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/CFDeleteBuildButton/CFDeleteBuildButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export default function CFDeleteBuildButton({

return (
<Fragment>
{formik.values?.robotBuildSteps?.length > 1 && (
{formik.values?.steps?.length > 1 && (
<CreateRobotFormDeleteButton
onClick={() => {
handleRemoveStepFromBuildStep(formik, buildStepIndex);
}}
text={`Delete ${
formik.values.robotBuildSteps[buildStepIndex]?.name || "this"
formik.values.steps?.[buildStepIndex]?.name || "this"
} Build Step`}
disabled={formik?.isSubmitting}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CFGpuTypes/CFGpuTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function CFGpuTypes({
function handleGetInstance() {
getInstance(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceName: selectedState.instance?.name!,
region: selectedState?.roboticsCloud?.region!,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CFPortSetter/CFPortSetter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function CFPortSetter({
try {
const result = await dispatch(
getFreePort({
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateForms/CFAppStep1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function CFAppStep1({
function handleGetEnvironment() {
getEnvironment(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateForms/CFFleet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function CreateFleetForm(): ReactElement {
dispatch(
createFederatedFleet({
robolaunchFederatedFleetsName: values.name,
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand Down
6 changes: 3 additions & 3 deletions src/components/CreateForms/CFInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function CFInstance(): ReactElement {
formik.setSubmitting(true);
dispatch(
createCloudInstance({
organizationId: selectedState.organization!.organizationId!,
organizationId: selectedState.organization!.id!,
roboticsCloudName: selectedState.roboticsCloud!.name!,
cloudInstanceName: values.cloudInstanceName,
instanceType: values.instanceType,
Expand All @@ -52,7 +52,7 @@ export default function CFInstance(): ReactElement {
/>

<div className="flex flex-col gap-3">
<div className="text-light-700 flex min-w-fit gap-1 text-xs font-medium">
<div className="flex min-w-fit gap-1 text-xs font-medium text-light-700">
Types:
<InfoTip
content="
Expand Down Expand Up @@ -80,7 +80,7 @@ export default function CFInstance(): ReactElement {
/>
<div className="text-xs uppercase">{type.name}</div>
</div>
<div className="text-light-700 flex gap-2.5">
<div className="flex gap-2.5 text-light-700">
<div className="flex items-center gap-1">
<BsCpu className="text-light-600" size={14} />
<span className="text-xs">{type.resources.cpu} CPU</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateForms/CFNamespace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function CreateNamespaceForm(): ReactElement {
dispatch(
createNamespace({
namespaceName: values.name,
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand Down
6 changes: 3 additions & 3 deletions src/components/CreateForms/CFPhysical.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function CFPhysical(): ReactElement {
await keycloak.updateToken(-1);
await dispatch(
addPhysicalInstance({
organizationId: selectedState?.organization?.organizationId,
organizationId: selectedState?.organization?.id,
roboticsCloudName: selectedState?.roboticsCloud?.name,
instanceId: selectedState?.instance?.instanceId,
region: selectedState?.instance?.region,
Expand Down Expand Up @@ -69,7 +69,7 @@ export default function CFPhysical(): ReactElement {
}}
theme="vs-dark"
/>
<p className="text-light-600 text-sm font-medium">
<p className="text-sm font-medium text-light-600">
Copy the code given below and run it on your physical device. After
doing this, you can check and manage the status of your device.
</p>
Expand All @@ -81,7 +81,7 @@ export default function CFPhysical(): ReactElement {
/>
</CopyToClipboard>
<Button
className="!bg-light-50 border-primary-700 !text-primary-700 hover:!bg-primary-100 border capitalize transition-all duration-500"
className="border border-primary-700 !bg-light-50 capitalize !text-primary-700 transition-all duration-500 hover:!bg-primary-100"
text="Done"
onClick={() => {
setSidebarState({ ...sidebarState, isCreateMode: false });
Expand Down
12 changes: 6 additions & 6 deletions src/components/CreateForms/CFRegion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function CFRegion(): ReactElement {

dispatch(
createRoboticsCloud({
organizationId: selectedState.organization!.organizationId,
organizationId: selectedState.organization!.id,
roboticsCloudName: values.roboticsCloudName,
provider: values.provider,
region: values.region,
Expand All @@ -52,7 +52,7 @@ export default function CFRegion(): ReactElement {
inputTouched={!!formik.errors.roboticsCloudName}
/>
<div className="flex flex-col gap-3">
<div className="text-light-700 flex min-w-fit gap-1 text-xs font-medium">
<div className="flex min-w-fit gap-1 text-xs font-medium text-light-700">
Providers:
<InfoTip
content="
Expand Down Expand Up @@ -88,7 +88,7 @@ export default function CFRegion(): ReactElement {
filter: provider.isDisabled ? `grayscale(1)` : `none`,
}}
/>
<span className="text-light-700 text-[0.68rem]">
<span className="text-[0.68rem] text-light-700">
{provider.fullName}
</span>
</div>
Expand All @@ -100,7 +100,7 @@ export default function CFRegion(): ReactElement {
</div>
{formik?.values?.provider && (
<div className="flex flex-col gap-3">
<div className="text-light-700 flex min-w-fit gap-1 text-xs font-medium">
<div className="flex min-w-fit gap-1 text-xs font-medium text-light-700">
Regions:
<InfoTip
content="
Expand All @@ -126,10 +126,10 @@ export default function CFRegion(): ReactElement {
}}
>
<div className="flex flex-col items-center gap-2">
<span className="text-light-800 text-xs">
<span className="text-xs text-light-800">
{region?.name}
</span>
<span className="text-light-700 text-xs">
<span className="text-xs text-light-700">
({region?.city})
</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/CreateForms/CFStep1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function CFStep1({ isImportRobot }: ICFStep1): ReactElement {
function handleGetRobot() {
getRobot(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
Expand Down Expand Up @@ -75,7 +75,7 @@ export default function CFStep1({ isImportRobot }: ICFStep1): ReactElement {
);
setTimeout(() => {
window.location.href = `/${
selectedState?.organization?.organizationName?.split("_")[1]
selectedState?.organization?.name?.split("_")[1]
}/${selectedState?.roboticsCloud?.name}/${
selectedState?.instance?.name
}/${selectedState?.fleet?.name}/${robotData?.step1?.details?.name}}`;
Expand Down
8 changes: 4 additions & 4 deletions src/components/CreateForms/CFStep2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetRobot() {
getRobot(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand All @@ -142,7 +142,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetEnvironment() {
getEnvironment(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
Expand All @@ -160,7 +160,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetFleet() {
getFleet(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand All @@ -176,7 +176,7 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
function handleGetNamespace() {
getNamespace(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateForms/CFStep3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function CFStep3({ isImportRobot }: ICFStep3): ReactElement {
function handleGetRobot() {
getRobot(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.roboticsCloud?.region!,
Expand Down
4 changes: 2 additions & 2 deletions src/components/CreateForms/CFStep4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function CFStep4({

await dispatch(
createLaunchManager({
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand All @@ -82,7 +82,7 @@ export default function CFStep4({

setTimeout(() => {
window.location.href = `/${organizationNameViewer({
organizationName: selectedState?.organization?.organizationName!,
organizationName: selectedState?.organization?.name!,
capitalization: false,
})}/${selectedState?.roboticsCloud?.name}/${
selectedState?.instance?.name
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateRobotTypes/CreateRobotTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function CreateRobotTypes({
function handleGetPhysicalInstances() {
getPhysicalInstances(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand Down
2 changes: 1 addition & 1 deletion src/components/FilteredTags/FilteredTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function FilteredTags(): ReactElement {
/>
<span className="cursor-default text-xs text-secondary-900">
{organizationNameViewer({
organizationName: selectedState?.organization?.organizationName,
organizationName: selectedState?.organization?.name,
capitalization: false,
})}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default function HostDirectoriesSearchIframe(): ReactElement {

return (
<Fragment>
<button onClick={() => setIsOpened(true)}>
<div className="cursor-pointer" onClick={() => setIsOpened(true)}>
<IoSearch className="text-light-500" size={16} />
</button>
</div>
{isOpened && (
<IframeModal
handleCloseModal={() => setIsOpened(false)}
Expand Down
5 changes: 2 additions & 3 deletions src/components/SidebarLists/CloudInstancesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function CloudInstancesList({
function handleGetCloudInstances() {
getInstances(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
region: selectedState?.roboticsCloud?.region!,
details: true,
Expand Down Expand Up @@ -83,8 +83,7 @@ export default function CloudInstancesList({
name={instance?.name}
description={<CloudInstancesListItemDesc instance={instance} />}
url={`/${organizationNameViewer({
organizationName:
selectedState?.organization?.organizationName!,
organizationName: selectedState?.organization?.name!,
capitalization: false,
})}/${selectedState?.roboticsCloud?.name}/${instance?.name}`}
data={instance}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SidebarLists/EnvironmentsList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import { Fragment, ReactElement, useEffect, useState } from "react";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import StateCell from "../TableInformationCells/StateCell";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function EnvironmentsList({
function handleGetEnvironments() {
getEnvironments(
{
organizationId: selectedState?.organization?.organizationId!,
organizationId: selectedState?.organization?.id!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId!,
region: selectedState?.instance?.region!,
Expand Down
Loading

0 comments on commit 6ebebce

Please sign in to comment.