Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 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 .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
gptModelVersion="2024-08-06" \
gptDeploymentCapacity="30" \
aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \
createdBy="Pipeline" \
tags='{"CreatedBy":"Pipeline"}' \
--query "properties.outputs" -o json); then
echo "❌ Deployment failed. See logs above."
exit 1
Expand Down
3 changes: 2 additions & 1 deletion src/ContentProcessorAPI/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ dependencies = [
"pygments>=2.19.1",
"pymongo>=4.11.1",
"python-dotenv>=1.0.1",
"uvicorn[standard]>=0.34.0",
"uvicorn[standard]>=0.34.0",
"h11==0.16.0",
]

[dependency-groups]
Expand Down
5 changes: 2 additions & 3 deletions src/ContentProcessorAPI/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ filelock==3.17.0 \
--hash=sha256:533dc2f7ba78dc2f0f531fc6c4940addf7b70a481e269a5a3b93be94ffbe8338 \
--hash=sha256:ee4e77401ef576ebb38cd7f13b9b28893194acc20a8e68e18730ba9c0e54660e
# via virtualenv
h11==0.14.0 \
--hash=sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d \
--hash=sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761
h11==0.16.0 \
--hash=sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86
# via
# httpcore
# uvicorn
Expand Down
72 changes: 36 additions & 36 deletions src/ContentProcessorWeb/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/ContentProcessorWeb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"react-tiff": "^0.0.14",
"sass": "^1.89.2",
"sass-loader": "^16.0.5",
"typescript": "^5.8.3",
"typescript-eslint": "^8.35.1"
"typescript": "^4.9.5",
"typescript-eslint": "^8.43.0"
},
"compilerOptions": {
"typeRoots": [
Expand All @@ -79,9 +79,10 @@
"src/**/*.tsx",
"src/**/*.d.ts"
],
"resolutions": {
"resolutions": {
"postcss": "^8.5.1",
"nth-check": "^2.1.1",
"string_decoder": "^1.3.0"
"string_decoder": "^1.3.0",
"typescript": "^4.9.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const ProcessSteps = () => {
}), shallowEqual
);

const hasValidSelection = !!store.selectedItem && !!store.selectedItem.process_id;
const hasProcessStepsData = Array.isArray(store.processStepsData) && store.processStepsData.length > 0;

const renderProcessTimeInSeconds = (timeString: string) => {
if (!timeString) {
return timeString;
Expand Down Expand Up @@ -65,6 +68,14 @@ const ProcessSteps = () => {
};
}, []);

if (!hasValidSelection || !hasProcessStepsData) {
return (
<div style={{ padding: '20px', textAlign: 'center', color: '#666' }}>
No data available.
</div>
);
}

return (
<Accordion collapsible>
{!status.includes(store.selectedItem.status) && store.processStepsData?.map((step, index) => (
Expand Down
Loading
Loading