From 948aa4f8fdb1ec23282c17c4a7ec589a4b9b52ab Mon Sep 17 00:00:00 2001 From: Mehdi Date: Mon, 7 Jul 2025 02:12:47 +0000 Subject: [PATCH 1/2] Update CSS --- .github/workflows/claude-test3.yml | 27 -- .vscode/settings.json | 2 +- src/components/common/CommandForm.tsx | 25 +- src/components/panels/RunnerPanel.tsx | 98 ++-- src/components/panels/WorkflowsPanel.tsx | 170 ++++--- src/components/pipeline/PipelineControls.tsx | 156 +++--- src/components/pipeline/TaskList.tsx | 25 +- src/components/views/CommandsView.tsx | 2 +- src/services/ClaudeCodeService.ts | 6 - src/services/PipelineService.ts | 2 +- src/styles/base.css | 7 +- src/styles/components.css | 84 ++-- src/styles/panels.css | 72 +-- ...ommandExecutionSessionIsolationE2E.test.ts | 313 ++++++++++++ .../e2e/ExecutionSessionIsolationE2E.test.ts | 203 ++++++++ tests/e2e/NewWorkflowButtonActionTest.test.ts | 140 ++++++ tests/e2e/NewWorkflowButtonE2E.test.ts | 366 +++++++++++++++ tests/e2e/SaveWorkflowE2E.test.ts | 444 ++++++++++++++++++ tests/e2e/SessionIsolationE2E.test.ts | 260 ++++++++++ tests/fixtures/workflows/isolated-tasks.yml | 27 ++ .../fixtures/workflows/session-continuity.yml | 29 ++ tests/unit/NewWorkflowButton.test.ts | 65 +++ tests/unit/services/CommandsService.test.ts | 2 +- 23 files changed, 2159 insertions(+), 366 deletions(-) delete mode 100644 .github/workflows/claude-test3.yml create mode 100644 tests/e2e/CommandExecutionSessionIsolationE2E.test.ts create mode 100644 tests/e2e/ExecutionSessionIsolationE2E.test.ts create mode 100644 tests/e2e/NewWorkflowButtonActionTest.test.ts create mode 100644 tests/e2e/NewWorkflowButtonE2E.test.ts create mode 100644 tests/e2e/SaveWorkflowE2E.test.ts create mode 100644 tests/e2e/SessionIsolationE2E.test.ts create mode 100644 tests/fixtures/workflows/isolated-tasks.yml create mode 100644 tests/fixtures/workflows/session-continuity.yml create mode 100644 tests/unit/NewWorkflowButton.test.ts diff --git a/.github/workflows/claude-test3.yml b/.github/workflows/claude-test3.yml deleted file mode 100644 index 3b677bd..0000000 --- a/.github/workflows/claude-test3.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: test3 -'on': - workflow_dispatch: - inputs: - description: - description: Pipeline execution - required: false - type: string -jobs: - pipeline: - name: Pipeline Execution - runs-on: ubuntu-latest - steps: - - id: task_1751746549772_mdctcbm2g - name: Task 1 - uses: anthropics/claude-pipeline-action@v1 - with: - prompt: hi - model: auto - allow_all_tools: true - - id: task_1751746550609_e0lnydxcc - name: Task 2 - uses: anthropics/claude-pipeline-action@v1 - with: - prompt: hi - model: auto - allow_all_tools: true diff --git a/.vscode/settings.json b/.vscode/settings.json index fe33ac2..8d1c75a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { "claudeRunner.defaultRootPath": "/workspace", "claudeRunner.allowAllTools": true, - "claudeRunner.defaultModel": "auto", + "claudeRunner.defaultModel": "claude-sonnet-4-20250514", "sonarlint.connectedMode.project": { "connectionId": "claude-runner", "projectKey": "claude-runner" diff --git a/src/components/common/CommandForm.tsx b/src/components/common/CommandForm.tsx index ed1d888..9354932 100644 --- a/src/components/common/CommandForm.tsx +++ b/src/components/common/CommandForm.tsx @@ -25,17 +25,20 @@ const CommandForm: React.FC = ({ }; return ( -
- onChange(e.target.value)} - onKeyPress={handleKeyPress} - disabled={disabled} - autoFocus - /> -
+
+
+ onChange(e.target.value)} + onKeyPress={handleKeyPress} + disabled={disabled} + autoFocus + /> +
+
- )} - - {isTasksRunning && !isPaused && ( - - )} - - {isPaused && pausedPipelines.length > 0 && ( - - )} - - {isTasksRunning && ( - - )} - - {isPipelineFinished && ( - - )} -
+ {!hasWorkflowLoaded && !isTasksRunning && !isPaused && ( +
Load workflow first
+ )} + + {(hasWorkflowLoaded || isTasksRunning || isPipelineFinished) && ( +
+ {!isTasksRunning && !isPaused && hasWorkflowLoaded && ( + + )} + + {isTasksRunning && !isPaused && ( + + )} + + {isTasksRunning && ( + + )} + + {isPipelineFinished && ( + + )} +
+ )} {(pausedPipelines.length > 0 || resumableWorkflows.length > 0) && (
@@ -157,7 +161,7 @@ const RunnerPanel: React.FC = ({ disabled }) => { Resume -
+ {(availablePipelines.length > 0 || + (discoveredWorkflows && discoveredWorkflows.length > 0)) && ( +
+ + +
+ )}
- - - + {!hasTasks ? ( + + ) : ( + <> + + + + + )}
- - - {showSaveDialog && ( -
-
-

Save Workflow

+ {showSaveForm && ( +
+
+

Save Workflow

+
+
setWorkflowName(e.target.value)} autoFocus /> +
+