Add remote troubleshoot button to v2 run view task window#2455
Draft
morgan-wowk wants to merge 1 commit into
Draft
Add remote troubleshoot button to v2 run view task window#2455morgan-wowk wants to merge 1 commit into
morgan-wowk wants to merge 1 commit into
Conversation
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
🎩 PreviewA preview build has been created at: |
456547c to
e831e99
Compare
Renders a full-width action button in the task properties panel when an external action config is injected via window.__TANGLE_EXECUTION_ACTION__. The button is gated behind status eligibility rules (immediate for FAILED/ CANCELLED/SYSTEM_ERROR, delayed 5 min for PENDING/QUEUED) and hidden on localhost. On click it opens a dialog for optional comments, POSTs a structured payload (execution_id, pipeline_run_id, pipeline_run_url, execution_url, user_email, source, additional_comments) to the configured webhook, and records the submission in localStorage to prevent duplicates.
61870fa to
dc7beae
Compare
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
CANCELLED,SYSTEM_ERROR,FAILED; visible after 5 minutes forPENDING/QUEUED(polled every 10 s, not on every render).window.__TANGLE_EXECUTION_ACTION__config is absent.runId + executionId) shows "session opened at [time]" instead of the button — prevents duplicate submissions.execution_urlfield in the payload uses existing?nodeId=<task-name>deep-link support.window.__TANGLE_EXECUTION_ACTION__injected fromoasis-frontend.Config shape (
window.__TANGLE_EXECUTION_ACTION__)Payload sent to
endpointUrl{ "workflow_internal_id": "<workflowId>", "webhook_payload": { "execution_id": "...", "user_email": "...", "pipeline_run_id": "...", "pipeline_run_url": "...", "execution_url": "https://...?nodeId=TaskName", "additional_comments": "...", "source": "tangle-ui" } }New files
src/config/executionAction.ts— config type +Windowaugmentationsrc/utils/executionActionStorage.ts— localStorage trackingsrc/components/shared/ExecutionAction/ExecutionActionButton.tsx— main button with status/timer logicsrc/components/shared/ExecutionAction/ExecutionActionDialog.tsx— modal with input/submitting/success statesModified files
src/routes/v2/pages/RunView/nodes/TaskNode/context/RunViewTaskDetails.tsx— rendersExecutionActionButtonabove the TabsTest plan
window.__TANGLE_EXECUTION_ACTION__set — button absent