testeranto 0.202.0 → 0.203.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 +23 -0
- package/UX/chache/index.md +11 -0
- package/dist/prebuild/App.css +78 -0
- package/dist/prebuild/App.js +4828 -2814
- package/dist/prebuild/testeranto.mjs +2650 -1037
- package/example/Calculator.go +63 -0
- package/example/Calculator.golingvu.adapter.go +81 -0
- package/example/Calculator.golingvu.go +67 -0
- package/example/Calculator.golingvu.implementation.go +95 -0
- package/example/Calculator.golingvu.specification.go +68 -0
- package/example/Calculator.pitono.adapter.py +68 -0
- package/example/Calculator.pitono.implementation.py +30 -0
- package/example/Calculator.pitono.specification.py +154 -0
- package/example/Calculator.pitono.test.py +47 -0
- package/example/Calculator.py +93 -0
- package/example/Calculator.test.adapter.ts +86 -0
- package/example/Calculator.test.implementation.ts +82 -0
- package/example/Calculator.test.specification.ts +213 -0
- package/example/Calculator.test.ts +13 -0
- package/example/Calculator.test.types.ts +50 -0
- package/example/Calculator.ts +130 -0
- package/example/README.md +1 -0
- package/example/base_suite_test.go +51 -0
- package/example/cmd/main.go +16 -0
- package/example/go.mod +9 -0
- package/example/main +0 -0
- package/example/test_example.py +143 -74
- package/{testeranto → example/testeranto}/bundles/golang/core/Calculator.golingvu.go +1 -1
- package/example/testeranto/metafiles/golang/core.json +198 -0
- package/go.mod +3 -1
- package/golingvu.tmp.txt +68 -0
- package/log.txt +85 -0
- package/package.json +50 -41
- package/scripts/build-example.ts +245 -0
- package/src/App.tsx +94 -44
- package/src/Helpo.tsx +89 -0
- package/src/PM/PM_WithBuild.ts +32 -20
- package/src/PM/PM_WithGit.ts +60 -13
- package/src/PM/PM_WithHelpo.ts +341 -0
- package/src/PM/PM_WithProcesses.ts +484 -223
- package/src/PM/PM_WithWebSocket.ts +210 -2
- package/src/PM/golingvuBuild.ts +56 -0
- package/src/PM/main.ts +570 -438
- package/src/PM/pitonoBuild.ts +56 -0
- package/src/PM/utils.ts +7 -1
- package/src/app.scss +102 -0
- package/src/components/pure/AppFrame.tsx +259 -149
- package/src/components/pure/GitIntegrationView.tsx +527 -238
- package/src/components/pure/HelpoChatDrawer.tsx +222 -0
- package/src/components/pure/MagicRobotModal.tsx +136 -0
- package/src/components/pure/ProcessDetails.tsx +99 -0
- package/src/components/pure/ProcessInput.tsx +67 -0
- package/src/components/pure/ProcessList.tsx +89 -0
- package/src/components/pure/ProcessLogs.tsx +54 -0
- package/src/components/pure/ProcessManager.tsx +37 -46
- package/src/components/pure/ProcessManagerView.tsx +42 -367
- package/src/components/pure/ProcessManagerViewTypes.ts +10 -0
- package/src/components/pure/ProcessSidebar.tsx +88 -0
- package/src/components/pure/ProcessTerminal.tsx +51 -0
- package/src/components/pure/SingleProcessView.tsx +140 -231
- package/src/components/pure/TerminalInput.tsx +73 -0
- package/src/components/pure/TerminalLogs.tsx +80 -0
- package/src/components/pure/TestPageView.tsx +21 -116
- package/src/components/pure/TestPageView_utils.tsx +2 -0
- package/src/components/stateful/DratoPage.tsx +457 -0
- package/src/components/stateful/GenericXMLEditor/AttributeEditor.tsx +87 -0
- package/src/components/stateful/GenericXMLEditor/Drawer.tsx +174 -0
- package/src/components/stateful/GenericXMLEditor/GenericPreview.tsx +160 -0
- package/src/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +104 -0
- package/src/components/stateful/GenericXMLEditor/GenericTree.tsx +104 -0
- package/src/components/stateful/GenericXMLEditorPage.tsx +346 -0
- package/src/components/stateful/GitIntegrationPage.tsx +258 -3
- package/src/components/stateful/GrafeoPage.tsx +563 -0
- package/src/components/stateful/SVGEditor/SVGAttributesEditor.tsx +26 -8
- package/src/components/stateful/SVGEditor/SVGPreview.tsx +4 -2
- package/src/components/stateful/SVGEditorPage.tsx +195 -181
- package/src/components/stateful/SingleProcessPage.tsx +133 -131
- package/src/components/stateful/SkriboPage.tsx +765 -0
- package/src/components/stateful/TestPage.tsx +3 -2
- package/src/esbuildConfigs/node.ts +1 -1
- package/src/example/go.mod +9 -0
- package/src/example/main.go +61 -0
- package/src/golingvu/PM/golang_test.go +103 -0
- package/src/golingvu/README.md +186 -2
- package/src/golingvu/base_given.go +89 -2
- package/src/golingvu/base_suite.go +48 -2
- package/src/golingvu/go.mod +6 -0
- package/src/golingvu/golingvu.go +703 -29
- package/src/golingvu/types.go +0 -14
- package/src/helpo/directives.md +5 -0
- package/src/helpo/prompt.txt +38 -0
- package/src/hooks/useTerminalWebSocket.ts +49 -0
- package/src/lib/BaseGiven.ts +126 -28
- package/src/lib/BaseSuite.test/test.ts +97 -180
- package/src/lib/BaseSuite.ts +52 -10
- package/src/lib/BaseThen.ts +34 -38
- package/src/lib/BaseWhen.ts +9 -2
- package/src/lib/Tiposkripto.test/Tiposkripto.specification.ts +9 -8
- package/src/lib/Tiposkripto.ts +41 -11
- package/src/lib/pmProxy.ts +55 -18
- package/src/pitono/PM/python.py +165 -0
- package/src/pitono/Pitono.py +298 -0
- package/src/pitono/PitonoTest.py +25 -0
- package/src/pitono/README.md +21 -0
- package/src/pitono/__init__.py +6 -0
- package/{pitono → src/pitono}/base_given.py +42 -20
- package/{pitono → src/pitono}/base_suite.py +55 -2
- package/{pitono → src/pitono}/base_then.py +15 -1
- package/{pitono → src/pitono}/base_when.py +15 -1
- package/{pitono → src/pitono}/pitono.egg-info/PKG-INFO +25 -0
- package/{pitono → src/pitono}/pitono.egg-info/SOURCES.txt +1 -0
- package/src/pitono/types.py +87 -0
- package/src/services/FileService.ts +146 -11
- package/src/testeranto.ts +115 -149
- package/src/utils/golingvuMetafile.ts +822 -118
- package/src/utils/golingvuWatcher.ts +285 -0
- package/src/utils/logFiles.ts +10 -2
- package/src/utils/makePrompt.ts +12 -1
- package/src/utils/pitonoMetafile.ts +326 -54
- package/src/utils/pitonoWatcher.ts +157 -0
- package/testeranto/App.css +78 -0
- package/testeranto/App.js +4828 -2814
- package/testeranto/bundles/node/core/{chunk-RIM6RECA.mjs → chunk-MJTSYIAQ.mjs} +179 -250
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +110 -62
- package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +135 -137
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +4317 -4
- package/testeranto/bundles/pure/core/{chunk-XYOCRDEQ.mjs → chunk-6HR24P27.mjs} +96 -173
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +1 -1
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +110 -62
- package/testeranto/bundles/web/core/{chunk-JMDLMADH.mjs → chunk-AZZHJNSU.mjs} +2473 -191
- package/testeranto/bundles/web/core/{chunk-LQMU5NCG.mjs → chunk-ME6I6FJZ.mjs} +96 -173
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +3 -5
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -78
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +6476 -69
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +15 -0
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +110 -62
- package/testeranto/helpo_chat_history.json +1 -0
- package/testeranto/metafiles/golang/core.json +42 -47
- package/testeranto/metafiles/node/core.json +263 -247
- package/testeranto/metafiles/pure/core.json +23 -38
- package/testeranto/metafiles/python/core.json +85 -9
- package/testeranto/metafiles/web/core.json +966 -460
- package/testeranto/reports/core/config.json +30 -6
- package/testeranto/reports/core/example/Calculator.golingvu/golang/exit.log +1 -0
- package/testeranto/reports/core/example/Calculator.golingvu/golang/stderr.log +2 -0
- package/testeranto/reports/core/example/Calculator.golingvu/golang/stdout.log +1 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/exit.log +1 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/stderr.log +11 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/stdout.log +1 -0
- package/testeranto/reports/core/example/Calculator.test/node/exit.log +1 -0
- package/testeranto/reports/core/example/Calculator.test/node/lint_errors.txt +2 -0
- package/testeranto/reports/core/example/Calculator.test/node/message.txt +16 -0
- package/testeranto/reports/core/example/Calculator.test/node/prompt.txt +13 -0
- package/testeranto/reports/core/example/Calculator.test/node/stderr.log +33 -0
- package/testeranto/reports/core/example/Calculator.test/node/stdout.log +1076 -0
- package/testeranto/reports/core/example/Calculator.test/node/tests.json +1109 -0
- package/testeranto/reports/core/example/Calculator.test/node/type_errors.txt +34 -0
- package/testeranto/reports/core/example/test_example/python/exit.log +1 -0
- package/testeranto/reports/core/example/test_example/python/stderr.log +24 -0
- package/testeranto/reports/core/src/Pure.test/pure/message.txt +1 -2
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +4 -5
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +16 -3
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +0 -91
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/exit.log +0 -1
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +26 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +69 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +16 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +27 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +42 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +0 -30
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +0 -1
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +30 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +30 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +58 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +1 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +9 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stderr.log +1 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +4 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +98 -7
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +44 -28
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +1 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +4 -6
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +44 -28
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +17 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +25 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +69 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +1 -1
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +1 -2
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +4 -8
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +68 -35
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +336 -6
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/tests.json +166 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +20 -13
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +1 -1
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +9 -1
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +0 -20
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +1 -3
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +31 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +16 -3
- package/testeranto/reports/core/summary.json +46 -19
- package/testeranto.config.ts +18 -30
- package/dist/cjs-shim.js +0 -12
- package/dist/common/design-editor/DesignEditor.js +0 -77
- package/dist/common/design-editor/index.js +0 -18
- package/dist/common/design-editor/server.js +0 -98
- package/dist/common/design-editor/types.js +0 -2
- package/dist/common/package.json +0 -3
- package/dist/common/src/App.js +0 -219
- package/dist/common/src/CoreTypes.js +0 -2
- package/dist/common/src/Init.js +0 -48
- package/dist/common/src/Node.js +0 -40
- package/dist/common/src/NodeSidecar.js +0 -15
- package/dist/common/src/PM/PM_WithBuild.js +0 -135
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +0 -204
- package/dist/common/src/PM/PM_WithGit.js +0 -517
- package/dist/common/src/PM/PM_WithProcesses.js +0 -519
- package/dist/common/src/PM/PM_WithWebSocket.js +0 -535
- package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +0 -108
- package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +0 -93
- package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +0 -93
- package/dist/common/src/PM/base.js +0 -319
- package/dist/common/src/PM/index.js +0 -6
- package/dist/common/src/PM/main.js +0 -672
- package/dist/common/src/PM/metafileOutputs.js +0 -78
- package/dist/common/src/PM/node.js +0 -179
- package/dist/common/src/PM/nodeSidecar.js +0 -65
- package/dist/common/src/PM/pitonoRunner.js +0 -54
- package/dist/common/src/PM/pure.js +0 -103
- package/dist/common/src/PM/pureSidecar.js +0 -48
- package/dist/common/src/PM/sidecar.js +0 -11
- package/dist/common/src/PM/types.js +0 -2
- package/dist/common/src/PM/utils.js +0 -210
- package/dist/common/src/PM/web.js +0 -106
- package/dist/common/src/PM/webSidecar.js +0 -47
- package/dist/common/src/Pure.js +0 -52
- package/dist/common/src/Pure.test.js +0 -180
- package/dist/common/src/PureSidecar.js +0 -13
- package/dist/common/src/ReportServer.js +0 -1
- package/dist/common/src/ReportServer.test.ts/index.js +0 -78
- package/dist/common/src/ReportServerLib.js +0 -1
- package/dist/common/src/Types.js +0 -2
- package/dist/common/src/Web.js +0 -61
- package/dist/common/src/WebSidecar.js +0 -14
- package/dist/common/src/components/DesignEditorPage.js +0 -205
- package/dist/common/src/components/SunriseAnimation.js +0 -291
- package/dist/common/src/components/SunriseAnimation.test/implementation.js +0 -1
- package/dist/common/src/components/SunriseAnimation.test/index.js +0 -1
- package/dist/common/src/components/SunriseAnimation.test/interface.js +0 -68
- package/dist/common/src/components/SunriseAnimation.test/specification.js +0 -1
- package/dist/common/src/components/SunriseAnimation.test/types.js +0 -2
- package/dist/common/src/components/TestStatusBadge.js +0 -35
- package/dist/common/src/components/pure/AppFrame.js +0 -81
- package/dist/common/src/components/pure/AppFrame.test/implementation.js +0 -63
- package/dist/common/src/components/pure/AppFrame.test/index.js +0 -14
- package/dist/common/src/components/pure/AppFrame.test/specification.js +0 -25
- package/dist/common/src/components/pure/AppFrame.test/types.js +0 -3
- package/dist/common/src/components/pure/ArtifactTree.js +0 -80
- package/dist/common/src/components/pure/BuildLogViewer.js +0 -106
- package/dist/common/src/components/pure/DebugEnv.js +0 -30
- package/dist/common/src/components/pure/FeaturesReporterView.js +0 -23
- package/dist/common/src/components/pure/FeaturesReporterView.test/implementation.js +0 -84
- package/dist/common/src/components/pure/FeaturesReporterView.test/index.js +0 -14
- package/dist/common/src/components/pure/FeaturesReporterView.test/specification.js +0 -27
- package/dist/common/src/components/pure/FeaturesReporterView.test/types.js +0 -2
- package/dist/common/src/components/pure/FileTree.js +0 -34
- package/dist/common/src/components/pure/FileTreeItem.js +0 -29
- package/dist/common/src/components/pure/GitHubLoginButton.js +0 -18
- package/dist/common/src/components/pure/GitIntegrationView.js +0 -342
- package/dist/common/src/components/pure/ModalContent.js +0 -86
- package/dist/common/src/components/pure/ModalContent.test/implementation.js +0 -35
- package/dist/common/src/components/pure/ModalContent.test/index.js +0 -58
- package/dist/common/src/components/pure/ModalContent.test/specification.js +0 -19
- package/dist/common/src/components/pure/ModalContent.test/types.js +0 -4
- package/dist/common/src/components/pure/NavBar.js +0 -44
- package/dist/common/src/components/pure/ProcessManager.js +0 -113
- package/dist/common/src/components/pure/ProcessManagerView.js +0 -236
- package/dist/common/src/components/pure/ProjectPageView.js +0 -68
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +0 -184
- package/dist/common/src/components/pure/ProjectPageView.test/index.js +0 -14
- package/dist/common/src/components/pure/ProjectPageView.test/specification.js +0 -32
- package/dist/common/src/components/pure/ProjectPageView.test/types.js +0 -4
- package/dist/common/src/components/pure/ProjectsPageView.js +0 -72
- package/dist/common/src/components/pure/Settings.js +0 -121
- package/dist/common/src/components/pure/Settings.test.js +0 -34
- package/dist/common/src/components/pure/SettingsButton.js +0 -13
- package/dist/common/src/components/pure/SignIn.js +0 -22
- package/dist/common/src/components/pure/SingleProcessView.js +0 -167
- package/dist/common/src/components/pure/TestPageView.js +0 -373
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +0 -157
- package/dist/common/src/components/pure/TestPageView.test/index.js +0 -15
- package/dist/common/src/components/pure/TestPageView.test/specification.js +0 -26
- package/dist/common/src/components/pure/TestPageView.test/types.js +0 -4
- package/dist/common/src/components/pure/TestPageView_utils.js +0 -117
- package/dist/common/src/components/pure/TestTable.js +0 -33
- package/dist/common/src/components/pure/ThemeCard.js +0 -15
- package/dist/common/src/components/pure/ToastNotification.js +0 -14
- package/dist/common/src/components/pure/UserProfile.js +0 -27
- package/dist/common/src/components/stateful/AuthCallbackPage.js +0 -51
- package/dist/common/src/components/stateful/FeaturesReporter.js +0 -60
- package/dist/common/src/components/stateful/FileTree.js +0 -59
- package/dist/common/src/components/stateful/GitIntegrationPage.js +0 -12
- package/dist/common/src/components/stateful/ProcessManagerPage.js +0 -110
- package/dist/common/src/components/stateful/ProjectPage.js +0 -102
- package/dist/common/src/components/stateful/ProjectsPage.js +0 -116
- package/dist/common/src/components/stateful/SettingsPage.js +0 -72
- package/dist/common/src/components/stateful/SingleProcessPage.js +0 -137
- package/dist/common/src/components/stateful/TestPage.js +0 -270
- package/dist/common/src/components/stateful/TextEditorPage.js +0 -154
- package/dist/common/src/defaultConfig.js +0 -19
- package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +0 -38
- package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +0 -21
- package/dist/common/src/esbuildConfigs/featuresPlugin.js +0 -39
- package/dist/common/src/esbuildConfigs/index.js +0 -21
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -30
- package/dist/common/src/esbuildConfigs/nativeImportDetectorPlugin.js +0 -24
- package/dist/common/src/esbuildConfigs/node.js +0 -24
- package/dist/common/src/esbuildConfigs/pure.js +0 -42
- package/dist/common/src/esbuildConfigs/rebuildPlugin.js +0 -19
- package/dist/common/src/esbuildConfigs/web.js +0 -48
- package/dist/common/src/hooks/useGitMode.js +0 -21
- package/dist/common/src/init-docs.js +0 -9
- package/dist/common/src/lib/BaseGiven.js +0 -99
- package/dist/common/src/lib/BaseSuite.js +0 -91
- package/dist/common/src/lib/BaseSuite.test/mock.js +0 -68
- package/dist/common/src/lib/BaseSuite.test/node.test.js +0 -10
- package/dist/common/src/lib/BaseSuite.test/pure.test.js +0 -10
- package/dist/common/src/lib/BaseSuite.test/test.js +0 -229
- package/dist/common/src/lib/BaseSuite.test/web.test.js +0 -10
- package/dist/common/src/lib/BaseThen.js +0 -64
- package/dist/common/src/lib/BaseWhen.js +0 -45
- package/dist/common/src/lib/Sidecar.js +0 -7
- package/dist/common/src/lib/Tiposkripto.js +0 -173
- package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +0 -180
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +0 -29
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +0 -213
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.js +0 -11
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +0 -50
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.types.js +0 -2
- package/dist/common/src/lib/abstractBase.test/MockGiven.js +0 -24
- package/dist/common/src/lib/abstractBase.test/MockThen.js +0 -16
- package/dist/common/src/lib/abstractBase.test/MockWhen.js +0 -20
- package/dist/common/src/lib/abstractBase.test/adapter.js +0 -24
- package/dist/common/src/lib/abstractBase.test/implementation.js +0 -38
- package/dist/common/src/lib/abstractBase.test/index.js +0 -18
- package/dist/common/src/lib/abstractBase.test/specification.js +0 -19
- package/dist/common/src/lib/abstractBase.test/types.js +0 -2
- package/dist/common/src/lib/index.js +0 -31
- package/dist/common/src/lib/pmProxy.js +0 -293
- package/dist/common/src/lib/pmProxy.test/adapter.js +0 -54
- package/dist/common/src/lib/pmProxy.test/implementation.js +0 -137
- package/dist/common/src/lib/pmProxy.test/index.js +0 -15
- package/dist/common/src/lib/pmProxy.test/mockPM.js +0 -34
- package/dist/common/src/lib/pmProxy.test/mockPMBase.js +0 -131
- package/dist/common/src/lib/pmProxy.test/specification.js +0 -179
- package/dist/common/src/lib/pmProxy.test/types.js +0 -2
- package/dist/common/src/lib/types.js +0 -3
- package/dist/common/src/mothership/index.js +0 -21
- package/dist/common/src/mothership/test.js +0 -83
- package/dist/common/src/run.js +0 -49
- package/dist/common/src/services/FileService.js +0 -505
- package/dist/common/src/services/GitHubAuthService.js +0 -184
- package/dist/common/src/testeranto.js +0 -224
- package/dist/common/src/types/features.js +0 -34
- package/dist/common/src/utils/api.js +0 -93
- package/dist/common/src/utils/buildTemplates.js +0 -37
- package/dist/common/src/utils/featureUtils.js +0 -29
- package/dist/common/src/utils/gitTest.js +0 -27
- package/dist/common/src/utils/golingvuMetafile.js +0 -116
- package/dist/common/src/utils/logFiles.js +0 -52
- package/dist/common/src/utils/makePrompt.js +0 -116
- package/dist/common/src/utils/pitonoMetafile.js +0 -67
- package/dist/common/src/utils/queue.js +0 -36
- package/dist/common/src/utils.js +0 -143
- package/dist/common/src/web.html.js +0 -18
- package/dist/common/testeranto.config.js +0 -102
- package/dist/common/tsconfig.common.tsbuildinfo +0 -1
- package/dist/module/design-editor/DesignEditor.js +0 -40
- package/dist/module/design-editor/index.js +0 -2
- package/dist/module/design-editor/server.js +0 -92
- package/dist/module/design-editor/types.js +0 -1
- package/dist/module/package.json +0 -3
- package/dist/module/src/App.js +0 -176
- package/dist/module/src/CoreTypes.js +0 -1
- package/dist/module/src/Init.js +0 -43
- package/dist/module/src/Node.js +0 -33
- package/dist/module/src/NodeSidecar.js +0 -11
- package/dist/module/src/PM/PM_WithBuild.js +0 -128
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +0 -197
- package/dist/module/src/PM/PM_WithGit.js +0 -477
- package/dist/module/src/PM/PM_WithProcesses.js +0 -479
- package/dist/module/src/PM/PM_WithWebSocket.js +0 -528
- package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +0 -103
- package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +0 -88
- package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +0 -88
- package/dist/module/src/PM/base.js +0 -312
- package/dist/module/src/PM/index.js +0 -2
- package/dist/module/src/PM/main.js +0 -632
- package/dist/module/src/PM/metafileOutputs.js +0 -78
- package/dist/module/src/PM/node.js +0 -172
- package/dist/module/src/PM/nodeSidecar.js +0 -58
- package/dist/module/src/PM/pitonoRunner.js +0 -47
- package/dist/module/src/PM/pure.js +0 -99
- package/dist/module/src/PM/pureSidecar.js +0 -41
- package/dist/module/src/PM/sidecar.js +0 -7
- package/dist/module/src/PM/types.js +0 -1
- package/dist/module/src/PM/utils.js +0 -196
- package/dist/module/src/PM/web.js +0 -102
- package/dist/module/src/PM/webSidecar.js +0 -40
- package/dist/module/src/Pure.js +0 -45
- package/dist/module/src/Pure.test.js +0 -175
- package/dist/module/src/PureSidecar.js +0 -9
- package/dist/module/src/ReportServer.js +0 -1
- package/dist/module/src/ReportServer.test.ts/index.js +0 -73
- package/dist/module/src/ReportServerLib.js +0 -1
- package/dist/module/src/Types.js +0 -1
- package/dist/module/src/Web.js +0 -54
- package/dist/module/src/WebSidecar.js +0 -10
- package/dist/module/src/components/DesignEditorPage.js +0 -168
- package/dist/module/src/components/SunriseAnimation.js +0 -256
- package/dist/module/src/components/SunriseAnimation.test/implementation.js +0 -1
- package/dist/module/src/components/SunriseAnimation.test/index.js +0 -1
- package/dist/module/src/components/SunriseAnimation.test/interface.js +0 -32
- package/dist/module/src/components/SunriseAnimation.test/specification.js +0 -1
- package/dist/module/src/components/SunriseAnimation.test/types.js +0 -1
- package/dist/module/src/components/TestStatusBadge.js +0 -28
- package/dist/module/src/components/pure/AppFrame.js +0 -74
- package/dist/module/src/components/pure/AppFrame.test/implementation.js +0 -57
- package/dist/module/src/components/pure/AppFrame.test/index.js +0 -9
- package/dist/module/src/components/pure/AppFrame.test/specification.js +0 -21
- package/dist/module/src/components/pure/AppFrame.test/types.js +0 -2
- package/dist/module/src/components/pure/ArtifactTree.js +0 -80
- package/dist/module/src/components/pure/BuildLogViewer.js +0 -99
- package/dist/module/src/components/pure/DebugEnv.js +0 -23
- package/dist/module/src/components/pure/FeaturesReporterView.js +0 -16
- package/dist/module/src/components/pure/FeaturesReporterView.test/implementation.js +0 -81
- package/dist/module/src/components/pure/FeaturesReporterView.test/index.js +0 -9
- package/dist/module/src/components/pure/FeaturesReporterView.test/specification.js +0 -23
- package/dist/module/src/components/pure/FeaturesReporterView.test/types.js +0 -1
- package/dist/module/src/components/pure/FileTree.js +0 -27
- package/dist/module/src/components/pure/FileTreeItem.js +0 -22
- package/dist/module/src/components/pure/GitHubLoginButton.js +0 -11
- package/dist/module/src/components/pure/GitIntegrationView.js +0 -305
- package/dist/module/src/components/pure/ModalContent.js +0 -79
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +0 -32
- package/dist/module/src/components/pure/ModalContent.test/index.js +0 -53
- package/dist/module/src/components/pure/ModalContent.test/specification.js +0 -15
- package/dist/module/src/components/pure/ModalContent.test/types.js +0 -3
- package/dist/module/src/components/pure/NavBar.js +0 -37
- package/dist/module/src/components/pure/ProcessManager.js +0 -76
- package/dist/module/src/components/pure/ProcessManagerView.js +0 -199
- package/dist/module/src/components/pure/ProjectPageView.js +0 -61
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +0 -181
- package/dist/module/src/components/pure/ProjectPageView.test/index.js +0 -9
- package/dist/module/src/components/pure/ProjectPageView.test/specification.js +0 -28
- package/dist/module/src/components/pure/ProjectPageView.test/types.js +0 -3
- package/dist/module/src/components/pure/ProjectsPageView.js +0 -65
- package/dist/module/src/components/pure/Settings.js +0 -84
- package/dist/module/src/components/pure/Settings.test.js +0 -29
- package/dist/module/src/components/pure/SettingsButton.js +0 -6
- package/dist/module/src/components/pure/SignIn.js +0 -15
- package/dist/module/src/components/pure/SingleProcessView.js +0 -130
- package/dist/module/src/components/pure/TestPageView.js +0 -336
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +0 -121
- package/dist/module/src/components/pure/TestPageView.test/index.js +0 -10
- package/dist/module/src/components/pure/TestPageView.test/specification.js +0 -22
- package/dist/module/src/components/pure/TestPageView.test/types.js +0 -3
- package/dist/module/src/components/pure/TestPageView_utils.js +0 -109
- package/dist/module/src/components/pure/TestTable.js +0 -26
- package/dist/module/src/components/pure/ThemeCard.js +0 -8
- package/dist/module/src/components/pure/ToastNotification.js +0 -7
- package/dist/module/src/components/pure/UserProfile.js +0 -20
- package/dist/module/src/components/stateful/AuthCallbackPage.js +0 -14
- package/dist/module/src/components/stateful/FeaturesReporter.js +0 -23
- package/dist/module/src/components/stateful/FileTree.js +0 -59
- package/dist/module/src/components/stateful/GitIntegrationPage.js +0 -5
- package/dist/module/src/components/stateful/ProcessManagerPage.js +0 -73
- package/dist/module/src/components/stateful/ProjectPage.js +0 -65
- package/dist/module/src/components/stateful/ProjectsPage.js +0 -79
- package/dist/module/src/components/stateful/SettingsPage.js +0 -35
- package/dist/module/src/components/stateful/SingleProcessPage.js +0 -100
- package/dist/module/src/components/stateful/TestPage.js +0 -233
- package/dist/module/src/components/stateful/TextEditorPage.js +0 -117
- package/dist/module/src/defaultConfig.js +0 -17
- package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +0 -32
- package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +0 -18
- package/dist/module/src/esbuildConfigs/featuresPlugin.js +0 -34
- package/dist/module/src/esbuildConfigs/index.js +0 -19
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -25
- package/dist/module/src/esbuildConfigs/nativeImportDetectorPlugin.js +0 -21
- package/dist/module/src/esbuildConfigs/node.js +0 -19
- package/dist/module/src/esbuildConfigs/pure.js +0 -37
- package/dist/module/src/esbuildConfigs/rebuildPlugin.js +0 -14
- package/dist/module/src/esbuildConfigs/web.js +0 -43
- package/dist/module/src/hooks/useGitMode.js +0 -17
- package/dist/module/src/init-docs.js +0 -4
- package/dist/module/src/lib/BaseGiven.js +0 -95
- package/dist/module/src/lib/BaseSuite.js +0 -87
- package/dist/module/src/lib/BaseSuite.test/mock.js +0 -61
- package/dist/module/src/lib/BaseSuite.test/node.test.js +0 -5
- package/dist/module/src/lib/BaseSuite.test/pure.test.js +0 -5
- package/dist/module/src/lib/BaseSuite.test/test.js +0 -225
- package/dist/module/src/lib/BaseSuite.test/web.test.js +0 -5
- package/dist/module/src/lib/BaseThen.js +0 -60
- package/dist/module/src/lib/BaseWhen.js +0 -41
- package/dist/module/src/lib/Sidecar.js +0 -3
- package/dist/module/src/lib/Tiposkripto.js +0 -170
- package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +0 -173
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +0 -26
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +0 -210
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.js +0 -6
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +0 -46
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.types.js +0 -1
- package/dist/module/src/lib/abstractBase.test/MockGiven.js +0 -20
- package/dist/module/src/lib/abstractBase.test/MockThen.js +0 -12
- package/dist/module/src/lib/abstractBase.test/MockWhen.js +0 -16
- package/dist/module/src/lib/abstractBase.test/adapter.js +0 -21
- package/dist/module/src/lib/abstractBase.test/implementation.js +0 -35
- package/dist/module/src/lib/abstractBase.test/index.js +0 -13
- package/dist/module/src/lib/abstractBase.test/specification.js +0 -15
- package/dist/module/src/lib/abstractBase.test/types.js +0 -1
- package/dist/module/src/lib/index.js +0 -26
- package/dist/module/src/lib/pmProxy.js +0 -284
- package/dist/module/src/lib/pmProxy.test/adapter.js +0 -51
- package/dist/module/src/lib/pmProxy.test/implementation.js +0 -134
- package/dist/module/src/lib/pmProxy.test/index.js +0 -10
- package/dist/module/src/lib/pmProxy.test/mockPM.js +0 -30
- package/dist/module/src/lib/pmProxy.test/mockPMBase.js +0 -127
- package/dist/module/src/lib/pmProxy.test/specification.js +0 -175
- package/dist/module/src/lib/pmProxy.test/types.js +0 -1
- package/dist/module/src/lib/types.js +0 -2
- package/dist/module/src/mothership/index.js +0 -16
- package/dist/module/src/mothership/test.js +0 -78
- package/dist/module/src/run.js +0 -49
- package/dist/module/src/services/FileService.js +0 -468
- package/dist/module/src/services/GitHubAuthService.js +0 -180
- package/dist/module/src/testeranto.js +0 -186
- package/dist/module/src/types/features.js +0 -31
- package/dist/module/src/utils/api.js +0 -87
- package/dist/module/src/utils/buildTemplates.js +0 -33
- package/dist/module/src/utils/featureUtils.js +0 -24
- package/dist/module/src/utils/gitTest.js +0 -23
- package/dist/module/src/utils/golingvuMetafile.js +0 -109
- package/dist/module/src/utils/logFiles.js +0 -47
- package/dist/module/src/utils/makePrompt.js +0 -109
- package/dist/module/src/utils/pitonoMetafile.js +0 -60
- package/dist/module/src/utils/queue.js +0 -32
- package/dist/module/src/utils.js +0 -130
- package/dist/module/src/web.html.js +0 -16
- package/dist/module/testeranto.config.js +0 -100
- package/dist/module/tsconfig.module.tsbuildinfo +0 -1
- package/dist/types/design-editor/DesignEditor.d.ts +0 -1
- package/dist/types/src/App.d.ts +0 -19
- package/dist/types/src/CoreTypes.d.ts +0 -52
- package/dist/types/src/Init.d.ts +0 -2
- package/dist/types/src/Node.d.ts +0 -9
- package/dist/types/src/NodeSidecar.d.ts +0 -6
- package/dist/types/src/PM/PM_WithBuild.d.ts +0 -13
- package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +0 -22
- package/dist/types/src/PM/PM_WithGit.d.ts +0 -27
- package/dist/types/src/PM/PM_WithProcesses.d.ts +0 -29
- package/dist/types/src/PM/PM_WithWebSocket.d.ts +0 -108
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +0 -2
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +0 -2
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +0 -2
- package/dist/types/src/PM/base.d.ts +0 -35
- package/dist/types/src/PM/index.d.ts +0 -35
- package/dist/types/src/PM/main.d.ts +0 -8
- package/dist/types/src/PM/node.d.ts +0 -38
- package/dist/types/src/PM/nodeSidecar.d.ts +0 -13
- package/dist/types/src/PM/pitonoRunner.d.ts +0 -7
- package/dist/types/src/PM/pure.d.ts +0 -41
- package/dist/types/src/PM/pureSidecar.d.ts +0 -11
- package/dist/types/src/PM/sidecar.d.ts +0 -8
- package/dist/types/src/PM/types.d.ts +0 -118
- package/dist/types/src/PM/utils.d.ts +0 -35
- package/dist/types/src/PM/web.d.ts +0 -41
- package/dist/types/src/PM/webSidecar.d.ts +0 -11
- package/dist/types/src/Pure.d.ts +0 -14
- package/dist/types/src/Pure.test.d.ts +0 -2
- package/dist/types/src/PureSidecar.d.ts +0 -8
- package/dist/types/src/ReportServer.test.ts/index.d.ts +0 -2
- package/dist/types/src/Types.d.ts +0 -119
- package/dist/types/src/Web.d.ts +0 -9
- package/dist/types/src/WebSidecar.d.ts +0 -8
- package/dist/types/src/components/DesignEditorPage.d.ts +0 -1
- package/dist/types/src/components/SunriseAnimation.d.ts +0 -5
- package/dist/types/src/components/SunriseAnimation.test/interface.d.ts +0 -11
- package/dist/types/src/components/SunriseAnimation.test/types.d.ts +0 -39
- package/dist/types/src/components/TestStatusBadge.d.ts +0 -15
- package/dist/types/src/components/pure/AppFrame.d.ts +0 -11
- package/dist/types/src/components/pure/AppFrame.test/implementation.d.ts +0 -3
- package/dist/types/src/components/pure/AppFrame.test/index.d.ts +0 -3
- package/dist/types/src/components/pure/AppFrame.test/specification.d.ts +0 -3
- package/dist/types/src/components/pure/AppFrame.test/types.d.ts +0 -33
- package/dist/types/src/components/pure/BuildLogViewer.d.ts +0 -7
- package/dist/types/src/components/pure/DebugEnv.d.ts +0 -2
- package/dist/types/src/components/pure/FeaturesReporterView.d.ts +0 -7
- package/dist/types/src/components/pure/FeaturesReporterView.test/implementation.d.ts +0 -3
- package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +0 -2
- package/dist/types/src/components/pure/FeaturesReporterView.test/specification.d.ts +0 -3
- package/dist/types/src/components/pure/FeaturesReporterView.test/types.d.ts +0 -54
- package/dist/types/src/components/pure/FileTree.d.ts +0 -6
- package/dist/types/src/components/pure/FileTreeItem.d.ts +0 -8
- package/dist/types/src/components/pure/GitHubLoginButton.d.ts +0 -8
- package/dist/types/src/components/pure/GitIntegrationView.d.ts +0 -1
- package/dist/types/src/components/pure/ModalContent.d.ts +0 -7
- package/dist/types/src/components/pure/ModalContent.test/implementation.d.ts +0 -3
- package/dist/types/src/components/pure/ModalContent.test/index.d.ts +0 -2
- package/dist/types/src/components/pure/ModalContent.test/specification.d.ts +0 -3
- package/dist/types/src/components/pure/ModalContent.test/types.d.ts +0 -45
- package/dist/types/src/components/pure/NavBar.d.ts +0 -23
- package/dist/types/src/components/pure/ProcessManager.d.ts +0 -8
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +0 -20
- package/dist/types/src/components/pure/ProjectPageView.d.ts +0 -14
- package/dist/types/src/components/pure/ProjectPageView.test/implementation.d.ts +0 -3
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +0 -2
- package/dist/types/src/components/pure/ProjectPageView.test/specification.d.ts +0 -3
- package/dist/types/src/components/pure/ProjectPageView.test/types.d.ts +0 -57
- package/dist/types/src/components/pure/ProjectsPageView.d.ts +0 -29
- package/dist/types/src/components/pure/Settings.d.ts +0 -1
- package/dist/types/src/components/pure/Settings.test.d.ts +0 -1
- package/dist/types/src/components/pure/SettingsButton.d.ts +0 -2
- package/dist/types/src/components/pure/SignIn.d.ts +0 -1
- package/dist/types/src/components/pure/SingleProcessView.d.ts +0 -10
- package/dist/types/src/components/pure/TestPageView.d.ts +0 -16
- package/dist/types/src/components/pure/TestPageView.test/implementation.d.ts +0 -12
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +0 -3
- package/dist/types/src/components/pure/TestPageView.test/specification.d.ts +0 -11
- package/dist/types/src/components/pure/TestPageView.test/types.d.ts +0 -65
- package/dist/types/src/components/pure/TestPageView_utils.d.ts +0 -23
- package/dist/types/src/components/pure/TestTable.d.ts +0 -16
- package/dist/types/src/components/pure/ThemeCard.d.ts +0 -9
- package/dist/types/src/components/pure/ToastNotification.d.ts +0 -6
- package/dist/types/src/components/pure/UserProfile.d.ts +0 -2
- package/dist/types/src/components/stateful/AuthCallbackPage.d.ts +0 -2
- package/dist/types/src/components/stateful/FeaturesReporter.d.ts +0 -2
- package/dist/types/src/components/stateful/GitIntegrationPage.d.ts +0 -1
- package/dist/types/src/components/stateful/ProcessManagerPage.d.ts +0 -2
- package/dist/types/src/components/stateful/ProjectPage.d.ts +0 -1
- package/dist/types/src/components/stateful/ProjectsPage.d.ts +0 -1
- package/dist/types/src/components/stateful/SettingsPage.d.ts +0 -2
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +0 -2
- package/dist/types/src/components/stateful/TestPage.d.ts +0 -1
- package/dist/types/src/components/stateful/TextEditorPage.d.ts +0 -1
- package/dist/types/src/defaultConfig.d.ts +0 -3
- package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +0 -2
- package/dist/types/src/esbuildConfigs/eslint-formatter-testeranto.d.ts +0 -2
- package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +0 -5
- package/dist/types/src/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +0 -7
- package/dist/types/src/esbuildConfigs/nativeImportDetectorPlugin.d.ts +0 -2
- package/dist/types/src/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/pure.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +0 -6
- package/dist/types/src/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/src/hooks/useGitMode.d.ts +0 -7
- package/dist/types/src/init-docs.d.ts +0 -1
- package/dist/types/src/lib/BaseGiven.d.ts +0 -44
- package/dist/types/src/lib/BaseSuite.d.ts +0 -46
- package/dist/types/src/lib/BaseSuite.test/mock.d.ts +0 -21
- package/dist/types/src/lib/BaseSuite.test/node.test.d.ts +0 -2
- package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +0 -2
- package/dist/types/src/lib/BaseSuite.test/test.d.ts +0 -37
- package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +0 -2
- package/dist/types/src/lib/BaseThen.d.ts +0 -27
- package/dist/types/src/lib/BaseWhen.d.ts +0 -27
- package/dist/types/src/lib/Sidecar.d.ts +0 -5
- package/dist/types/src/lib/Tiposkripto.d.ts +0 -37
- package/dist/types/src/lib/Tiposkripto.test/MockTiposkripto.d.ts +0 -18
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.adapter.d.ts +0 -3
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.d.ts +0 -2
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.implementation.d.ts +0 -3
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.specification.d.ts +0 -3
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.types.d.ts +0 -58
- package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +0 -9
- package/dist/types/src/lib/abstractBase.test/MockThen.d.ts +0 -6
- package/dist/types/src/lib/abstractBase.test/MockWhen.d.ts +0 -6
- package/dist/types/src/lib/abstractBase.test/adapter.d.ts +0 -3
- package/dist/types/src/lib/abstractBase.test/implementation.d.ts +0 -3
- package/dist/types/src/lib/abstractBase.test/index.d.ts +0 -2
- package/dist/types/src/lib/abstractBase.test/specification.d.ts +0 -3
- package/dist/types/src/lib/abstractBase.test/types.d.ts +0 -39
- package/dist/types/src/lib/index.d.ts +0 -73
- package/dist/types/src/lib/pmProxy.d.ts +0 -12
- package/dist/types/src/lib/pmProxy.test/adapter.d.ts +0 -3
- package/dist/types/src/lib/pmProxy.test/implementation.d.ts +0 -3
- package/dist/types/src/lib/pmProxy.test/index.d.ts +0 -6
- package/dist/types/src/lib/pmProxy.test/mockPM.d.ts +0 -10
- package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +0 -40
- package/dist/types/src/lib/pmProxy.test/specification.d.ts +0 -3
- package/dist/types/src/lib/pmProxy.test/types.d.ts +0 -42
- package/dist/types/src/lib/types.d.ts +0 -24
- package/dist/types/src/mothership/index.d.ts +0 -2
- package/dist/types/src/mothership/test.d.ts +0 -2
- package/dist/types/src/services/FileService.d.ts +0 -34
- package/dist/types/src/services/GitHubAuthService.d.ts +0 -32
- package/dist/types/src/testeranto.d.ts +0 -1
- package/dist/types/src/types/features.d.ts +0 -7
- package/dist/types/src/utils/api.d.ts +0 -10
- package/dist/types/src/utils/buildTemplates.d.ts +0 -1
- package/dist/types/src/utils/featureUtils.d.ts +0 -6
- package/dist/types/src/utils/gitTest.d.ts +0 -11
- package/dist/types/src/utils/golingvuMetafile.d.ts +0 -19
- package/dist/types/src/utils/logFiles.d.ts +0 -75
- package/dist/types/src/utils/makePrompt.d.ts +0 -2
- package/dist/types/src/utils/pitonoMetafile.d.ts +0 -7
- package/dist/types/src/utils/queue.d.ts +0 -11
- package/dist/types/src/utils.d.ts +0 -20
- package/dist/types/src/web.html.d.ts +0 -2
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/README.md +0 -187
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_given.go +0 -163
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_suite.go +0 -85
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_then.go +0 -21
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_when.go +0 -21
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +0 -554
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/test_adapter.go +0 -33
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/types.go +0 -72
- package/example/vendor/modules.txt +0 -5
- package/pitono/__init__.py +0 -54
- package/pitono/types.py +0 -78
- package/src/PM/metafileOutputs.ts +0 -90
- package/src/golingvu/base_suite_test.go +0 -197
- 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/templates/frontpage.html +0 -340
- package/src/templates/frontpage.md +0 -79
- package/testeranto/bundles/golang/core/Calculator.golingvu.golingvu.go +0 -53
- package/testeranto/bundles/node/core/chunk-VXVF7WFO.mjs +0 -4321
- package/testeranto/bundles/node/core/example/Calculator.test.mjs +0 -503
- package/testeranto/bundles/python/core/Calculator.pitono.test.py +0 -24
- package/testeranto/bundles/python/core/test_example.py +0 -24
- package/testeranto/bundles/web/core/chunk-DFRN4SYZ.mjs +0 -2297
- package/testeranto/bundles/web/core/chunk-Q5TONB2Z.mjs +0 -6874
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +0 -11697
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +0 -336
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +0 -68
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -88
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +0 -29
- /package/{pitono → src/pitono}/core_generator.py +0 -0
- /package/{pitono → src/pitono}/pitono.egg-info/dependency_links.txt +0 -0
- /package/{pitono → src/pitono}/pitono.egg-info/entry_points.txt +0 -0
- /package/{pitono → src/pitono}/pitono.egg-info/top_level.txt +0 -0
- /package/{pitono → src/pitono}/pyproject.toml +0 -0
- /package/{pitono → src/pitono}/setup.py +0 -0
- /package/{pitono → src/pitono}/simple_adapter.py +0 -0
- /package/{dist/types/src/PM/metafileOutputs.d.ts → testeranto/helpo_chat_message.txt} +0 -0
- /package/{dist/types/src/ReportServer.d.ts → testeranto/reports/core/example/test_example/python/stdout.log} +0 -0
- /package/{dist/types/src/ReportServerLib.d.ts → testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt} +0 -0
- /package/{dist/types/src/components/SunriseAnimation.test/implementation.d.ts → testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log} +0 -0
- /package/{dist/types/src/components/SunriseAnimation.test/index.d.ts → testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log} +0 -0
- /package/{dist/types/src/components/SunriseAnimation.test/specification.d.ts → testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log} +0 -0
- /package/{dist/types/src/components/pure/ArtifactTree.d.ts → testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log} +0 -0
- /package/{dist/types/src/components/stateful/FileTree.d.ts → testeranto/reports/core/src/components/pure/ModalContent.test/index/web/warn.log} +0 -0
- /package/{dist/types/src/run.d.ts → testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt} +0 -0
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import React, { useState, useEffect, useRef } from "react";
|
|
3
|
-
import { Container, Row, Col, Badge, Button, Alert } from "react-bootstrap";
|
|
4
|
-
import { useNavigate } from "react-router-dom";
|
|
5
|
-
import { useWebSocket } from '../../App';
|
|
6
|
-
export const ProcessManagerView = ({ processes, onRefresh, onBack, loading, onKillProcess, }) => {
|
|
7
|
-
const navigate = useNavigate();
|
|
8
|
-
const [selectedProcess, setSelectedProcess] = useState(null);
|
|
9
|
-
// Use the centralized WebSocket from App context
|
|
10
|
-
const { ws } = useWebSocket();
|
|
11
|
-
const [processLogs, setProcessLogs] = useState([]);
|
|
12
|
-
const [autoScroll, setAutoScroll] = useState(true);
|
|
13
|
-
const logsContainerRef = useRef(null);
|
|
14
|
-
const [isNavbarCollapsed, setIsNavbarCollapsed] = useState(false);
|
|
15
|
-
// Handle WebSocket messages for the selected process
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
if (!ws)
|
|
18
|
-
return;
|
|
19
|
-
const handleMessage = (event) => {
|
|
20
|
-
try {
|
|
21
|
-
const data = JSON.parse(event.data);
|
|
22
|
-
// Handle process data response
|
|
23
|
-
if (data.type === "processData" &&
|
|
24
|
-
selectedProcess &&
|
|
25
|
-
data.processId === selectedProcess.processId) {
|
|
26
|
-
setSelectedProcess((prev) => prev
|
|
27
|
-
? Object.assign(Object.assign({}, prev), { logs: data.logs || [] }) : null);
|
|
28
|
-
setProcessLogs(data.logs || []);
|
|
29
|
-
}
|
|
30
|
-
// Handle new log messages
|
|
31
|
-
else if ((data.type === "processStdout" || data.type === "processStderr") &&
|
|
32
|
-
selectedProcess &&
|
|
33
|
-
data.processId === selectedProcess.processId) {
|
|
34
|
-
setProcessLogs((prev) => [...prev, data.data]);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.error("Error parsing WebSocket message:", error);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
ws.addEventListener('message', handleMessage);
|
|
42
|
-
return () => {
|
|
43
|
-
ws.removeEventListener('message', handleMessage);
|
|
44
|
-
};
|
|
45
|
-
}, [ws, selectedProcess]);
|
|
46
|
-
// Request process data when selected
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
if (selectedProcess && ws && ws.readyState === WebSocket.OPEN) {
|
|
49
|
-
ws.send(JSON.stringify({
|
|
50
|
-
type: "getProcess",
|
|
51
|
-
processId: selectedProcess.processId,
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
}, [selectedProcess, ws]);
|
|
55
|
-
// Auto-scroll to bottom when new logs arrive and autoScroll is enabled
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (autoScroll && logsContainerRef.current) {
|
|
58
|
-
logsContainerRef.current.scrollTop =
|
|
59
|
-
logsContainerRef.current.scrollHeight;
|
|
60
|
-
}
|
|
61
|
-
}, [processLogs, autoScroll]);
|
|
62
|
-
// Handle scroll events to determine if we should auto-scroll
|
|
63
|
-
const handleLogsScroll = () => {
|
|
64
|
-
if (logsContainerRef.current) {
|
|
65
|
-
const { scrollTop, scrollHeight, clientHeight } = logsContainerRef.current;
|
|
66
|
-
const isAtBottom = scrollHeight - scrollTop <= clientHeight + 10; // 10px threshold
|
|
67
|
-
setAutoScroll(isAtBottom);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const getStatusBadge = (process) => {
|
|
71
|
-
switch (process.status) {
|
|
72
|
-
case "running":
|
|
73
|
-
return React.createElement(Badge, { bg: "success" }, "Running");
|
|
74
|
-
case "exited":
|
|
75
|
-
return React.createElement(Badge, { bg: "secondary" },
|
|
76
|
-
"Exited (",
|
|
77
|
-
process.exitCode,
|
|
78
|
-
")");
|
|
79
|
-
case "error":
|
|
80
|
-
return React.createElement(Badge, { bg: "danger" }, "Error");
|
|
81
|
-
default:
|
|
82
|
-
return React.createElement(Badge, { bg: "warning" }, "Unknown");
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
const handleSelectProcess = (process) => {
|
|
86
|
-
setSelectedProcess(process);
|
|
87
|
-
setProcessLogs(process.logs || []);
|
|
88
|
-
};
|
|
89
|
-
const handleInput = (data) => {
|
|
90
|
-
if (ws &&
|
|
91
|
-
ws.readyState === WebSocket.OPEN &&
|
|
92
|
-
(selectedProcess === null || selectedProcess === void 0 ? void 0 : selectedProcess.status) === "running") {
|
|
93
|
-
ws.send(JSON.stringify({
|
|
94
|
-
type: "stdin",
|
|
95
|
-
processId: selectedProcess.processId,
|
|
96
|
-
data: data,
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
return (React.createElement(Container, { fluid: true, className: "px-0 h-100" },
|
|
101
|
-
React.createElement(Row, { className: "g-0", style: { height: "calc(100vh - 56px)" } },
|
|
102
|
-
React.createElement(Col, { sm: 2, className: "border-end", style: {
|
|
103
|
-
height: "100%",
|
|
104
|
-
overflow: "auto",
|
|
105
|
-
backgroundColor: "#f8f9fa",
|
|
106
|
-
} },
|
|
107
|
-
React.createElement("div", { className: "p-1" },
|
|
108
|
-
[...processes].reverse().map((process) => (React.createElement("div", { key: process.processId, className: `p-2 mb-1 rounded ${(selectedProcess === null || selectedProcess === void 0 ? void 0 : selectedProcess.processId) === process.processId
|
|
109
|
-
? "bg-primary text-white"
|
|
110
|
-
: "bg-white border"}`, style: { cursor: "pointer" }, onClick: () => handleSelectProcess(process), title: process.command },
|
|
111
|
-
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
112
|
-
React.createElement("div", { className: "flex-grow-1", style: { minWidth: 0 } },
|
|
113
|
-
React.createElement("div", { className: "fw-bold text-truncate small" }, process.command.split(" ")[0]),
|
|
114
|
-
React.createElement("div", { className: `text-truncate ${(selectedProcess === null || selectedProcess === void 0 ? void 0 : selectedProcess.processId) === process.processId
|
|
115
|
-
? "text-white-50"
|
|
116
|
-
: "text-muted"}`, style: { fontSize: "0.7rem" } },
|
|
117
|
-
"PID: ",
|
|
118
|
-
process.pid || "N/A",
|
|
119
|
-
" |",
|
|
120
|
-
" ",
|
|
121
|
-
new Date(process.timestamp).toLocaleTimeString())),
|
|
122
|
-
React.createElement("div", { className: "ms-2" }, getStatusBadge(process))),
|
|
123
|
-
process.error && (React.createElement("div", { className: `mt-1 ${(selectedProcess === null || selectedProcess === void 0 ? void 0 : selectedProcess.processId) === process.processId
|
|
124
|
-
? "text-warning"
|
|
125
|
-
: "text-danger"}`, style: { fontSize: "0.7rem" } },
|
|
126
|
-
React.createElement("div", { className: "text-truncate" },
|
|
127
|
-
"Error: ",
|
|
128
|
-
process.error)))))),
|
|
129
|
-
processes.length === 0 && !loading && (React.createElement("div", { className: "p-2 text-center text-muted small" }, "No active processes")),
|
|
130
|
-
loading && processes.length === 0 && (React.createElement("div", { className: "p-2 text-center small" },
|
|
131
|
-
React.createElement("div", { className: "spinner-border spinner-border-sm", role: "status" },
|
|
132
|
-
React.createElement("span", { className: "visually-hidden" }, "Loading...")))))),
|
|
133
|
-
React.createElement(Col, { sm: 5, className: "border-end p-3 d-flex flex-column", style: { height: "100%", overflow: "hidden" } }, selectedProcess ? (React.createElement("div", { className: "flex-grow-1 d-flex flex-column" },
|
|
134
|
-
React.createElement("div", { className: "d-flex align-items-center gap-2 mb-3 flex-wrap" },
|
|
135
|
-
React.createElement("div", null, getStatusBadge(selectedProcess)),
|
|
136
|
-
React.createElement("div", { className: "text-muted" }, selectedProcess.pid || "N/A"),
|
|
137
|
-
React.createElement("div", { className: "text-muted" }, new Date(selectedProcess.timestamp).toLocaleString()),
|
|
138
|
-
selectedProcess.status === "running" && onKillProcess && (React.createElement(Button, { variant: "danger", size: "sm", onClick: () => onKillProcess(selectedProcess.processId), className: "flex-grow-0 ms-auto" }, "\u23F9\uFE0F Stop")),
|
|
139
|
-
selectedProcess.exitCode !== undefined && (React.createElement("div", { className: "text-muted" }, selectedProcess.exitCode))),
|
|
140
|
-
selectedProcess.error && (React.createElement(Alert, { variant: "danger", className: "py-2 mb-3" }, selectedProcess.error)),
|
|
141
|
-
React.createElement("div", null,
|
|
142
|
-
React.createElement("div", { className: "mb-1 small text-muted" }, "Command:"),
|
|
143
|
-
React.createElement("div", { className: "bg-dark text-light p-2 rounded", style: {
|
|
144
|
-
fontFamily: 'Monaco, Menlo, "Ubuntu Mono", monospace',
|
|
145
|
-
fontSize: "14px",
|
|
146
|
-
lineHeight: "1.4",
|
|
147
|
-
overflow: "auto",
|
|
148
|
-
whiteSpace: "pre-wrap",
|
|
149
|
-
wordBreak: "break-word",
|
|
150
|
-
maxHeight: "200px" // Prevent it from expanding too much
|
|
151
|
-
} }, selectedProcess.command)))) : (React.createElement("div", { className: "text-center text-muted mt-5" },
|
|
152
|
-
React.createElement("i", null, "Select a process to view details")))),
|
|
153
|
-
React.createElement(Col, { sm: 5, className: "p-3 d-flex flex-column", style: { height: "100%", overflow: "hidden" } }, selectedProcess ? (React.createElement(React.Fragment, null,
|
|
154
|
-
React.createElement("div", { className: "flex-grow-1 d-flex flex-column", style: { minHeight: 0 } },
|
|
155
|
-
React.createElement("div", { ref: logsContainerRef, className: "bg-dark text-light flex-grow-1", style: {
|
|
156
|
-
overflowY: "auto",
|
|
157
|
-
fontFamily: 'Monaco, Menlo, "Ubuntu Mono", monospace',
|
|
158
|
-
fontSize: "14px",
|
|
159
|
-
lineHeight: "1.4",
|
|
160
|
-
padding: "0.5rem"
|
|
161
|
-
}, onScroll: handleLogsScroll },
|
|
162
|
-
processLogs.length > 0 ? (React.createElement("pre", { className: "mb-0", style: {
|
|
163
|
-
whiteSpace: "pre-wrap",
|
|
164
|
-
wordBreak: "break-word",
|
|
165
|
-
backgroundColor: "transparent",
|
|
166
|
-
border: "none",
|
|
167
|
-
color: "inherit",
|
|
168
|
-
} }, processLogs.join(""))) : (React.createElement("div", { className: "text-muted text-center py-4" },
|
|
169
|
-
React.createElement("i", null, "No output yet"))),
|
|
170
|
-
!autoScroll && (React.createElement("div", { className: "position-sticky bottom-0 d-flex justify-content-center mb-2" },
|
|
171
|
-
React.createElement(Button, { variant: "primary", size: "sm", onClick: () => {
|
|
172
|
-
setAutoScroll(true);
|
|
173
|
-
if (logsContainerRef.current) {
|
|
174
|
-
logsContainerRef.current.scrollTop =
|
|
175
|
-
logsContainerRef.current.scrollHeight;
|
|
176
|
-
}
|
|
177
|
-
} }, "Scroll to Bottom")))),
|
|
178
|
-
selectedProcess.status === "running" && (React.createElement("div", { className: "border-top bg-white p-2 mt-2", style: { flexShrink: 0 } },
|
|
179
|
-
React.createElement("div", { className: "input-group" },
|
|
180
|
-
React.createElement("input", { type: "text", className: "form-control", placeholder: "Type input and press Enter...", onKeyPress: (e) => {
|
|
181
|
-
if (e.key === "Enter") {
|
|
182
|
-
const target = e.target;
|
|
183
|
-
const inputValue = target.value;
|
|
184
|
-
if (inputValue.trim()) {
|
|
185
|
-
handleInput(inputValue + "\n");
|
|
186
|
-
target.value = "";
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}, autoFocus: true }),
|
|
190
|
-
React.createElement("button", { className: "btn btn-primary", type: "button", onClick: () => {
|
|
191
|
-
const input = document.querySelector("input");
|
|
192
|
-
const inputValue = input.value;
|
|
193
|
-
if (inputValue.trim()) {
|
|
194
|
-
handleInput(inputValue + "\n");
|
|
195
|
-
input.value = "";
|
|
196
|
-
}
|
|
197
|
-
} }, "Send"))))))) : (React.createElement("div", { className: "text-center text-muted mt-5" },
|
|
198
|
-
React.createElement("i", null, "Terminal will appear here when a process is selected")))))));
|
|
199
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Container, Alert, Badge, Nav, Col, Row } from 'react-bootstrap';
|
|
4
|
-
import { TestTable } from './TestTable';
|
|
5
|
-
import { BuildLogViewer } from './BuildLogViewer';
|
|
6
|
-
import { NavBar } from './NavBar';
|
|
7
|
-
import "./../../App.scss";
|
|
8
|
-
export const ProjectPageView = ({ summary, nodeLogs, webLogs, pureLogs, config, loading, error, projectName, activeTab, setActiveTab }) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f;
|
|
10
|
-
if (loading)
|
|
11
|
-
return React.createElement("div", null, "Loading project data...");
|
|
12
|
-
if (error)
|
|
13
|
-
return React.createElement(Alert, { variant: "danger" },
|
|
14
|
-
"Error: ",
|
|
15
|
-
error);
|
|
16
|
-
if (!summary)
|
|
17
|
-
return React.createElement(Alert, { variant: "warning" }, "No data found for project");
|
|
18
|
-
const testStatuses = Object.entries(summary).map(([testName, testData]) => {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
const runTime = ((_b = (_a = config.tests) === null || _a === void 0 ? void 0 : _a.find((t) => t[0] === testName)) === null || _b === void 0 ? void 0 : _b[1]) || 'node';
|
|
21
|
-
return {
|
|
22
|
-
testName,
|
|
23
|
-
testsExist: testData.testsExist !== false,
|
|
24
|
-
runTimeErrors: Number(testData.runTimeErrors) || 0,
|
|
25
|
-
typeErrors: Number(testData.typeErrors) || 0,
|
|
26
|
-
staticErrors: Number(testData.staticErrors) || 0,
|
|
27
|
-
runTimeTests: Number(testData.runTimeTests) || 0,
|
|
28
|
-
runTime
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
return (React.createElement(Container, { fluid: true },
|
|
32
|
-
React.createElement(NavBar, { title: projectName, backLink: "/" }),
|
|
33
|
-
React.createElement(Row, { className: "g-0" },
|
|
34
|
-
React.createElement(Col, { sm: 3, className: "border-end" },
|
|
35
|
-
React.createElement(Nav, { variant: "pills", className: "flex-column" },
|
|
36
|
-
React.createElement(Nav.Item, null,
|
|
37
|
-
React.createElement(Nav.Link, { active: activeTab === 'tests', onClick: () => setActiveTab('tests'), className: "d-flex flex-column align-items-start" },
|
|
38
|
-
React.createElement("div", { className: "d-flex justify-content-between w-100" },
|
|
39
|
-
React.createElement("span", null, "Tests"),
|
|
40
|
-
testStatuses.some(t => t.runTimeErrors > 0) ? (React.createElement(Badge, { bg: "danger" }, "\u274C")) : testStatuses.some(t => t.typeErrors > 0 || t.staticErrors > 0) ? (React.createElement(Badge, { bg: "warning", text: "dark" }, "\u26A0\uFE0F")) : (React.createElement(Badge, { bg: "success" }, "\u2713"))))),
|
|
41
|
-
React.createElement(Nav.Item, null,
|
|
42
|
-
React.createElement(Nav.Link, { active: activeTab === 'node', onClick: () => setActiveTab('node'), className: "d-flex justify-content-between align-items-center" },
|
|
43
|
-
"Node build logs",
|
|
44
|
-
((_a = nodeLogs === null || nodeLogs === void 0 ? void 0 : nodeLogs.errors) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement(Badge, { bg: "danger" },
|
|
45
|
-
"\u274C ",
|
|
46
|
-
nodeLogs.errors.length)) : ((_b = nodeLogs === null || nodeLogs === void 0 ? void 0 : nodeLogs.warnings) === null || _b === void 0 ? void 0 : _b.length) ? (React.createElement(Badge, { bg: "warning", text: "dark" }, "\u26A0\uFE0F")) : null)),
|
|
47
|
-
React.createElement(Nav.Item, null,
|
|
48
|
-
React.createElement(Nav.Link, { active: activeTab === 'web', onClick: () => setActiveTab('web'), className: "d-flex justify-content-between align-items-center" },
|
|
49
|
-
"Web build logs",
|
|
50
|
-
((_c = webLogs === null || webLogs === void 0 ? void 0 : webLogs.errors) === null || _c === void 0 ? void 0 : _c.length) ? (React.createElement(Badge, { bg: "danger" },
|
|
51
|
-
"\u274C ",
|
|
52
|
-
webLogs.errors.length)) : ((_d = webLogs === null || webLogs === void 0 ? void 0 : webLogs.warnings) === null || _d === void 0 ? void 0 : _d.length) ? (React.createElement(Badge, { bg: "warning", text: "dark" }, "\u26A0\uFE0F")) : null)),
|
|
53
|
-
React.createElement(Nav.Item, null,
|
|
54
|
-
React.createElement(Nav.Link, { active: activeTab === 'pure', onClick: () => setActiveTab('pure'), className: "d-flex justify-content-between align-items-center" },
|
|
55
|
-
"Pure build logs",
|
|
56
|
-
((_e = pureLogs === null || pureLogs === void 0 ? void 0 : pureLogs.errors) === null || _e === void 0 ? void 0 : _e.length) ? (React.createElement(Badge, { bg: "danger" },
|
|
57
|
-
"\u274C ",
|
|
58
|
-
pureLogs.errors.length)) : ((_f = pureLogs === null || pureLogs === void 0 ? void 0 : pureLogs.warnings) === null || _f === void 0 ? void 0 : _f.length) ? (React.createElement(Badge, { bg: "warning", text: "dark" }, "\u26A0\uFE0F")) : null)))),
|
|
59
|
-
React.createElement(Col, { sm: 9 },
|
|
60
|
-
React.createElement("div", { className: "p-3" }, activeTab === 'tests' ? (React.createElement(TestTable, { testStatuses: testStatuses, projectName: projectName })) : activeTab === 'node' ? (React.createElement(BuildLogViewer, { logs: nodeLogs, runtime: "Node" })) : activeTab === 'web' ? (React.createElement(BuildLogViewer, { logs: webLogs, runtime: "Web" })) : activeTab === 'pure' ? (React.createElement(BuildLogViewer, { logs: pureLogs, runtime: "Pure" })) : null)))));
|
|
61
|
-
};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { assert } from "chai";
|
|
2
|
-
export const implementation = {
|
|
3
|
-
suites: {
|
|
4
|
-
Default: "Project Page View Tests",
|
|
5
|
-
},
|
|
6
|
-
givens: {
|
|
7
|
-
Default: () => {
|
|
8
|
-
// Create a container to mount the component
|
|
9
|
-
const container = document.createElement('div');
|
|
10
|
-
document.body.appendChild(container);
|
|
11
|
-
return {
|
|
12
|
-
summary: {
|
|
13
|
-
"test-suite-1": {
|
|
14
|
-
testsExist: true,
|
|
15
|
-
runTimeErrors: 0,
|
|
16
|
-
typeErrors: 2,
|
|
17
|
-
staticErrors: 1
|
|
18
|
-
},
|
|
19
|
-
"test-suite-2": {
|
|
20
|
-
testsExist: true,
|
|
21
|
-
runTimeErrors: 1,
|
|
22
|
-
typeErrors: 0,
|
|
23
|
-
staticErrors: 0
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
nodeLogs: {
|
|
27
|
-
errors: [],
|
|
28
|
-
warnings: [
|
|
29
|
-
{
|
|
30
|
-
text: "Unused variable",
|
|
31
|
-
location: { file: "src/file1.ts", line: 10 },
|
|
32
|
-
pluginName: "typescript"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
metafile: {
|
|
36
|
-
inputs: {
|
|
37
|
-
"src/file1.ts": { bytes: 1024 },
|
|
38
|
-
"src/file2.ts": { bytes: 2048 }
|
|
39
|
-
},
|
|
40
|
-
outputs: {
|
|
41
|
-
"dist/file1.js": { bytes: 1536, entryPoint: true },
|
|
42
|
-
"dist/file2.js": { bytes: 2560 }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
webLogs: {
|
|
47
|
-
errors: [],
|
|
48
|
-
warnings: [],
|
|
49
|
-
metafile: {
|
|
50
|
-
inputs: {
|
|
51
|
-
"src/file1.ts": { bytes: 1024 },
|
|
52
|
-
"src/file2.ts": { bytes: 2048 }
|
|
53
|
-
},
|
|
54
|
-
outputs: {
|
|
55
|
-
"dist/file1.js": { bytes: 1536, entryPoint: true },
|
|
56
|
-
"dist/file2.js": { bytes: 2560 }
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
pureLogs: {
|
|
61
|
-
errors: [
|
|
62
|
-
{
|
|
63
|
-
text: "Syntax error",
|
|
64
|
-
location: { file: "src/file3.ts", line: 5 },
|
|
65
|
-
pluginName: "typescript"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
warnings: [],
|
|
69
|
-
metafile: {
|
|
70
|
-
inputs: {
|
|
71
|
-
"src/file3.ts": { bytes: 512 },
|
|
72
|
-
"src/file4.ts": { bytes: 768 }
|
|
73
|
-
},
|
|
74
|
-
outputs: {
|
|
75
|
-
"dist/file3.js": { bytes: 1024, entryPoint: true },
|
|
76
|
-
"dist/file4.js": { bytes: 1280 }
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
config: {
|
|
81
|
-
tests: [
|
|
82
|
-
["test-suite-1", "node"],
|
|
83
|
-
["test-suite-2", "web"]
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
loading: false,
|
|
87
|
-
error: null,
|
|
88
|
-
projectName: "test-project",
|
|
89
|
-
activeTab: "tests",
|
|
90
|
-
setActiveTab: () => { },
|
|
91
|
-
route: "tests",
|
|
92
|
-
setRoute: () => { },
|
|
93
|
-
navigate: () => { },
|
|
94
|
-
// Add the required properties for ISelection
|
|
95
|
-
htmlElement: container,
|
|
96
|
-
reactElement: null,
|
|
97
|
-
domRoot: null
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
WithError: () => {
|
|
101
|
-
const container = document.createElement('div');
|
|
102
|
-
document.body.appendChild(container);
|
|
103
|
-
return {
|
|
104
|
-
summary: null,
|
|
105
|
-
nodeLogs: null,
|
|
106
|
-
webLogs: null,
|
|
107
|
-
pureLogs: null,
|
|
108
|
-
config: { tests: [] },
|
|
109
|
-
loading: false,
|
|
110
|
-
error: "Test error message",
|
|
111
|
-
projectName: "test-project",
|
|
112
|
-
activeTab: "tests",
|
|
113
|
-
setActiveTab: () => { },
|
|
114
|
-
route: "tests",
|
|
115
|
-
setRoute: () => { },
|
|
116
|
-
navigate: () => { },
|
|
117
|
-
// Add the required properties for ISelection
|
|
118
|
-
htmlElement: container,
|
|
119
|
-
reactElement: null,
|
|
120
|
-
domRoot: null
|
|
121
|
-
};
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
whens: {},
|
|
125
|
-
thens: {
|
|
126
|
-
hasContainerFluid: () => (state) => {
|
|
127
|
-
const htmlElement = state.htmlElement;
|
|
128
|
-
const container = htmlElement.querySelector('.container-fluid');
|
|
129
|
-
assert.exists(container, 'Should have container-fluid div');
|
|
130
|
-
return state;
|
|
131
|
-
},
|
|
132
|
-
hasNavBar: () => (state) => {
|
|
133
|
-
const htmlElement = state.htmlElement;
|
|
134
|
-
const navBar = htmlElement.querySelector('nav.navbar');
|
|
135
|
-
assert.exists(navBar, 'Should render NavBar component');
|
|
136
|
-
return state;
|
|
137
|
-
},
|
|
138
|
-
hasNavBarTitle: () => (state) => {
|
|
139
|
-
var _a;
|
|
140
|
-
const htmlElement = state.htmlElement;
|
|
141
|
-
const navBarTitle = (_a = htmlElement.querySelector('nav.navbar .navbar-brand')) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
142
|
-
assert.isNotEmpty(navBarTitle, 'NavBar should have title');
|
|
143
|
-
return state;
|
|
144
|
-
},
|
|
145
|
-
hasTestTable: () => (state) => {
|
|
146
|
-
const htmlElement = state.htmlElement;
|
|
147
|
-
const testTable = htmlElement.querySelector('table');
|
|
148
|
-
assert.exists(testTable, 'Should render test table');
|
|
149
|
-
return state;
|
|
150
|
-
},
|
|
151
|
-
rendersTestSuite1: () => (state) => {
|
|
152
|
-
const htmlElement = state.htmlElement;
|
|
153
|
-
const testTable = htmlElement.querySelector('table');
|
|
154
|
-
const testNames = Array.from(testTable.querySelectorAll('tbody tr td:first-child'))
|
|
155
|
-
.map(el => el.textContent);
|
|
156
|
-
assert.include(testNames, 'test-suite-1', 'Should render test-suite-1');
|
|
157
|
-
return state;
|
|
158
|
-
},
|
|
159
|
-
rendersTestSuite2: () => (state) => {
|
|
160
|
-
const htmlElement = state.htmlElement;
|
|
161
|
-
const testTable = htmlElement.querySelector('table');
|
|
162
|
-
const testNames = Array.from(testTable.querySelectorAll('tbody tr td:first-child'))
|
|
163
|
-
.map(el => el.textContent);
|
|
164
|
-
assert.include(testNames, 'test-suite-2', 'Should render test-suite-2');
|
|
165
|
-
return state;
|
|
166
|
-
},
|
|
167
|
-
unhappyPath: () => (state) => {
|
|
168
|
-
const htmlElement = state.htmlElement;
|
|
169
|
-
const errorAlert = htmlElement.querySelector('.alert-danger');
|
|
170
|
-
assert.exists(errorAlert, 'Should show error alert');
|
|
171
|
-
const errorText = errorAlert === null || errorAlert === void 0 ? void 0 : errorAlert.textContent;
|
|
172
|
-
assert.include(errorText, 'Test error message', 'Should display error message');
|
|
173
|
-
return state;
|
|
174
|
-
},
|
|
175
|
-
takeScreenshot: (name) => async (state, pm) => {
|
|
176
|
-
const p = await pm.page();
|
|
177
|
-
await pm.customScreenShot({ path: name }, p);
|
|
178
|
-
return state;
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Testeranto from "testeranto-react/src/react-dom/component/web";
|
|
2
|
-
import { MemoryRouter } from "react-router-dom";
|
|
3
|
-
import { implementation } from "./implementation";
|
|
4
|
-
import { specification } from "./specification";
|
|
5
|
-
import { ProjectPageView } from "../ProjectPageView";
|
|
6
|
-
import React from "react";
|
|
7
|
-
const WrappedProjectPageView = (props) => (React.createElement(MemoryRouter, null,
|
|
8
|
-
React.createElement(ProjectPageView, Object.assign({}, props), " ")));
|
|
9
|
-
export default Testeranto(implementation, specification, WrappedProjectPageView);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export const specification = (Suite, Given, When, Then) => {
|
|
2
|
-
return [
|
|
3
|
-
Suite.Default("ProjectPageView Component Tests", {
|
|
4
|
-
basicRender: Given.Default([
|
|
5
|
-
"ProjectPageView should render",
|
|
6
|
-
"It should contain a container-fluid div",
|
|
7
|
-
"It should render the NavBar component",
|
|
8
|
-
"NavBar should display project title",
|
|
9
|
-
"It should render test results table",
|
|
10
|
-
"It should display test-suite-1 results",
|
|
11
|
-
"It should display test-suite-2 results",
|
|
12
|
-
], [], [
|
|
13
|
-
Then.hasContainerFluid(),
|
|
14
|
-
Then.hasNavBar(),
|
|
15
|
-
Then.hasNavBarTitle(),
|
|
16
|
-
Then.hasTestTable(),
|
|
17
|
-
Then.rendersTestSuite1(),
|
|
18
|
-
Then.rendersTestSuite2(),
|
|
19
|
-
Then.takeScreenshot("happy-state.png"),
|
|
20
|
-
]),
|
|
21
|
-
errorHandling: Given.WithError([
|
|
22
|
-
"ProjectPageView should handle errors",
|
|
23
|
-
"It should display error messages when present",
|
|
24
|
-
"It should capture screenshots of error state",
|
|
25
|
-
], [], [Then.unhappyPath(), Then.takeScreenshot("error-state.png")]),
|
|
26
|
-
}),
|
|
27
|
-
];
|
|
28
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Table, Alert } from "react-bootstrap";
|
|
3
|
-
export const ProjectsPageView = ({ projects, summaries, configs, loading, error, navigate, }) => {
|
|
4
|
-
const getStatusIcon = (status) => {
|
|
5
|
-
switch (status) {
|
|
6
|
-
case "success":
|
|
7
|
-
return "✅";
|
|
8
|
-
case "failed":
|
|
9
|
-
return "❌";
|
|
10
|
-
case "warning":
|
|
11
|
-
return "⚠️";
|
|
12
|
-
default:
|
|
13
|
-
return "❓";
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
if (loading)
|
|
17
|
-
return React.createElement("div", null, "Loading projects...");
|
|
18
|
-
if (error)
|
|
19
|
-
return React.createElement(Alert, { variant: "danger" },
|
|
20
|
-
"Error: ",
|
|
21
|
-
error);
|
|
22
|
-
return (React.createElement("div", { className: "" },
|
|
23
|
-
React.createElement(Table, { striped: true, bordered: true, hover: true, responsive: true },
|
|
24
|
-
React.createElement("thead", null,
|
|
25
|
-
React.createElement("tr", null,
|
|
26
|
-
React.createElement("th", null, "Project"),
|
|
27
|
-
React.createElement("th", null, "Tests"),
|
|
28
|
-
React.createElement("th", null, "Node"),
|
|
29
|
-
React.createElement("th", null, "Web"),
|
|
30
|
-
React.createElement("th", null, "Pure"))),
|
|
31
|
-
React.createElement("tbody", null, projects.map((project) => (React.createElement("tr", { key: project.name },
|
|
32
|
-
React.createElement("td", null,
|
|
33
|
-
React.createElement("a", { href: "#", onClick: (e) => {
|
|
34
|
-
e.preventDefault();
|
|
35
|
-
navigate(`/projects/${project.name}`);
|
|
36
|
-
} }, project.name)),
|
|
37
|
-
React.createElement("td", null,
|
|
38
|
-
React.createElement("div", null, summaries[project.name] ? (Object.keys(summaries[project.name]).map((testName) => {
|
|
39
|
-
var _a, _b, _c;
|
|
40
|
-
const testData = summaries[project.name][testName];
|
|
41
|
-
const runTime = ((_c = (_b = (_a = configs[project.name]) === null || _a === void 0 ? void 0 : _a.tests) === null || _b === void 0 ? void 0 : _b.find((t) => t[0] === testName)) === null || _c === void 0 ? void 0 : _c[1]) || "node";
|
|
42
|
-
const hasRuntimeErrors = testData.runTimeErrors > 0;
|
|
43
|
-
const hasStaticErrors = testData.typeErrors > 0 || testData.staticErrors > 0;
|
|
44
|
-
return (React.createElement("div", { key: testName },
|
|
45
|
-
React.createElement("a", { href: `#/projects/${project.name}/tests/${encodeURIComponent(testName)}/${runTime}` },
|
|
46
|
-
hasRuntimeErrors
|
|
47
|
-
? "❌ "
|
|
48
|
-
: hasStaticErrors
|
|
49
|
-
? "⚠️ "
|
|
50
|
-
: "",
|
|
51
|
-
testName.split("/").pop() || testName)));
|
|
52
|
-
})) : (React.createElement("div", null, "Loading tests...")))),
|
|
53
|
-
React.createElement("td", null,
|
|
54
|
-
React.createElement("a", { href: `#/projects/${project.name}#node` },
|
|
55
|
-
getStatusIcon(project.nodeStatus),
|
|
56
|
-
" Node build logs")),
|
|
57
|
-
React.createElement("td", null,
|
|
58
|
-
React.createElement("a", { href: `#/projects/${project.name}#web` },
|
|
59
|
-
getStatusIcon(project.webStatus),
|
|
60
|
-
" Web build logs")),
|
|
61
|
-
React.createElement("td", null,
|
|
62
|
-
React.createElement("a", { href: `#/projects/${project.name}#pure` },
|
|
63
|
-
getStatusIcon(project.pureStatus),
|
|
64
|
-
" Pure build logs")))))))));
|
|
65
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { Form, Container, Row, Col, Card, Button } from "react-bootstrap";
|
|
3
|
-
import { useTutorialMode, useAuth } from "../../App";
|
|
4
|
-
import { GitHubLoginButton } from "./GitHubLoginButton";
|
|
5
|
-
import { githubAuthService } from "../../services/GitHubAuthService";
|
|
6
|
-
export const Settings = () => {
|
|
7
|
-
const [theme, setTheme] = useState("auto");
|
|
8
|
-
const { tutorialMode, setTutorialMode } = useTutorialMode();
|
|
9
|
-
const { isAuthenticated, logout } = useAuth();
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
// Load saved theme from localStorage
|
|
12
|
-
const savedTheme = localStorage.getItem("theme");
|
|
13
|
-
if (savedTheme) {
|
|
14
|
-
setTheme(savedTheme);
|
|
15
|
-
}
|
|
16
|
-
}, []);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
// Apply theme when it changes
|
|
19
|
-
applyTheme(theme);
|
|
20
|
-
// Save to localStorage
|
|
21
|
-
localStorage.setItem("theme", theme);
|
|
22
|
-
}, [theme]);
|
|
23
|
-
const applyTheme = (selectedTheme) => {
|
|
24
|
-
const root = document.documentElement;
|
|
25
|
-
if (selectedTheme === "auto") {
|
|
26
|
-
// Use system preference
|
|
27
|
-
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
28
|
-
root.setAttribute("data-bs-theme", "dark");
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
root.setAttribute("data-bs-theme", "light");
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
root.setAttribute("data-bs-theme", selectedTheme);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const handleThemeChange = (event) => {
|
|
39
|
-
setTheme(event.target.value);
|
|
40
|
-
};
|
|
41
|
-
const handleTutorialModeChange = () => {
|
|
42
|
-
const newTutorialMode = !tutorialMode;
|
|
43
|
-
setTutorialMode(newTutorialMode);
|
|
44
|
-
// Save to localStorage
|
|
45
|
-
localStorage.setItem("tutorialMode", newTutorialMode.toString());
|
|
46
|
-
};
|
|
47
|
-
return (React.createElement(Container, null,
|
|
48
|
-
React.createElement(Row, null,
|
|
49
|
-
React.createElement(Col, { md: 8, lg: 6 },
|
|
50
|
-
React.createElement(Card, null,
|
|
51
|
-
React.createElement(Card.Header, null,
|
|
52
|
-
React.createElement("h5", { className: "mb-0" }, "Appearance")),
|
|
53
|
-
React.createElement(Card.Body, null,
|
|
54
|
-
React.createElement(Form, null,
|
|
55
|
-
React.createElement(Form.Group, { className: "mb-4" },
|
|
56
|
-
React.createElement("div", null,
|
|
57
|
-
React.createElement(Form.Check, { type: "radio", id: "theme-light", name: "theme", value: "light", label: "Light mode", checked: theme === "light", onChange: handleThemeChange }),
|
|
58
|
-
React.createElement(Form.Check, { type: "radio", id: "theme-dark", name: "theme", value: "dark", label: "Dark mode", checked: theme === "dark", onChange: handleThemeChange }),
|
|
59
|
-
React.createElement(Form.Check, { type: "radio", id: "theme-auto", name: "theme", value: "auto", label: "Auto mode. Use system setting", checked: theme === "auto", onChange: handleThemeChange }))),
|
|
60
|
-
React.createElement(Form.Group, { className: "mb-4" },
|
|
61
|
-
React.createElement(Form.Check, { type: "switch", id: "tutorial-mode", label: tutorialMode ? "Tutorial Mode: ON" : "Tutorial Mode: OFF", checked: tutorialMode, onChange: handleTutorialModeChange }),
|
|
62
|
-
React.createElement(Form.Text, { className: "text-muted" }, "When enabled, helpful tooltips will appear throughout the app to guide you."))))))),
|
|
63
|
-
React.createElement(Row, { className: "mt-4" },
|
|
64
|
-
React.createElement(Col, { md: 8, lg: 6 },
|
|
65
|
-
React.createElement(Card, null,
|
|
66
|
-
React.createElement(Card.Header, null,
|
|
67
|
-
React.createElement("h5", { className: "mb-0" }, "GitHub Integration")),
|
|
68
|
-
React.createElement(Card.Body, null, githubAuthService.isConfigured() ? (isAuthenticated ? (React.createElement("div", null,
|
|
69
|
-
React.createElement("p", null, "Connected to GitHub"),
|
|
70
|
-
React.createElement("div", { className: "d-grid gap-2" },
|
|
71
|
-
React.createElement(Button, { variant: "danger", onClick: logout }, "Sign Out from GitHub")))) : (React.createElement("div", null,
|
|
72
|
-
React.createElement("p", null, "Connect your GitHub account to enable Git operations:"),
|
|
73
|
-
React.createElement(GitHubLoginButton, null)))) : (React.createElement("div", null,
|
|
74
|
-
React.createElement("p", { className: "text-danger" }, "GitHub integration is not configured."),
|
|
75
|
-
React.createElement("p", null, "To enable GitHub authentication:"),
|
|
76
|
-
React.createElement("ol", { className: "small" },
|
|
77
|
-
React.createElement("li", null, "Create a GitHub OAuth App at https://github.com/settings/developers"),
|
|
78
|
-
React.createElement("li", null,
|
|
79
|
-
"Set Authorization callback URL to: ",
|
|
80
|
-
window.location.origin,
|
|
81
|
-
"/auth/github/callback"),
|
|
82
|
-
React.createElement("li", null, "Update the clientId in testeranto.config.ts"),
|
|
83
|
-
React.createElement("li", null, "Restart the development server"))))))))));
|
|
84
|
-
};
|