Skip to content

Conversation

@emir-karabeg
Copy link
Collaborator

Summary

Updates the "Run from block" button in the action bar to simply "Run". When the button is disabled due to unsatisfied dependencies, the hover tooltip now displays "Disabled: Run Blocks Before" for improved clarity.

Fixes #(issue) - If an issue exists, add it here.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: UI Text/Tooltip Change

Testing

The changes were verified by running lint and type checks. Visual inspection of the action bar button and its hover states (enabled and disabled) is recommended.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos


Open in Cursor Open in Web

- Changed 'Run from block' to 'Run' in tooltip
- Updated disabled state hover to show 'Disabled: Run Blocks Before'

Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 4, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 4, 2026 4:21am

Request Review

@waleedlatif1 waleedlatif1 marked this pull request as ready for review February 4, 2026 04:15
@waleedlatif1 waleedlatif1 changed the title Run button label and hover improvement(action-bar): run button label and hover Feb 4, 2026
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 4, 2026

Greptile Overview

Greptile Summary

Updated the "Run from block" button label in the action bar to simply "Run" and improved the disabled state tooltip to "Disabled: Run Blocks Before" for better clarity. The changes maintain consistent messaging between the action bar and context menu logic.

Issue Found:

  • block-menu.tsx:276 still contains "Run from block" text and was not updated in this PR, creating an inconsistency in the UI

Confidence Score: 4/5

  • Safe to merge after addressing the inconsistency in block-menu.tsx
  • Simple text changes with no logic modifications, but missing update in block-menu.tsx creates UI inconsistency
  • block-menu.tsx needs updating to maintain consistency across the UI

Important Files Changed

Filename Overview
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/action-bar.tsx Updated Run button label and tooltip text from "Run from block" to "Run" and improved disabled state message to "Disabled: Run Blocks Before"
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx Updated context menu reason text to match new tooltip message "Disabled: Run Blocks Before"

Sequence Diagram

sequenceDiagram
    participant User
    participant ActionBar
    participant Tooltip
    participant WorkflowStore
    participant ExecutionStore

    User->>ActionBar: Hover over Run button
    ActionBar->>WorkflowStore: Check block state (isEnabled, locked, etc)
    ActionBar->>ExecutionStore: Check execution state (isExecuting)
    ActionBar->>ActionBar: Calculate dependenciesSatisfied
    
    alt Button disabled (permissions)
        ActionBar->>Tooltip: Show "Run" with getTooltipMessage()
        Tooltip-->>User: Display "Read-only mode" or "Connection lost"
    else Execution in progress
        ActionBar->>Tooltip: Show "Execution in progress"
        Tooltip-->>User: Display message
    else Dependencies not satisfied
        ActionBar->>Tooltip: Show "Disabled: Run Blocks Before"
        Tooltip-->>User: Display message
    else Can run
        ActionBar->>Tooltip: Show "Run"
        Tooltip-->>User: Display message
    end

    User->>ActionBar: Click Run button (if enabled)
    ActionBar->>WorkflowStore: handleRunFromBlock(blockId)
    WorkflowStore->>ExecutionStore: Execute workflow from block
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@waleedlatif1
Copy link
Collaborator

@cursor review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants