minor fixes
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -42,3 +42,6 @@ __pycache__/
|
|||||||
|
|
||||||
# PyCharm
|
# PyCharm
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
# Images
|
||||||
|
agents_images/
|
||||||
|
|||||||
@@ -86,13 +86,6 @@ For developers:
|
|||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
OR build the project and run the production server:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm run build
|
|
||||||
npm start
|
|
||||||
```
|
|
||||||
|
|
||||||
6. **Access the App**: Once the development server is running, access the app in your browser at `http://localhost:3000`.
|
6. **Access the App**: Once the development server is running, access the app in your browser at `http://localhost:3000`.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const AgentsPage = () => {
|
|||||||
i % 2 == 0 ? "lg:flex-row" : "lg:flex-row-reverse"
|
i % 2 == 0 ? "lg:flex-row" : "lg:flex-row-reverse"
|
||||||
} rounded overflow-hidden h-auto min-h-52 border`}
|
} rounded overflow-hidden h-auto min-h-52 border`}
|
||||||
>
|
>
|
||||||
<Image
|
<img
|
||||||
className="block max-w-72 w-full lg:w-48 flex-none bg-cover mx-auto"
|
className="block max-w-72 w-full lg:w-48 flex-none bg-cover mx-auto"
|
||||||
src={agent.image ?? "/agents_images/sailor.png"}
|
src={agent.image ?? "/agents_images/sailor.png"}
|
||||||
alt="Agent"
|
alt="Agent"
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ const MissionTaskEditor: React.FC<MissionTaskEditorProps> = ({
|
|||||||
onMissionChange(updatedMission);
|
onMissionChange(updatedMission);
|
||||||
setNewTaskName("");
|
setNewTaskName("");
|
||||||
setNewTaskDescription("");
|
setNewTaskDescription("");
|
||||||
|
setNewTaskExpectedOutput("");
|
||||||
|
setNewTaskAgent(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleRemoveTask = (index: number) => {
|
const handleRemoveTask = (index: number) => {
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ export default function AgentModal(props: {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{selectedImage && (
|
{selectedImage && (
|
||||||
<Image
|
<img
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
src={selectedImage}
|
src={selectedImage}
|
||||||
alt="Agent Image"
|
alt="Agent Image"
|
||||||
@@ -381,7 +381,7 @@ export default function AgentModal(props: {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Image
|
<img
|
||||||
src={tempAgent?.image ?? "/agents_images/sailor.png"}
|
src={tempAgent?.image ?? "/agents_images/sailor.png"}
|
||||||
alt="Agent Image"
|
alt="Agent Image"
|
||||||
className="w-7/12 mx-auto rounded-lg"
|
className="w-7/12 mx-auto rounded-lg"
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ open http://localhost:3000
|
|||||||
|
|
||||||
# Run the project
|
# Run the project
|
||||||
echo "Starting development server..."
|
echo "Starting development server..."
|
||||||
npm start
|
npm run dev
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
REM Run the project
|
REM Run the project
|
||||||
echo Starting development server...
|
echo Starting development server...
|
||||||
start call npm start
|
start call npm run dev
|
||||||
|
|
||||||
REM Wait for a few seconds to ensure the server is up and running
|
REM Wait for a few seconds to ensure the server is up and running
|
||||||
timeout /t 2
|
timeout /t 2
|
||||||
|
|||||||
Reference in New Issue
Block a user