Skip to content
Merged
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
20 changes: 10 additions & 10 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.42.1.51946",
"templateHash": "16235959711463268871"
"version": "0.43.8.12551",
"templateHash": "2561563027340256551"
}
},
"parameters": {
Expand Down Expand Up @@ -4717,8 +4717,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.42.1.51946",
"templateHash": "2245351167779444314"
"version": "0.43.8.12551",
"templateHash": "4604761290796021104"
}
},
"definitions": {
Expand Down Expand Up @@ -27476,8 +27476,8 @@
},
"dependsOn": [
"appIdentity",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
"virtualNetwork"
]
},
Expand Down Expand Up @@ -31449,8 +31449,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.42.1.51946",
"templateHash": "16866311185741009453"
"version": "0.43.8.12551",
"templateHash": "13516349791985095953"
}
},
"definitions": {
Expand Down Expand Up @@ -35199,8 +35199,8 @@
},
"dependsOn": [
"aiFoundryAiServices",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
"virtualNetwork"
]
Expand Down Expand Up @@ -35238,8 +35238,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.42.1.51946",
"templateHash": "16351752584270870112"
"version": "0.43.8.12551",
"templateHash": "17583277036649944863"
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ const ProgressModal: React.FC<ProgressModalProps> = ({
const actionsMatch = raw.match(/📊\s*(\d+)\s*actions?/);
const actionCount = actionsMatch ? parseInt(actionsMatch[1]) : 0;

// Extract blocking info from 🚧 segment
const blockingMatch = raw.match(/🚧\s*Blocking\s*(\d+)/);
const blockingCount = blockingMatch ? parseInt(blockingMatch[1]) : 0;

// Special handling for Coordinator: parse routing info from message
let coordinatorTarget = '';
let coordinatorInstruction = '';
Expand Down
1 change: 0 additions & 1 deletion src/frontend/src/components/bottomBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button, Card, Dropdown, DropdownProps, Option } from "@fluentui/react-components"
import React from "react"
import { useNavigate } from "react-router-dom"

// Define possible upload states
const UploadState = {
Expand Down
16 changes: 0 additions & 16 deletions src/frontend/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,6 @@ const Main = () => {

initMsal(); // Call the async function inside useEffect
}, []);
async function checkConnection() {
if (!config) return;

const baseURL = config.API_URL.replace(/\/api$/, ''); // Remove '/api' if it appears at the end
console.log('Checking connection to:', baseURL);
try {
const response = await fetch(`${baseURL}/health`);
if (response.ok) {
console.log('========> Backend connection successful');
} else {
console.log('========> Backend responded with error status:', response.status);
}
} catch (error) {
console.log('========> Backend not available (this is okay for frontend-only testing):', error.message);
}
}

// useEffect(() => {
// if (config) {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/pages/batchView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import PanelRight from "../components/Panels/PanelRight";
import PanelRightToolbar from "../components/Panels/PanelRightToolbar";
import BatchHistoryPanel from "../components/batchHistoryPanel";
import ConfirmationDialog from "../commonComponents/ConfirmationDialog/confirmationDialogue";
import { determineFileStatus, filesLogsBuilder, renderErrorSection, useStyles, renderFileError, filesErrorCounter, completedFiles, hasFiles, fileErrorCounter, BatchSummary, fileWarningCounter } from "../api/utils";
import { renderErrorSection, useStyles, renderFileError, BatchSummary } from "../api/utils";
export const History = bundleIcon(HistoryFilled, HistoryRegular);


Expand Down
8 changes: 3 additions & 5 deletions src/frontend/src/pages/landingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from "react";
import React, { useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import { RootState } from "../store/store";
import { togglePanel, closePanel } from "../slices/historyPanelSlice";
Expand Down Expand Up @@ -32,10 +32,8 @@ export const LandingPage = (): JSX.Element => {
dispatch(resetState());
}, [dispatch]);

const [uploadState, setUploadState] = useState<"IDLE" | "UPLOADING" | "COMPLETED">('IDLE');

const handleUploadStateChange = (state) => {
setUploadState(state);
const handleUploadStateChange = (_state) => {
// State change handler - currently unused but kept for future use
};

const handleStartTranslating = async () => {
Expand Down
23 changes: 2 additions & 21 deletions src/frontend/src/pages/modernizationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { vs } from "react-syntax-highlighter/dist/esm/styles/hljs"
const unwrapHljs = (mod: any) => (typeof mod === "function" ? mod : mod.default);
SyntaxHighlighter.registerLanguage("sql", unwrapHljs(sqlLang))
import { useNavigate, useParams } from "react-router-dom"
import { useState, useEffect, useCallback, useRef } from "react"
import { useState, useEffect } from "react"
import { getApiUrl, headerBuilder } from '../api/config';
import BatchHistoryPanel from "../components/batchHistoryPanel"
import PanelRight from "../components/Panels/PanelRight";
Expand Down Expand Up @@ -412,25 +412,6 @@ const fetchBatchSummary = async (batchId: string): Promise<any> => {
}
};


enum ProcessingStage {
NotStarted = 1,
Queued = 10,
Starting = 20,
Parsing = 40,
Processing = 60,
FinalChecks = 95,
Completed = 100
}

enum Agents {
Verifier = "Semantic Verifier agent",
Checker = "Syntax Checker agent",
Picker = "Picker agent",
Migrator = "Migrator agent",
Agents = "Agent"
}

const getPrintFileStatus = (status: string): string => {
switch (status) {
case "completed":
Expand Down Expand Up @@ -481,7 +462,7 @@ const ModernizationPage = () => {
const selectedFile = files.find((f) => f.id === selectedFileId);
if (!selectedFile || !selectedFile.translatedCode) {
setFileLoading(true);
const newFileUpdate = await fetchFileFromAPI(selectedFile?.fileId || "");
await fetchFileFromAPI(selectedFile?.fileId || "");
setFileLoading(false);
}

Expand Down
4 changes: 0 additions & 4 deletions src/frontend/src/pages/processPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { useSelector, useDispatch } from "react-redux";
import { useNavigate, useParams } from "react-router-dom";
import { RootState } from "../store/store";
import { togglePanel, closePanel } from "../slices/historyPanelSlice";
import {
Button,
Tooltip,
} from "@fluentui/react-components";
import { MessageBar, MessageBarType } from "@fluentui/react";
import Header from "../components/Header/Header";
import HeaderTools from "../components/Header/HeaderTools";
Expand Down
Loading