Skip to content
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
26e5724
feat: Concurrent executions with indexedDB
Microchesst May 1, 2025
e168a9a
yarn syntax
Microchesst May 1, 2025
6fc0304
test: everything except e2e
Microchesst May 15, 2025
117405f
yarn format
Microchesst May 15, 2025
a8a6614
e2e Test
Microchesst May 15, 2025
047f00d
test: e2e
Microchesst May 15, 2025
b91218f
feat: now using accordion and can load across reloads, still needs te…
Microchesst May 24, 2025
58f6d06
Feat: interface for 'database/digitaltTwins.ts'
Microchesst May 24, 2025
c80a929
fix: now only updating a dt's specific state
Microchesst May 24, 2025
9d3f7e3
fix: moving some files out of preview code
Microchesst May 24, 2025
4e522fe
test: unit int and e2e are now updated.
Microchesst May 25, 2025
1c0f14c
feat: refactoring to keep code structure, and to define a good code a…
Microchesst May 29, 2025
7ff06cf
Steady e2e tests
atomicgamedeveloper Jul 15, 2025
2c410b8
Merge branch 'conc-branch'
atomicgamedeveloper Sep 18, 2025
c7625b3
Fix (preview) unit/int import errors
atomicgamedeveloper Sep 18, 2025
5372c1e
Fix remaining tests
atomicgamedeveloper Sep 19, 2025
70a9d39
Address review comments
atomicgamedeveloper Sep 29, 2025
b438465
Verify Previous Changes Present
atomicgamedeveloper Oct 2, 2025
7c8b331
Mv files for PR #1314
atomicgamedeveloper Oct 4, 2025
3049e79
Deduplicate code in tests
atomicgamedeveloper Oct 8, 2025
518c532
Deduplicate code in tests
atomicgamedeveloper Oct 24, 2025
ed14698
Rm changes from servers folder
atomicgamedeveloper Oct 24, 2025
150c53e
Add .gitignore changes and format
atomicgamedeveloper Oct 24, 2025
3828bd4
Merge branch 'feature/distributed-demo' into main
atomicgamedeveloper Oct 24, 2025
5f003f6
Replace relative import paths
atomicgamedeveloper Oct 24, 2025
69da665
Rm rest of relative paths + rm external imports from model files
atomicgamedeveloper Oct 24, 2025
8319953
Address final comments
atomicgamedeveloper Oct 28, 2025
17fafa7
Merge branch 'main' of https://github.com/atomicgamedeveloper/DTaaS
atomicgamedeveloper Oct 28, 2025
12e34aa
Add tests for execution status handling and database error scenarios
atomicgamedeveloper Oct 28, 2025
147579f
Fix sonarcube problems
atomicgamedeveloper Nov 2, 2025
ffa85e5
Add additional coverage
atomicgamedeveloper Nov 5, 2025
001fdd5
Add SonarCube rules, update package.json to 0.10.0, add tests and mor…
atomicgamedeveloper Nov 6, 2025
b45382a
Rename database/digitalTwin to executionHistoryDB, cover executionHis…
atomicgamedeveloper Nov 6, 2025
15c870e
Merge branch 'feature/distributed-demo' into main
atomicgamedeveloper Nov 6, 2025
6c414fd
Rm duplicate interface
atomicgamedeveloper Nov 6, 2025
db24df9
Merge branch 'main' of https://github.com/atomicgamedeveloper/DTaaS
atomicgamedeveloper Nov 6, 2025
1aa7d38
Deduplicate further
atomicgamedeveloper Nov 7, 2025
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
4 changes: 4 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"Cesar Vela",
"Emre Temel",
"Enok Maj",
"Marcus Neble Jensen",
"Mathias Brændgaard",
"Omar Suleiman",
"Vanessa Scherma"
Expand Down Expand Up @@ -66,6 +67,7 @@
"@types/react-syntax-highlighter": "^15.5.13",
"@types/remarkable": "^2.0.8",
"@types/styled-components": "^5.1.32",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "^8.26.1",
"@typescript-eslint/parser": "^8.26.1",
"cross-env": "^7.0.3",
Expand Down Expand Up @@ -102,6 +104,7 @@
"serve": "^14.2.1",
"styled-components": "^6.1.1",
"typescript": "5.1.6",
"uuid": "11.1.0",
"zod": "3.24.1"
},
"devDependencies": {
Expand All @@ -121,6 +124,7 @@
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"eslint-config-react-app": "^7.0.1",
"fake-indexeddb": "6.0.1",
"globals": "15.11.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "29.7.0",
Expand Down
1 change: 1 addition & 0 deletions client/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default defineConfig({
// Use prepared auth state.
storageState: 'playwright/.auth/user.json',
},
timeout: 2 * 60 * 1000,
dependencies: ['setup'],
},
],
Expand Down
49 changes: 49 additions & 0 deletions client/src/components/asset/HistoryButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import * as React from 'react';
import { Dispatch, SetStateAction } from 'react';
import { Button, Badge } from '@mui/material';
import { useSelector } from 'react-redux';
import { selectExecutionHistoryByDTName } from 'store/selectors/executionHistory.selectors';

interface HistoryButtonProps {
setShowLog: Dispatch<React.SetStateAction<boolean>>;
historyButtonDisabled: boolean;
assetName: string;
}

export const handleToggleHistory = (
setShowLog: Dispatch<SetStateAction<boolean>>,
) => {
setShowLog((prev) => !prev);
};

function HistoryButton({
setShowLog,
historyButtonDisabled,
assetName,
}: HistoryButtonProps) {
const executions =
useSelector(selectExecutionHistoryByDTName(assetName)) || [];

const executionCount = executions.length;

return (
<Badge
badgeContent={executionCount > 0 ? executionCount : 0}
color="secondary"
overlap="circular"
invisible={executionCount === 0}
>
<Button
variant="contained"
size="small"
color="primary"
onClick={() => handleToggleHistory(setShowLog)}
disabled={historyButtonDisabled && executionCount === 0}
>
History
</Button>
</Badge>
);
}

export default HistoryButton;
Loading
Loading