testeranto 0.200.0 → 0.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -1
- package/bundle.js +3 -2
- package/design-editor/DesignEditor.tsx +40 -241
- package/dist/common/design-editor/DesignEditor.js +33 -198
- package/dist/common/src/App.js +158 -16
- package/dist/common/src/PM/PM_WithBuild.js +135 -0
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +79 -67
- package/dist/common/src/PM/PM_WithGit.js +517 -0
- package/dist/common/src/PM/PM_WithProcesses.js +519 -0
- package/dist/common/src/PM/PM_WithWebSocket.js +535 -0
- package/dist/common/src/PM/base.js +62 -0
- package/dist/common/src/PM/main.js +533 -1676
- package/dist/common/src/PM/metafileOutputs.js +78 -0
- package/dist/common/src/PM/node.js +0 -6
- package/dist/common/src/PM/pure.js +0 -8
- package/dist/common/src/PM/types.js +1 -0
- package/dist/common/src/PM/utils.js +210 -0
- package/dist/common/src/PM/web.js +0 -6
- package/dist/common/src/ReportServer.js +0 -10
- package/dist/common/src/ReportServerLib.js +0 -140
- package/dist/common/src/components/pure/AppFrame.js +68 -56
- package/dist/common/src/components/pure/ArtifactTree.js +80 -0
- package/dist/common/src/components/pure/BuildLogViewer.js +106 -0
- package/dist/common/src/components/pure/DebugEnv.js +30 -0
- package/dist/common/src/components/pure/FileTree.js +34 -0
- package/dist/common/src/components/pure/FileTreeItem.js +29 -0
- package/dist/common/src/components/pure/GitHubLoginButton.js +18 -0
- package/dist/common/src/components/pure/GitIntegrationView.js +342 -0
- package/dist/common/src/components/pure/ProcessManager.js +1 -0
- package/dist/common/src/components/pure/ProcessManagerView.js +73 -74
- package/dist/common/src/components/pure/ProjectPageView.js +4 -117
- package/dist/common/src/components/pure/Settings.js +121 -0
- package/dist/common/src/components/pure/Settings.test.js +34 -0
- package/dist/common/src/components/pure/SignIn.js +22 -0
- package/dist/common/src/components/pure/SingleProcessView.js +166 -213
- package/dist/common/src/components/pure/TestPageView.js +113 -368
- package/dist/common/src/components/pure/TestPageView_utils.js +117 -0
- package/dist/common/src/components/pure/TestTable.js +33 -0
- package/dist/common/src/components/pure/ToastNotification.js +14 -0
- package/dist/common/src/components/pure/UserProfile.js +27 -0
- package/dist/common/src/components/stateful/AuthCallbackPage.js +51 -0
- package/dist/common/src/components/stateful/FeaturesReporter.js +2 -1
- package/dist/common/src/components/stateful/FileTree.js +58 -39
- package/dist/common/src/components/stateful/GitIntegrationPage.js +12 -0
- package/dist/common/src/components/stateful/ProcessManagerPage.js +13 -15
- package/dist/common/src/components/stateful/ProjectPage.js +6 -5
- package/dist/common/src/components/stateful/ProjectsPage.js +17 -19
- package/dist/common/src/components/stateful/SingleProcessPage.js +16 -26
- package/dist/common/src/components/stateful/TestPage.js +7 -5
- package/dist/common/src/hooks/useGitMode.js +21 -0
- package/dist/common/src/lib/BaseSuite.test/mock.js +15 -8
- package/dist/common/src/lib/BaseSuite.test/test.js +56 -80
- package/dist/common/src/lib/Tiposkripto.js +24 -0
- package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +154 -10
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +6 -12
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +63 -23
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +14 -6
- package/dist/common/src/lib/pmProxy.test/specification.js +167 -52
- package/dist/common/src/services/FileService.js +505 -0
- package/dist/common/src/services/GitHubAuthService.js +184 -0
- package/dist/common/src/testeranto.js +38 -97
- package/dist/common/src/utils/api.js +12 -8
- package/dist/common/src/utils/gitTest.js +27 -0
- package/dist/common/src/utils.js +23 -13
- package/dist/common/testeranto.config.js +21 -17
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +33 -199
- package/dist/module/src/App.js +121 -15
- package/dist/module/src/PM/PM_WithBuild.js +128 -0
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +79 -67
- package/dist/module/src/PM/PM_WithGit.js +477 -0
- package/dist/module/src/PM/PM_WithProcesses.js +479 -0
- package/dist/module/src/PM/PM_WithWebSocket.js +528 -0
- package/dist/module/src/PM/base.js +62 -0
- package/dist/module/src/PM/main.js +533 -1676
- package/dist/module/src/PM/metafileOutputs.js +78 -0
- package/dist/module/src/PM/node.js +0 -6
- package/dist/module/src/PM/pure.js +0 -8
- package/dist/module/src/PM/types.js +1 -1
- package/dist/module/src/PM/utils.js +196 -0
- package/dist/module/src/PM/web.js +0 -6
- package/dist/module/src/ReportServer.js +1 -9
- package/dist/module/src/ReportServerLib.js +1 -134
- package/dist/module/src/components/pure/AppFrame.js +66 -24
- package/dist/module/src/components/pure/ArtifactTree.js +80 -0
- package/dist/module/src/components/pure/BuildLogViewer.js +99 -0
- package/dist/module/src/components/pure/DebugEnv.js +23 -0
- package/dist/module/src/components/pure/FileTree.js +27 -0
- package/dist/module/src/components/pure/FileTreeItem.js +22 -0
- package/dist/module/src/components/pure/GitHubLoginButton.js +11 -0
- package/dist/module/src/components/pure/GitIntegrationView.js +305 -0
- package/dist/module/src/components/pure/ProcessManager.js +1 -0
- package/dist/module/src/components/pure/ProcessManagerView.js +74 -75
- package/dist/module/src/components/pure/ProjectPageView.js +5 -118
- package/dist/module/src/components/pure/Settings.js +84 -0
- package/dist/module/src/components/pure/Settings.test.js +29 -0
- package/dist/module/src/components/pure/SignIn.js +15 -0
- package/dist/module/src/components/pure/SingleProcessView.js +130 -214
- package/dist/module/src/components/pure/TestPageView.js +97 -352
- package/dist/module/src/components/pure/TestPageView_utils.js +109 -0
- package/dist/module/src/components/pure/TestTable.js +26 -0
- package/dist/module/src/components/pure/ToastNotification.js +7 -0
- package/dist/module/src/components/pure/UserProfile.js +20 -0
- package/dist/module/src/components/stateful/AuthCallbackPage.js +14 -0
- package/dist/module/src/components/stateful/FeaturesReporter.js +2 -1
- package/dist/module/src/components/stateful/FileTree.js +59 -33
- package/dist/module/src/components/stateful/GitIntegrationPage.js +5 -0
- package/dist/module/src/components/stateful/ProcessManagerPage.js +13 -15
- package/dist/module/src/components/stateful/ProjectPage.js +6 -5
- package/dist/module/src/components/stateful/ProjectsPage.js +16 -18
- package/dist/module/src/components/stateful/SingleProcessPage.js +16 -26
- package/dist/module/src/components/stateful/TestPage.js +8 -6
- package/dist/module/src/hooks/useGitMode.js +17 -0
- package/dist/module/src/lib/BaseSuite.test/mock.js +15 -8
- package/dist/module/src/lib/BaseSuite.test/test.js +56 -80
- package/dist/module/src/lib/Tiposkripto.js +24 -0
- package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +154 -10
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +6 -12
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +63 -23
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +14 -6
- package/dist/module/src/lib/pmProxy.test/specification.js +167 -52
- package/dist/module/src/services/FileService.js +468 -0
- package/dist/module/src/services/GitHubAuthService.js +180 -0
- package/dist/module/src/testeranto.js +38 -97
- package/dist/module/src/utils/api.js +10 -7
- package/dist/module/src/utils/gitTest.js +23 -0
- package/dist/module/src/utils.js +21 -12
- package/dist/module/testeranto.config.js +21 -17
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +94 -121
- package/dist/prebuild/App.js +44601 -11225
- package/dist/prebuild/testeranto.mjs +4106 -0
- package/dist/types/design-editor/DesignEditor.d.ts +1 -18
- package/dist/types/src/App.d.ts +18 -0
- package/dist/types/src/PM/PM_WithBuild.d.ts +13 -0
- package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +2 -4
- package/dist/types/src/PM/PM_WithGit.d.ts +27 -0
- package/dist/types/src/PM/PM_WithProcesses.d.ts +29 -0
- package/dist/types/src/PM/PM_WithWebSocket.d.ts +108 -0
- package/dist/types/src/PM/base.d.ts +1 -1
- package/dist/types/src/PM/index.d.ts +0 -2
- package/dist/types/src/PM/main.d.ts +6 -77
- package/dist/types/src/PM/metafileOutputs.d.ts +0 -0
- package/dist/types/src/PM/node.d.ts +0 -2
- package/dist/types/src/PM/pure.d.ts +0 -2
- package/dist/types/src/PM/types.d.ts +118 -0
- package/dist/types/src/PM/utils.d.ts +35 -0
- package/dist/types/src/PM/web.d.ts +0 -2
- package/dist/types/src/Pure.d.ts +6 -1
- package/dist/types/src/ReportServer.d.ts +0 -1
- package/dist/types/src/ReportServerLib.d.ts +0 -1
- package/dist/types/src/Types.d.ts +1 -0
- package/dist/types/src/components/pure/ArtifactTree.d.ts +0 -0
- package/dist/types/src/components/pure/BuildLogViewer.d.ts +7 -0
- package/dist/types/src/components/pure/DebugEnv.d.ts +2 -0
- package/dist/types/src/components/pure/FileTree.d.ts +6 -0
- package/dist/types/src/components/pure/FileTreeItem.d.ts +8 -0
- package/dist/types/src/components/pure/GitHubLoginButton.d.ts +8 -0
- package/dist/types/src/components/pure/GitIntegrationView.d.ts +1 -0
- package/dist/types/src/components/pure/Settings.d.ts +1 -0
- package/dist/types/src/components/pure/Settings.test.d.ts +1 -0
- package/dist/types/src/components/pure/SignIn.d.ts +1 -0
- package/dist/types/src/components/pure/SingleProcessView.d.ts +10 -0
- package/dist/types/src/components/pure/TestPageView.d.ts +2 -1
- package/dist/types/src/components/pure/TestPageView_utils.d.ts +23 -0
- package/dist/types/src/components/pure/TestTable.d.ts +16 -0
- package/dist/types/src/components/pure/ToastNotification.d.ts +6 -0
- package/dist/types/src/components/pure/UserProfile.d.ts +2 -0
- package/dist/types/src/components/stateful/AuthCallbackPage.d.ts +2 -0
- package/dist/types/src/components/stateful/FileTree.d.ts +0 -8
- package/dist/types/src/components/stateful/GitIntegrationPage.d.ts +1 -0
- package/dist/types/src/hooks/useGitMode.d.ts +7 -0
- package/dist/types/src/lib/BaseSuite.test/mock.d.ts +2 -2
- package/dist/types/src/lib/BaseSuite.test/test.d.ts +4 -3
- package/dist/types/src/lib/Tiposkripto.d.ts +2 -0
- package/dist/types/src/lib/Tiposkripto.test/MockTiposkripto.d.ts +3 -0
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.types.d.ts +5 -0
- package/dist/types/src/lib/index.d.ts +6 -0
- package/dist/types/src/services/FileService.d.ts +34 -0
- package/dist/types/src/services/GitHubAuthService.d.ts +32 -0
- package/dist/types/src/utils/api.d.ts +1 -0
- package/dist/types/src/utils/gitTest.d.ts +11 -0
- package/dist/types/src/utils.d.ts +3 -3
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/README.md +187 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_given.go +163 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_suite.go +85 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_then.go +21 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_when.go +21 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +554 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/test_adapter.go +33 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/types.go +72 -0
- package/example/vendor/modules.txt +5 -0
- package/git-integration-plan.md +395 -0
- package/package.json +26 -14
- package/src/App.tsx +169 -18
- package/src/PM/PM_WithBuild.ts +171 -0
- package/src/PM/PM_WithEslintAndTsc.ts +109 -86
- package/src/PM/PM_WithGit.ts +585 -0
- package/src/PM/PM_WithProcesses.ts +639 -0
- package/src/PM/PM_WithWebSocket.ts +631 -0
- package/src/PM/base.ts +63 -1
- package/src/PM/index.ts +8 -5
- package/src/PM/main.ts +672 -2050
- package/src/PM/metafileOutputs.ts +90 -0
- package/src/PM/node.ts +18 -18
- package/src/PM/pure.ts +5 -13
- package/src/PM/types.ts +145 -0
- package/src/PM/utils.ts +256 -0
- package/src/PM/web.ts +8 -8
- package/src/README.md +122 -0
- package/src/ReportServer.ts +0 -12
- package/src/ReportServerLib.ts +0 -147
- package/src/Types.ts +1 -0
- package/src/app.scss +14 -164
- package/src/components/pure/AppFrame.tsx +237 -71
- package/src/components/pure/ArtifactTree.tsx +82 -0
- package/src/components/pure/BuildLogViewer.tsx +168 -0
- package/src/components/pure/DebugEnv.tsx +30 -0
- package/src/components/pure/FileTree.tsx +58 -0
- package/src/components/pure/FileTreeItem.tsx +49 -0
- package/src/components/pure/GitHubLoginButton.tsx +31 -0
- package/src/components/pure/GitIntegrationView.tsx +443 -0
- package/src/components/pure/ProcessManager.tsx +6 -5
- package/src/components/pure/ProcessManagerView.tsx +162 -166
- package/src/components/pure/ProjectPageView.tsx +6 -224
- package/src/components/pure/Settings.test.tsx +34 -0
- package/src/components/pure/Settings.tsx +163 -0
- package/src/components/pure/SignIn.tsx +33 -0
- package/src/components/pure/SingleProcessView.tsx +231 -235
- package/src/components/pure/TestPageView.test/specification.ts +1 -0
- package/src/components/pure/TestPageView.tsx +317 -826
- package/src/components/pure/TestPageView_utils.tsx +285 -0
- package/src/components/pure/TestTable.tsx +88 -0
- package/src/components/pure/ToastNotification.tsx +19 -0
- package/src/components/pure/UserProfile.tsx +44 -0
- package/src/components/stateful/AuthCallbackPage.tsx +21 -0
- package/src/components/stateful/FeaturesReporter.tsx +3 -1
- package/src/components/stateful/FileTree.tsx +58 -58
- package/src/components/stateful/GitIntegrationPage.tsx +8 -0
- package/src/components/stateful/ProcessManagerPage.tsx +13 -17
- package/src/components/stateful/ProjectPage.tsx +6 -5
- package/src/components/stateful/ProjectsPage.tsx +17 -19
- package/src/components/stateful/SVGEditor/CircleForm.tsx +68 -0
- package/src/components/stateful/SVGEditor/GroupForm.tsx +56 -0
- package/src/components/stateful/SVGEditor/RectForm.tsx +74 -0
- package/src/components/stateful/SVGEditor/SVGAttributeField.tsx +29 -0
- package/src/components/stateful/SVGEditor/SVGAttributesEditor.tsx +73 -0
- package/src/components/stateful/SVGEditor/SVGEditorControls.tsx +45 -0
- package/src/components/stateful/SVGEditor/SVGElementForm.tsx +45 -0
- package/src/components/stateful/SVGEditor/SVGPreview.tsx +225 -0
- package/src/components/stateful/SVGEditor/SVGTextEditor.tsx +166 -0
- package/src/components/stateful/SVGEditor/SVGTree.tsx +159 -0
- package/src/components/stateful/SVGEditor/SVGTypes.ts +36 -0
- package/src/components/stateful/SVGEditor/svg.xsd.xml +3038 -0
- package/src/components/stateful/SVGEditorPage.tsx +503 -0
- package/src/components/stateful/SingleProcessPage.tsx +18 -31
- package/src/components/stateful/TestPage.tsx +25 -22
- package/src/golingvu/golingvu.go +38 -2
- package/src/hooks/useGitMode.ts +20 -0
- package/src/lib/BaseSuite.test/mock.ts +16 -10
- package/src/lib/BaseSuite.test/test.ts +144 -103
- package/src/lib/Tiposkripto.test/MockTiposkripto.ts +178 -14
- package/src/lib/Tiposkripto.test/Tiposkripto.adapter.ts +9 -14
- package/src/lib/Tiposkripto.test/Tiposkripto.implementation.ts +78 -38
- package/src/lib/Tiposkripto.test/Tiposkripto.specification.ts +51 -9
- package/src/lib/Tiposkripto.test/Tiposkripto.types.ts +5 -0
- package/src/lib/Tiposkripto.ts +27 -0
- package/src/lib/index.ts +7 -0
- package/src/lib/pmProxy.test/specification.ts +168 -166
- package/src/pitono/PM/__pycache__/python.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/Pitono.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_given.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_suite.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_then.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_when.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/core_generator.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/simple_adapter.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/types.cpython-313.pyc +0 -0
- package/src/services/FileService.ts +542 -0
- package/src/services/GitHubAuthService.ts +240 -0
- package/src/testeranto.ts +62 -140
- package/src/utils/api.ts +15 -13
- package/src/utils/gitTest.ts +29 -0
- package/src/utils.ts +21 -12
- package/testeranto/App.css +94 -121
- package/testeranto/App.js +44601 -11225
- package/testeranto/bundles/golang/core/Calculator.golingvu.go +53 -0
- package/testeranto/bundles/golang/core/Calculator.golingvu.golingvu.go +53 -0
- package/testeranto/bundles/node/core/chunk-RIM6RECA.mjs +1170 -0
- package/testeranto/bundles/node/core/chunk-VXVF7WFO.mjs +4321 -0
- package/testeranto/bundles/node/core/example/Calculator.test.mjs +503 -0
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +94 -1231
- package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +574 -0
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +482 -0
- package/testeranto/bundles/pure/core/chunk-XYOCRDEQ.mjs +1080 -0
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +410 -0
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +93 -1146
- package/testeranto/bundles/python/core/Calculator.pitono.test.py +24 -0
- package/testeranto/bundles/python/core/test_example.py +24 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
- package/testeranto/bundles/web/core/chunk-DFRN4SYZ.mjs +2297 -0
- package/testeranto/bundles/web/core/chunk-JMDLMADH.mjs +27996 -0
- package/testeranto/bundles/web/core/chunk-LQMU5NCG.mjs +3082 -0
- package/testeranto/bundles/web/core/chunk-Q5TONB2Z.mjs +6874 -0
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +164 -0
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +11697 -0
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +336 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +11697 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +517 -0
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +107 -1134
- package/testeranto/metafiles/golang/core.json +3 -3
- package/testeranto/metafiles/node/core.json +474 -31
- package/testeranto/metafiles/pure/core.json +144 -28
- package/testeranto/metafiles/python/core.json +11 -0
- package/testeranto/metafiles/web/core.json +15829 -45
- package/testeranto/reports/core/config.json +40 -0
- package/testeranto/reports/core/src/Pure.test/pure/exit.log +0 -0
- package/testeranto/reports/core/src/Pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +14 -0
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +73 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +91 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +2 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +68 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +30 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +2 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +88 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -6
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -11
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +1 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +1 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +35 -38
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -10
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +40 -38
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +1 -1
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +55 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +191 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +71 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +15 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +20 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +4 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +49 -0
- package/testeranto/reports/core/summary.json +34 -6
- package/testeranto.config.ts +26 -20
- package/tsc.log +141 -91
- package/tsconfig.json +6 -2
- package/dist/prebuild/ReportServer.mjs +0 -227
- package/dist/prebuild/mothership/index.mjs +0 -22
- package/dist/types/design-editor/server.d.ts +0 -1
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +0 -15
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -25
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -56
- /package/testeranto/reports/core/src/{lib/BaseSuite.test/web.test/web → Pure.test/pure}/message.txt +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
// Determine language from file extension
|
|
3
|
+
export const getLanguage = (path) => {
|
|
4
|
+
var _a;
|
|
5
|
+
const ext = (_a = path.split(".").pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
6
|
+
switch (ext) {
|
|
7
|
+
case "ts":
|
|
8
|
+
return "typescript";
|
|
9
|
+
case "tsx":
|
|
10
|
+
return "typescript";
|
|
11
|
+
case "js":
|
|
12
|
+
return "javascript";
|
|
13
|
+
case "json":
|
|
14
|
+
return "json";
|
|
15
|
+
case "md":
|
|
16
|
+
return "markdown";
|
|
17
|
+
default:
|
|
18
|
+
return "plaintext";
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export const renderTestResults = (testData, buildErrors, projectName, testName, runtime) => {
|
|
22
|
+
return (React.createElement("div", { className: "test-results" },
|
|
23
|
+
testData.givens.map((given, i) => (React.createElement("div", { key: i, className: "mb-4 card" },
|
|
24
|
+
React.createElement("div", { className: "card-header bg-primary text-white" },
|
|
25
|
+
React.createElement("div", { className: "d-flex justify-content-between align-items-center" },
|
|
26
|
+
React.createElement("div", null,
|
|
27
|
+
React.createElement("h4", null,
|
|
28
|
+
"Given: ",
|
|
29
|
+
given.name),
|
|
30
|
+
given.features && given.features.length > 0 && (React.createElement("div", { className: "mt-1" },
|
|
31
|
+
React.createElement("small", null, "Features:"),
|
|
32
|
+
React.createElement("ul", { className: "list-unstyled" }, given.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith("http") ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer", className: "text-white" }, new URL(feature).hostname)) : (React.createElement("span", { className: "text-white" }, feature))))))))),
|
|
33
|
+
given.artifacts && given.artifacts.length > 0 && (React.createElement("div", { className: "dropdown" },
|
|
34
|
+
React.createElement("button", { className: "btn btn-sm btn-light dropdown-toggle", type: "button", "data-bs-toggle": "dropdown" },
|
|
35
|
+
"Artifacts (",
|
|
36
|
+
given.artifacts.length,
|
|
37
|
+
")"),
|
|
38
|
+
React.createElement("ul", { className: "dropdown-menu dropdown-menu-end" }, given.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
39
|
+
React.createElement("a", { className: "dropdown-item", href: `reports/${projectName}/${testName
|
|
40
|
+
.split(".")
|
|
41
|
+
.slice(0, -1)
|
|
42
|
+
.join(".")}/${runtime}/${artifact}`, target: "_blank", rel: "noopener noreferrer" }, artifact.split("/").pop()))))))))),
|
|
43
|
+
React.createElement("div", { className: "card-body" },
|
|
44
|
+
given.whens.map((when, j) => (React.createElement("div", { key: `w-${j}`, className: `p-3 mb-2 ${when.error ? "bg-danger text-white" : "bg-success text-white"}` },
|
|
45
|
+
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
46
|
+
React.createElement("div", null,
|
|
47
|
+
React.createElement("div", null,
|
|
48
|
+
React.createElement("strong", null, "When:"),
|
|
49
|
+
" ",
|
|
50
|
+
when.name,
|
|
51
|
+
when.features && when.features.length > 0 && (React.createElement("div", { className: "mt-2" },
|
|
52
|
+
React.createElement("small", null, "Features:"),
|
|
53
|
+
React.createElement("ul", { className: "list-unstyled" }, when.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith("http") ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer" }, new URL(feature).hostname)) : (feature))))))),
|
|
54
|
+
when.error && React.createElement("pre", { className: "mt-2" }, when.error))),
|
|
55
|
+
when.artifacts && when.artifacts.length > 0 && (React.createElement("div", { className: "ms-3" },
|
|
56
|
+
React.createElement("strong", null, "Artifacts:"),
|
|
57
|
+
React.createElement("ul", { className: "list-unstyled" }, when.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
58
|
+
React.createElement("a", { href: `reports/${projectName}/${testName
|
|
59
|
+
.split(".")
|
|
60
|
+
.slice(0, -1)
|
|
61
|
+
.join(".")}/${runtime}/${artifact}`, target: "_blank", className: "text-white", rel: "noopener noreferrer" }, artifact.split("/").pop()))))))))))),
|
|
62
|
+
given.thens.map((then, k) => (React.createElement("div", { key: `t-${k}`, className: `p-3 mb-2 ${then.error ? "bg-danger text-white" : "bg-success text-white"}` },
|
|
63
|
+
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
64
|
+
React.createElement("div", null,
|
|
65
|
+
React.createElement("div", null,
|
|
66
|
+
React.createElement("strong", null, "Then:"),
|
|
67
|
+
" ",
|
|
68
|
+
then.name,
|
|
69
|
+
then.features && then.features.length > 0 && (React.createElement("div", { className: "mt-2" },
|
|
70
|
+
React.createElement("small", null, "Features:"),
|
|
71
|
+
React.createElement("ul", { className: "list-unstyled" }, then.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith("http") ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer" }, new URL(feature).hostname)) : (feature))))))),
|
|
72
|
+
then.error && React.createElement("pre", { className: "mt-2" }, then.error))),
|
|
73
|
+
then.artifacts && then.artifacts.length > 0 && (React.createElement("div", { className: "ms-3" },
|
|
74
|
+
React.createElement("strong", null, "Artifacts:"),
|
|
75
|
+
React.createElement("ul", { className: "list-unstyled" }, then.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
76
|
+
React.createElement("a", { href: `reports/${projectName}/${testName
|
|
77
|
+
.split(".")
|
|
78
|
+
.slice(0, -1)
|
|
79
|
+
.join(".")}/${runtime}/${artifact}`, target: "_blank", className: "text-white", rel: "noopener noreferrer" }, artifact.split("/").pop()))))))))))))))),
|
|
80
|
+
(buildErrors.errors.length > 0 || buildErrors.warnings.length > 0) && (React.createElement("div", { className: "mb-4 card border-danger" },
|
|
81
|
+
React.createElement("div", { className: "card-header bg-danger text-white" },
|
|
82
|
+
React.createElement("h4", null, "Build Errors and Warnings")),
|
|
83
|
+
React.createElement("div", { className: "card-body" },
|
|
84
|
+
buildErrors.errors.length > 0 && (React.createElement(React.Fragment, null,
|
|
85
|
+
React.createElement("h5", null, "Errors"),
|
|
86
|
+
React.createElement("ul", null, buildErrors.errors.map((error, idx) => (React.createElement("li", { key: `build-error-${idx}` },
|
|
87
|
+
React.createElement("strong", null, error.text),
|
|
88
|
+
error.location && (React.createElement("div", null,
|
|
89
|
+
"File: ",
|
|
90
|
+
error.location.file,
|
|
91
|
+
" Line:",
|
|
92
|
+
" ",
|
|
93
|
+
error.location.line,
|
|
94
|
+
" Column: ",
|
|
95
|
+
error.location.column)))))))),
|
|
96
|
+
buildErrors.warnings.length > 0 && (React.createElement(React.Fragment, null,
|
|
97
|
+
React.createElement("h5", null, "Warnings"),
|
|
98
|
+
React.createElement("ul", null, buildErrors.warnings.map((warning, idx) => (React.createElement("li", { key: `build-warning-${idx}` },
|
|
99
|
+
React.createElement("strong", null, warning.text),
|
|
100
|
+
warning.location && (React.createElement("div", null,
|
|
101
|
+
"File: ",
|
|
102
|
+
warning.location.file,
|
|
103
|
+
" Line:",
|
|
104
|
+
" ",
|
|
105
|
+
warning.location.line,
|
|
106
|
+
" Column:",
|
|
107
|
+
" ",
|
|
108
|
+
warning.location.column)))))))))))));
|
|
109
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Table, Badge } from "react-bootstrap";
|
|
3
|
+
import { TestStatusBadge } from "../TestStatusBadge";
|
|
4
|
+
export const TestTable = ({ testStatuses, projectName, }) => {
|
|
5
|
+
return (React.createElement(Table, { striped: true, bordered: true, hover: true },
|
|
6
|
+
React.createElement("thead", null,
|
|
7
|
+
React.createElement("tr", null,
|
|
8
|
+
React.createElement("th", null, "Test"),
|
|
9
|
+
React.createElement("th", null, "Runtime"),
|
|
10
|
+
React.createElement("th", null, "Status"),
|
|
11
|
+
React.createElement("th", null, "Total Tests"),
|
|
12
|
+
React.createElement("th", null, "Type Errors"),
|
|
13
|
+
React.createElement("th", null, "Lint Errors"))),
|
|
14
|
+
React.createElement("tbody", null, testStatuses.map((test) => (React.createElement("tr", { key: test.testName, "data-testid": `test-row-${test.testName}` },
|
|
15
|
+
React.createElement("td", null,
|
|
16
|
+
React.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(test.testName)}/${test.runTime}` }, test.testName)),
|
|
17
|
+
React.createElement("td", null,
|
|
18
|
+
React.createElement(Badge, { bg: "secondary", className: "ms-2" }, test.runTime)),
|
|
19
|
+
React.createElement("td", null,
|
|
20
|
+
React.createElement(TestStatusBadge, { testName: test.testName, testsExist: test.testsExist, runTimeErrors: test.runTimeErrors, typeErrors: test.typeErrors, staticErrors: test.staticErrors })),
|
|
21
|
+
React.createElement("td", null, test.runTimeTests >= 0 ? test.runTimeTests : "N/A"),
|
|
22
|
+
React.createElement("td", null,
|
|
23
|
+
React.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(test.testName)}/${test.runTime}#types` }, test.typeErrors > 0 ? `❌ ${test.typeErrors}` : "✅")),
|
|
24
|
+
React.createElement("td", null,
|
|
25
|
+
React.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(test.testName)}/${test.runTime}#lint` }, test.staticErrors > 0 ? `❌ ${test.staticErrors}` : "✅"))))))));
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ToastContainer, Toast } from "react-bootstrap";
|
|
3
|
+
export const ToastNotification = ({ showToast, setShowToast, toastVariant, toastMessage }) => (React.createElement(ToastContainer, { position: "top-end", className: "p-3" },
|
|
4
|
+
React.createElement(Toast, { show: showToast, onClose: () => setShowToast(false), delay: 3000, autohide: true, bg: toastVariant },
|
|
5
|
+
React.createElement(Toast.Header, null,
|
|
6
|
+
React.createElement("strong", { className: "me-auto" }, "Command Status")),
|
|
7
|
+
React.createElement(Toast.Body, { className: "text-white" }, toastMessage))));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown, Image } from 'react-bootstrap';
|
|
3
|
+
import { githubAuthService } from '../../services/GitHubAuthService';
|
|
4
|
+
export const UserProfile = () => {
|
|
5
|
+
const user = githubAuthService.userInfo;
|
|
6
|
+
if (!githubAuthService.isAuthenticated || !user) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
const handleLogout = () => {
|
|
10
|
+
githubAuthService.logout();
|
|
11
|
+
};
|
|
12
|
+
return (React.createElement(Dropdown, { align: "end" },
|
|
13
|
+
React.createElement(Dropdown.Toggle, { variant: "outline-light", id: "user-profile-dropdown", className: "d-flex align-items-center" },
|
|
14
|
+
React.createElement(Image, { src: user.avatar_url, roundedCircle: true, width: "32", height: "32", className: "me-2" }),
|
|
15
|
+
user.login),
|
|
16
|
+
React.createElement(Dropdown.Menu, null,
|
|
17
|
+
React.createElement(Dropdown.Item, { href: `https://github.com/${user.login}`, target: "_blank" }, "View on GitHub"),
|
|
18
|
+
React.createElement(Dropdown.Divider, null),
|
|
19
|
+
React.createElement(Dropdown.Item, { onClick: handleLogout }, "Sign out"))));
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import { Spinner, Container } from 'react-bootstrap';
|
|
3
|
+
export const AuthCallbackPage = () => {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
// This page is only used in the popup window
|
|
6
|
+
// The actual authentication handling is done via the message listener in App.tsx
|
|
7
|
+
// This component just shows a loading spinner and will be closed automatically
|
|
8
|
+
}, []);
|
|
9
|
+
return (React.createElement(Container, { className: "d-flex justify-content-center align-items-center", style: { minHeight: '50vh' } },
|
|
10
|
+
React.createElement("div", { className: "text-center" },
|
|
11
|
+
React.createElement(Spinner, { animation: "border", role: "status", className: "mb-3" },
|
|
12
|
+
React.createElement("span", { className: "visually-hidden" }, "Authenticating...")),
|
|
13
|
+
React.createElement("h4", null, "Completing GitHub authentication..."))));
|
|
14
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import React, { useEffect, useState } from 'react';
|
|
2
3
|
import { FeaturesReporterView } from '../pure/FeaturesReporterView';
|
|
3
4
|
import { buildTree } from '../../types/features';
|
|
@@ -6,7 +7,7 @@ export const FeaturesReporter = () => {
|
|
|
6
7
|
useEffect(() => {
|
|
7
8
|
const fetchProjects = async () => {
|
|
8
9
|
try {
|
|
9
|
-
const response = await fetch('
|
|
10
|
+
const response = await fetch('projects.json');
|
|
10
11
|
if (!response.ok)
|
|
11
12
|
throw new Error('Failed to fetch projects');
|
|
12
13
|
const projectNames = await response.json();
|
|
@@ -1,33 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// import React from 'react';
|
|
3
|
+
// import { FileType } from './TextEditorPage';
|
|
4
|
+
// type FileTreeProps = {
|
|
5
|
+
// files: FileType[];
|
|
6
|
+
// onSelect: (path: string) => void;
|
|
7
|
+
// activeFile: string | null;
|
|
8
|
+
// };
|
|
9
|
+
// export const FileTree = ({ files, onSelect, activeFile }: FileTreeProps) => {
|
|
10
|
+
// // Group files by directory
|
|
11
|
+
// const fileGroups = files.reduce((acc, file) => {
|
|
12
|
+
// const dir = file.path.split('/').slice(0, -1).join('/');
|
|
13
|
+
// if (!acc[dir]) {
|
|
14
|
+
// acc[dir] = [];
|
|
15
|
+
// }
|
|
16
|
+
// acc[dir].push(file);
|
|
17
|
+
// return acc;
|
|
18
|
+
// }, {} as Record<string, FileType[]>);
|
|
19
|
+
// const fileTreeStyle = {
|
|
20
|
+
// padding: '8px',
|
|
21
|
+
// fontFamily: 'monospace'
|
|
22
|
+
// };
|
|
23
|
+
// const directoryStyle = {
|
|
24
|
+
// marginBottom: '8px'
|
|
25
|
+
// };
|
|
26
|
+
// const directoryNameStyle = {
|
|
27
|
+
// fontWeight: 'bold',
|
|
28
|
+
// padding: '4px 0',
|
|
29
|
+
// color: '#555'
|
|
30
|
+
// };
|
|
31
|
+
// const fileStyle = {
|
|
32
|
+
// padding: '4px 8px',
|
|
33
|
+
// cursor: 'pointer',
|
|
34
|
+
// borderRadius: '4px'
|
|
35
|
+
// };
|
|
36
|
+
// const activeFileStyle = {
|
|
37
|
+
// ...fileStyle,
|
|
38
|
+
// backgroundColor: '#e0e0e0',
|
|
39
|
+
// fontWeight: 'bold'
|
|
40
|
+
// };
|
|
41
|
+
// return (
|
|
42
|
+
// <div style={fileTreeStyle}>
|
|
43
|
+
// {Object.entries(fileGroups).map(([dir, dirFiles]) => (
|
|
44
|
+
// <div key={dir} style={directoryStyle}>
|
|
45
|
+
// <div style={directoryNameStyle}>{dir || '/'}</div>
|
|
46
|
+
// {dirFiles.map(file => (
|
|
47
|
+
// <div
|
|
48
|
+
// key={file.path}
|
|
49
|
+
// style={activeFile === file.path ? activeFileStyle : fileStyle}
|
|
50
|
+
// onClick={() => onSelect(file.path)}
|
|
51
|
+
// >
|
|
52
|
+
// {file.path.split('/').pop()}
|
|
53
|
+
// </div>
|
|
54
|
+
// ))}
|
|
55
|
+
// </div>
|
|
56
|
+
// ))}
|
|
57
|
+
// </div>
|
|
58
|
+
// );
|
|
59
|
+
// };
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback } from 'react';
|
|
2
2
|
import { useNavigate } from 'react-router-dom';
|
|
3
3
|
import { ProcessManagerView } from '../pure/ProcessManagerView';
|
|
4
|
+
import { useWebSocket } from '../../App';
|
|
4
5
|
export const ProcessManagerPage = () => {
|
|
5
6
|
const [processes, setProcesses] = useState([]);
|
|
6
|
-
const
|
|
7
|
+
const { ws } = useWebSocket();
|
|
7
8
|
const [loading, setLoading] = useState(false);
|
|
8
9
|
const navigate = useNavigate();
|
|
9
|
-
//
|
|
10
|
+
// Handle WebSocket messages
|
|
10
11
|
useEffect(() => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const websocket = new WebSocket(wsUrl);
|
|
14
|
-
setWs(websocket);
|
|
15
|
-
// Request current processes when connected
|
|
16
|
-
websocket.onopen = () => {
|
|
17
|
-
setLoading(true);
|
|
18
|
-
websocket.send(JSON.stringify({ type: 'getRunningProcesses' }));
|
|
19
|
-
};
|
|
12
|
+
if (!ws)
|
|
13
|
+
return;
|
|
20
14
|
const handleMessage = (event) => {
|
|
21
15
|
try {
|
|
22
16
|
const data = JSON.parse(event.data);
|
|
@@ -46,12 +40,16 @@ export const ProcessManagerPage = () => {
|
|
|
46
40
|
setLoading(false);
|
|
47
41
|
}
|
|
48
42
|
};
|
|
49
|
-
|
|
43
|
+
ws.addEventListener('message', handleMessage);
|
|
44
|
+
// Request current processes when connected
|
|
45
|
+
if (ws.readyState === WebSocket.OPEN) {
|
|
46
|
+
setLoading(true);
|
|
47
|
+
ws.send(JSON.stringify({ type: 'getRunningProcesses' }));
|
|
48
|
+
}
|
|
50
49
|
return () => {
|
|
51
|
-
|
|
52
|
-
websocket.close();
|
|
50
|
+
ws.removeEventListener('message', handleMessage);
|
|
53
51
|
};
|
|
54
|
-
}, []);
|
|
52
|
+
}, [ws]);
|
|
55
53
|
const handleRefresh = useCallback(() => {
|
|
56
54
|
if (ws && ws.readyState === WebSocket.OPEN) {
|
|
57
55
|
setLoading(true);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
4
|
import { useParams, useNavigate, useLocation } from 'react-router-dom';
|
|
5
5
|
import { ProjectPageView } from '../pure/ProjectPageView';
|
|
6
|
+
import { summaryDotJson } from '../../utils/api';
|
|
6
7
|
export const ProjectPage = () => {
|
|
7
8
|
const [summary, setSummary] = useState(null);
|
|
8
9
|
const [nodeLogs, setNodeLogs] = useState(null);
|
|
@@ -32,11 +33,11 @@ export const ProjectPage = () => {
|
|
|
32
33
|
const fetchData = async () => {
|
|
33
34
|
try {
|
|
34
35
|
const [summaryRes, nodeRes, webRes, pureRes, configRes] = await Promise.all([
|
|
35
|
-
fetch(
|
|
36
|
-
fetch(
|
|
37
|
-
fetch(
|
|
38
|
-
fetch(
|
|
39
|
-
fetch(
|
|
36
|
+
fetch(summaryDotJson(name)),
|
|
37
|
+
fetch(`metafiles/node/${name}.json`),
|
|
38
|
+
fetch(`metafiles/web/${name}.json`),
|
|
39
|
+
fetch(`metafiles/pure/${name}.json`),
|
|
40
|
+
fetch(`reports/${name}/config.json`)
|
|
40
41
|
]);
|
|
41
42
|
const [summaryData, nodeData, webData, pureData, configData] = await Promise.all([
|
|
42
43
|
summaryRes.ok ? summaryRes.json() : {},
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
3
|
import React, { useEffect, useState } from 'react';
|
|
3
4
|
import { useNavigate } from 'react-router-dom';
|
|
4
5
|
import { ProjectsPageView } from '../pure/ProjectsPageView';
|
|
6
|
+
import { summaryDotJson } from '../../utils/api';
|
|
7
|
+
import { useWebSocket } from '../../App';
|
|
5
8
|
export const ProjectsPage = () => {
|
|
6
9
|
const [projects, setProjects] = useState([]);
|
|
7
10
|
const [summaries, setSummaries] = useState({});
|
|
@@ -9,14 +12,11 @@ export const ProjectsPage = () => {
|
|
|
9
12
|
const [error, setError] = useState(null);
|
|
10
13
|
const [configs, setConfigs] = useState({});
|
|
11
14
|
const navigate = useNavigate();
|
|
12
|
-
const
|
|
15
|
+
const { ws } = useWebSocket();
|
|
13
16
|
useEffect(() => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const websocket = new WebSocket(wsUrl);
|
|
18
|
-
setWs(websocket);
|
|
19
|
-
websocket.onmessage = (event) => {
|
|
17
|
+
if (!ws)
|
|
18
|
+
return;
|
|
19
|
+
const handleMessage = (event) => {
|
|
20
20
|
try {
|
|
21
21
|
const data = JSON.parse(event.data);
|
|
22
22
|
if (data.type === 'summaryUpdate') {
|
|
@@ -28,26 +28,24 @@ export const ProjectsPage = () => {
|
|
|
28
28
|
console.error('Error parsing WebSocket message:', error);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
console.error('WebSocket error:', error);
|
|
33
|
-
};
|
|
31
|
+
ws.addEventListener('message', handleMessage);
|
|
34
32
|
return () => {
|
|
35
|
-
|
|
33
|
+
ws.removeEventListener('message', handleMessage);
|
|
36
34
|
};
|
|
37
|
-
}, []);
|
|
35
|
+
}, [ws]);
|
|
38
36
|
useEffect(() => {
|
|
39
37
|
const fetchProjects = async () => {
|
|
40
38
|
try {
|
|
41
|
-
const projectsRes = await fetch(
|
|
39
|
+
const projectsRes = await fetch(`projects.json`);
|
|
42
40
|
const projectNames = await projectsRes.json();
|
|
43
41
|
const projectsData = await Promise.all(projectNames.map(async (name) => {
|
|
44
42
|
var _a, _b, _c, _d, _e, _f;
|
|
45
43
|
const [summaryRes, nodeRes, webRes, pureRes, configRes] = await Promise.all([
|
|
46
|
-
fetch(
|
|
47
|
-
fetch(
|
|
48
|
-
fetch(
|
|
49
|
-
fetch(
|
|
50
|
-
fetch(
|
|
44
|
+
fetch(summaryDotJson(name)),
|
|
45
|
+
fetch(`metafiles/node/${name}.json`),
|
|
46
|
+
fetch(`metafiles/web/${name}.json`),
|
|
47
|
+
fetch(`metafiles/pure/${name}.json`),
|
|
48
|
+
fetch(`reports/${name}/config.json`),
|
|
51
49
|
]);
|
|
52
50
|
const [summary, nodeData, webData, pureData, configData] = await Promise.all([
|
|
53
51
|
summaryRes.json(),
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback } from "react";
|
|
2
2
|
import { useNavigate, useParams } from "react-router-dom";
|
|
3
3
|
import { SingleProcessView } from "../pure/SingleProcessView";
|
|
4
|
+
import { useWebSocket } from '../../App';
|
|
4
5
|
export const SingleProcessPage = () => {
|
|
5
6
|
const [process, setProcess] = useState(null);
|
|
6
|
-
const
|
|
7
|
+
const ws = useWebSocket();
|
|
7
8
|
const [loading, setLoading] = useState(true);
|
|
8
9
|
const navigate = useNavigate();
|
|
9
10
|
const { processId } = useParams();
|
|
10
|
-
//
|
|
11
|
+
// Handle WebSocket messages
|
|
11
12
|
useEffect(() => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const websocket = new WebSocket(wsUrl);
|
|
15
|
-
setWs(websocket);
|
|
13
|
+
if (!ws)
|
|
14
|
+
return;
|
|
16
15
|
// Set a timeout to handle cases where we don't get a response
|
|
17
16
|
const timeoutId = setTimeout(() => {
|
|
18
17
|
if (loading) {
|
|
@@ -21,22 +20,6 @@ export const SingleProcessPage = () => {
|
|
|
21
20
|
setProcess(null);
|
|
22
21
|
}
|
|
23
22
|
}, 3000);
|
|
24
|
-
// Request specific process when connected
|
|
25
|
-
websocket.onopen = () => {
|
|
26
|
-
setLoading(true);
|
|
27
|
-
if (processId) {
|
|
28
|
-
websocket.send(JSON.stringify({
|
|
29
|
-
type: "getProcess",
|
|
30
|
-
processId,
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
websocket.onerror = (error) => {
|
|
35
|
-
console.error("WebSocket error:", error);
|
|
36
|
-
setLoading(false);
|
|
37
|
-
setProcess(null);
|
|
38
|
-
clearTimeout(timeoutId);
|
|
39
|
-
};
|
|
40
23
|
const handleMessage = (event) => {
|
|
41
24
|
try {
|
|
42
25
|
const data = JSON.parse(event.data);
|
|
@@ -76,13 +59,20 @@ export const SingleProcessPage = () => {
|
|
|
76
59
|
clearTimeout(timeoutId);
|
|
77
60
|
}
|
|
78
61
|
};
|
|
79
|
-
|
|
62
|
+
ws.addEventListener("message", handleMessage);
|
|
63
|
+
// Request specific process when connected
|
|
64
|
+
if (ws.readyState === WebSocket.OPEN && processId) {
|
|
65
|
+
setLoading(true);
|
|
66
|
+
ws.send(JSON.stringify({
|
|
67
|
+
type: "getProcess",
|
|
68
|
+
processId,
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
80
71
|
return () => {
|
|
81
|
-
|
|
82
|
-
websocket.close();
|
|
72
|
+
ws.removeEventListener("message", handleMessage);
|
|
83
73
|
clearTimeout(timeoutId);
|
|
84
74
|
};
|
|
85
|
-
}, [processId]);
|
|
75
|
+
}, [ws, processId]);
|
|
86
76
|
// Try to find the process in the global state if WebSocket doesn't respond
|
|
87
77
|
useEffect(() => {
|
|
88
78
|
// This is a fallback - in a real implementation, you'd want to get this from a global state
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { useLocation, useNavigate, useParams } from 'react-router-dom';
|
|
4
|
-
import { fetchTestData } from '../../utils/api';
|
|
4
|
+
import { fetchTestData, summaryDotJson } from '../../utils/api';
|
|
5
|
+
import { useWebSocket } from '../../App';
|
|
5
6
|
import { TestPageView } from '../pure/TestPageView';
|
|
6
7
|
export const TestPage = () => {
|
|
7
8
|
const navigate = useNavigate();
|
|
8
9
|
const location = useLocation();
|
|
9
10
|
const [route, setRoute] = useState('results');
|
|
11
|
+
const { isConnected } = useWebSocket();
|
|
10
12
|
// Sync route with hash changes
|
|
11
13
|
useEffect(() => {
|
|
12
14
|
const hash = location.hash.replace('#', '');
|
|
@@ -45,11 +47,11 @@ export const TestPage = () => {
|
|
|
45
47
|
try {
|
|
46
48
|
const [testResponse, metafileRes] = await Promise.all([
|
|
47
49
|
fetchTestData(projectName, testPath, runtime),
|
|
48
|
-
fetch(
|
|
50
|
+
fetch(`metafiles/${runtime}/${projectName}.json`)
|
|
49
51
|
]);
|
|
50
|
-
console.log('Fetching test data for:', { projectName, testPath, runtime });
|
|
52
|
+
// console.log('Fetching test data for:', { projectName, testPath, runtime });
|
|
51
53
|
const receivedLogs = await testResponse.logs;
|
|
52
|
-
console.log('Received logs:', Object.keys(receivedLogs));
|
|
54
|
+
// console.log('Received logs:', Object.keys(receivedLogs));
|
|
53
55
|
let sourceFiles = {};
|
|
54
56
|
let buildLogs = {};
|
|
55
57
|
if (metafileRes.ok) {
|
|
@@ -165,7 +167,7 @@ export const TestPage = () => {
|
|
|
165
167
|
// setTypeErrors(testResponse.typeErrors);
|
|
166
168
|
// setLintErrors(testResponse.lintErrors);
|
|
167
169
|
try {
|
|
168
|
-
const summaryResponse = await fetch(
|
|
170
|
+
const summaryResponse = await fetch(summaryDotJson(projectName));
|
|
169
171
|
if (!summaryResponse.ok)
|
|
170
172
|
throw new Error('Failed to fetch summary');
|
|
171
173
|
const allSummaries = await summaryResponse.json();
|
|
@@ -227,5 +229,5 @@ export const TestPage = () => {
|
|
|
227
229
|
if (!logs)
|
|
228
230
|
return React.createElement("div", null, "loading...");
|
|
229
231
|
return (React.createElement(React.Fragment, null,
|
|
230
|
-
React.createElement(TestPageView, { route: route, setRoute: setRoute, navigate: navigate, projectName: projectName, testName: testName, decodedTestPath: decodedTestPath, runtime: runtime, logs: logs, testsExist: testsExist, errorCounts: errorCounts })));
|
|
232
|
+
React.createElement(TestPageView, { route: route, setRoute: setRoute, navigate: navigate, projectName: projectName, testName: testName, decodedTestPath: decodedTestPath, runtime: runtime, logs: logs, testsExist: testsExist, errorCounts: errorCounts, isWebSocketConnected: isConnected })));
|
|
231
233
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { useWebSocket } from '../App';
|
|
3
|
+
export const useGitMode = () => {
|
|
4
|
+
const { isConnected } = useWebSocket();
|
|
5
|
+
const [mode, setMode] = useState(isConnected ? 'dev' : 'static');
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
// Auto-detect mode based on WebSocket connection
|
|
8
|
+
setMode(isConnected ? 'dev' : 'static');
|
|
9
|
+
}, [isConnected]);
|
|
10
|
+
return {
|
|
11
|
+
mode,
|
|
12
|
+
setMode,
|
|
13
|
+
isStatic: mode === 'static',
|
|
14
|
+
isDev: mode === 'dev',
|
|
15
|
+
isGit: mode === 'git'
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -6,12 +6,12 @@ import { BaseThen } from "../BaseThen";
|
|
|
6
6
|
import { BaseWhen } from "../BaseWhen";
|
|
7
7
|
export class MockGiven extends BaseGiven {
|
|
8
8
|
constructor(name, features, whens, thens) {
|
|
9
|
-
super(name, features, whens, thens, async () => ({ testStore: true }), // givenCB
|
|
9
|
+
super(name, features, whens, thens, async () => ({ testStore: true, testSelection: false }), // givenCB
|
|
10
10
|
{} // initialValues
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
async givenThat() {
|
|
14
|
-
return { testStore: true };
|
|
14
|
+
return { testStore: true, testSelection: false };
|
|
15
15
|
}
|
|
16
16
|
uberCatcher(e) {
|
|
17
17
|
console.error("Given error 2:", e);
|
|
@@ -20,19 +20,26 @@ export class MockGiven extends BaseGiven {
|
|
|
20
20
|
export class MockWhen extends BaseWhen {
|
|
21
21
|
async andWhen(store, whenCB, testResource, pm) {
|
|
22
22
|
// Create a TestSelection from the store
|
|
23
|
-
const selection = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const selection = {
|
|
24
|
+
testSelection: store.testStore,
|
|
25
|
+
testStore: store.testStore
|
|
26
|
+
};
|
|
27
|
+
// Call whenCB with the selection
|
|
28
|
+
await whenCB(selection);
|
|
29
|
+
return store;
|
|
27
30
|
}
|
|
28
31
|
addArtifact(path) {
|
|
29
32
|
// Mock implementation
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
export class MockThen extends BaseThen {
|
|
33
|
-
async butThen(store, thenCB, testResourceConfiguration, pm
|
|
36
|
+
async butThen(store, thenCB, testResourceConfiguration, pm) {
|
|
34
37
|
// Create a TestSelection from the store
|
|
35
|
-
const selection = {
|
|
38
|
+
const selection = {
|
|
39
|
+
testSelection: store.testStore,
|
|
40
|
+
testStore: store.testStore
|
|
41
|
+
};
|
|
42
|
+
// Call thenCB with the selection
|
|
36
43
|
await thenCB(selection);
|
|
37
44
|
return selection;
|
|
38
45
|
}
|