Skip to content

fix(desktop): restore Delete/Copy log button click handlers#625

Merged
skevetter merged 1 commit into
mainfrom
big-owl
Jul 8, 2026
Merged

fix(desktop): restore Delete/Copy log button click handlers#625
skevetter merged 1 commit into
mainfrom
big-owl

Conversation

@skevetter

@skevetter skevetter commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

The Delete log button on the workspace details page did nothing when clicked. The Delete log and Copy log buttons are wrapped in a `Tooltip.Trigger` snippet that passes a `props` object containing bits-ui's own event handlers. Both buttons spread `{...props}` after their own `onclick`, so the tooltip's handler overrode the button's and the click was a no-op.

Reordered so `{...props}` is spread before `onclick`, matching the working pattern already used by the "copy output" button on the same page.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed the “Copy log” and “Delete log” actions so their click behavior works reliably from the workspace details view.
    • Improved tooltip button handling to prevent button attributes from overriding the intended action.

The Delete log and Copy log buttons in the workspace details log list
spread the Tooltip.Trigger `{...props}` after their own `onclick`, so
the tooltip's handler overrode the button's, making clicks do nothing.
Spread `{...props}` before `onclick` to match the working pattern used
elsewhere on the page.
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 5c68228
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a4e5dc43d5971000859c583

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7d921ad4-e34c-4424-8554-901aed030344

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit 5c68228
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a4e5dc467e1e500081b5e4e

@skevetter
skevetter marked this pull request as ready for review July 8, 2026 14:48
@skevetter
skevetter merged commit cb43cb3 into main Jul 8, 2026
27 checks passed
@skevetter
skevetter deleted the big-owl branch July 8, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant