Skip to content

feat: allow to copy operations id from checks section#2474

Merged
alepane21 merged 3 commits intomainfrom
ale/eng-8436-ux-issue-with-operation-hash-copying
Jan 29, 2026
Merged

feat: allow to copy operations id from checks section#2474
alepane21 merged 3 commits intomainfrom
ale/eng-8436-ux-issue-with-operation-hash-copying

Conversation

@alepane21
Copy link
Copy Markdown
Contributor

@alepane21 alepane21 commented Jan 28, 2026

It is now possible to copy the full operation hash from the operations tabs in the checks section 🥳
AI've added the ability to copy the hash by clicking on it in the title of the accordion.

image

Summary by CodeRabbit

  • New Features
    • Operation headers now include a compact, clickable hash snippet that copies the full hash to clipboard.
    • Tooltip feedback shows "Copy" then "Copied!" briefly after copying.
    • Copy control appears in the accordion header next to the truncated operation name; expanded view keeps existing copy behavior and styling.

✏️ Tip: You can customize this high-level summary in your review settings.

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 28, 2026

Walkthrough

Adds an internal CopyableOperationHash component to studio/src/components/checks/operations.tsx that renders a short hash preview (first 4 characters), copies the full hash on click, and shows a tooltip toggling between "Copy Operation Hash" and "Copied!" with timed resets. Replaces the previous static hash/name display in accordion headers and expanded items; includes effect cleanup for pending timeouts. No exported API changes.

Changes

Cohort / File(s) Summary
Operations component
studio/src/components/checks/operations.tsx
Adds an internal CopyableOperationHash component (uses useState, useEffect, useRef) that displays the first 4 chars of a hash, copies the full hash on click, and manages a tooltip that toggles Copy Operation HashCopied! with timeouts and cleanup. Replaces static hash/name rendering in accordion headers and expanded content with a layout combining the new copy UI and truncated operation name; preserves italic styling for empty names. No exported/public signatures changed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main feature addition: enabling users to copy operation IDs from the checks section. It is concise, specific, and clearly relates to the primary change in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 28, 2026

Codecov Report

❌ Patch coverage is 0% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.50%. Comparing base (b427211) to head (105212b).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
studio/src/components/checks/operations.tsx 0.00% 67 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #2474      +/-   ##
========================================
- Coverage   1.50%   1.50%   -0.01%     
========================================
  Files        292     292              
  Lines      46690   46748      +58     
  Branches     431     431              
========================================
  Hits         703     703              
- Misses     45704   45762      +58     
  Partials     283     283              
Files with missing lines Coverage Δ
studio/src/components/checks/operations.tsx 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alepane21 alepane21 merged commit 223d43a into main Jan 29, 2026
12 checks passed
@alepane21 alepane21 deleted the ale/eng-8436-ux-issue-with-operation-hash-copying branch January 29, 2026 11:27
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.

2 participants