Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Rename ManualEval to StowHandler #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Finally, in the `server/prisma/schema.prisma`, you can define the tables for th

### Frontend
In the [`src`](https://github.com/au-rmr/aurmr_inventory/tree/main/src), inside the `components` folder, the important ones are the following:
* `ManualEval.tsx` -> Frontend for handling the stowing process.
* `StowHandler.tsx` -> Frontend for handling the stowing process.
* `PickHandler.tsx` -> Frontend for handling the picking process.
* `Evaluator.tsx` -> Frontend for random generation of product configurations in bins. Not currently in use but could be built on for future use.

Expand Down
4 changes: 2 additions & 2 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Route,
} from "react-router-dom";
import Evaluator from './Evaluator';
import ManualEval from './ManualEval';
import StowHandler from './StowHandler';
import ManualEval2 from './ManualEval2';
import Home from './Home';
import EditBin from './EditBin';
Expand Down Expand Up @@ -58,7 +58,7 @@ function App() {
<Routes>
{/* <Route path="/" element={<Home />} /> */}
<Route path="/evaluator" element={<div id="main"><Evaluator /></div>} />
<Route path="/" element={<ManualEval />} />
<Route path="/" element={<StowHandler />} />
<Route path="/manualevaluation2" element={<ManualEval2 />} />
<Route path="/manualevaluation/editBin/:binId" element={<EditBin />} />
<Route path="/pickhandler" element={<PickHandler />} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/ManualEval2.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, useState } from 'react';
import "../styles/ManualEval.css";
import "../styles/StowHandler.css";
import { useRef } from 'react';

import Bin from "./Bin";
Expand Down
10 changes: 5 additions & 5 deletions src/components/ManualEval.tsx → src/components/StowHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, useEffect, useState } from 'react';
import "../styles/ManualEval.css";
import "../styles/StowHandler.css";
import { useRef } from 'react';

import { Link } from 'react-router-dom';
Expand Down Expand Up @@ -46,16 +46,16 @@ import { matrix, subtract, row, ResultSetDependencies } from 'mathjs';
import ROSLIB from "roslib";
import { useROS } from "react-ros";

interface ManualEvalProps {
interface StowHandlerProps {

}

interface ManualEvalState {
interface StowHandlerState {
rows: JSX.Element[]
cols: JSX.Element[]
}

function ManualEval(props: any) {
function StowHandler(props: any) {
const debug: boolean = false;

const NUM_ROWS: number = 10;
Expand Down Expand Up @@ -823,4 +823,4 @@ function ManualEval(props: any) {
)
}

export default ManualEval;
export default StowHandler;
File renamed without changes.