Skip to content

fix: distinguish run with payload tooltip - #9564

Open
Mia Miao (miachillgood) wants to merge 2 commits into
Azure:mainfrom
miachillgood:codex/issue-8623-run-payload-tooltip
Open

fix: distinguish run with payload tooltip#9564
Mia Miao (miachillgood) wants to merge 2 commits into
Azure:mainfrom
miachillgood:codex/issue-8623-run-payload-tooltip

Conversation

@miachillgood

Copy link
Copy Markdown

Commit Type

  • feature: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit

Risk Level

  • Low: Minor changes with minimal impact
  • Medium: Changes that may affect existing functionality
  • High: Significant changes that could cause breaking changes

What & Why

Closes #8623.

The split Run button currently applies the same generic workflow tooltip to both actions. The payload action now exposes the existing "Run with payload" string as its tooltip and accessible label, while the primary action keeps the existing run tooltip.

Impact of Change

  • Users: Can distinguish the payload action before selecting it.
  • Developers: Adds a focused regression test for the payload button tooltip.
  • System: No workflow execution behavior changes.

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in:
    • vitest run src/lib/ui/FloatingRunButton/__tests__/floatingRunButton.spec.tsx (33 tests)
    • pnpm --filter @microsoft/logic-apps-designer-v2 build:lib

Contributors

Mia Miao (@miachillgood)

Screenshots/Videos

Not applicable; the change affects tooltip copy and accessibility metadata.

Copilot AI balanced review requested due to automatic review settings August 23, 2026 07:09
@github-actions

Copy link
Copy Markdown
Contributor

🔒 AI Validation Pending

This PR is from an external contributor. AI validation will be performed after manual review.

Maintainers: Add the external-approved label to enable AI validation.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Distinguishes the split Run button’s payload action through dedicated tooltip and accessibility text.

Changes:

  • Dynamically selects the tooltip based on the active split-button action.
  • Adds payload-action labeling and regression coverage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
FloatingRunButton/index.tsx Adds payload-specific tooltip behavior.
floatingRunButton.spec.tsx Tests payload-action labeling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +327 to +333
it('should identify the payload action with a distinct tooltip', () => {
(LogicAppsShared.canRunBeInvokedWithPayload as Mock).mockReturnValue(true);

renderWithProviders(defaultProps);

const payloadButton = screen.getByRole('button', { name: 'Run with payload' });
expect(payloadButton).toHaveAttribute('title', 'Run with payload');

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Addressed in e7d91ef. The regression test now focuses the payload action and asserts the rendered Fluent tooltip content.

menuButton={{
icon: runIsLoading && runHasPayload ? <Spinner size="tiny" /> : <RunWithPayloadIcon />,
'aria-label': strings.RUN_PAYLOAD_TOOLTIP,
title: strings.RUN_PAYLOAD_TOOLTIP,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Addressed in e7d91ef. Removed the native title attribute and kept the Fluent tooltip plus accessible label.

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.

Tooltip on hover does not reflect Run with Payload

2 participants