Skip to content

feat: add copy cURL request option to playground copy button - #3141

Open
JivusAyrus wants to merge 2 commits into
mainfrom
suvij/cosmo-64-copy-curl-request-in-the-playground
Open

feat: add copy cURL request option to playground copy button#3141
JivusAyrus wants to merge 2 commits into
mainfrom
suvij/cosmo-64-copy-curl-request-in-the-playground

feat: validate HTTP header names and warn on invalid tokens in cURL c…

8a69d66
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Aug 6, 2026 in 0s

1.80% (target 30.00%)

View this Pull Request on Codecov

1.80% (target 30.00%)

Details

Codecov Report

❌ Patch coverage is 45.04505% with 122 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.80%. Comparing base (64eaf60) to head (8a69d66).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...tudio/src/components/playground/copy-operation.tsx 0.00% 75 Missing and 1 partial ⚠️
[...ationSlug]/[namespace]/graph/[slug]/playground.tsx](https://app.codecov.io/gh/wundergraph/cosmo/pull/3141?src=pr&el=tree&filepath=studio%2Fsrc%2Fpages%2F%5BorganizationSlug%5D%2F%5Bnamespace%5D%2Fgraph%2F%5Bslug%5D%2Fplayground.tsx&utm_medium=referral&utm_source=github&utm_content=checks&utm_campaign=pr+comments&utm_term=wundergraph#diff-c3R1ZGlvL3NyYy9wYWdlcy9bb3JnYW5pemF0aW9uU2x1Z10vW25hbWVzcGFjZV0vZ3JhcGgvW3NsdWddL3BsYXlncm91bmQudHN4) 0.00% 28 Missing ⚠️
studio/src/lib/playground-headers.ts 64.28% 15 Missing ⚠️
studio/src/lib/playground-curl.ts 96.00% 3 Missing ⚠️

❌ Your project check has failed because the head coverage (1.80%) is below the target coverage (30.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #3141       +/-   ##
==========================================
- Coverage   62.37%   1.80%   -60.58%     
==========================================
  Files         262     330       +68     
  Lines       31003   45970    +14967     
  Branches        0     516      +516     
==========================================
- Hits        19337     828    -18509     
- Misses      10158   44827    +34669     
+ Partials     1508     315     -1193     
Files with missing lines Coverage Δ
studio/src/components/playground/types.ts 100.00% <100.00%> (ø)
studio/src/lib/playground-curl.ts 96.00% <96.00%> (ø)
studio/src/lib/playground-headers.ts 64.28% <64.28%> (ø)
[...ationSlug]/[namespace]/graph/[slug]/playground.tsx](https://app.codecov.io/gh/wundergraph/cosmo/pull/3141?src=pr&el=tree&filepath=studio%2Fsrc%2Fpages%2F%5BorganizationSlug%5D%2F%5Bnamespace%5D%2Fgraph%2F%5Bslug%5D%2Fplayground.tsx&utm_medium=referral&utm_source=github&utm_content=checks&utm_campaign=pr+comments&utm_term=wundergraph#diff-c3R1ZGlvL3NyYy9wYWdlcy9bb3JnYW5pemF0aW9uU2x1Z10vW25hbWVzcGFjZV0vZ3JhcGgvW3NsdWddL3BsYXlncm91bmQudHN4) 0.00% <0.00%> (ø)
...tudio/src/components/playground/copy-operation.tsx 0.00% <0.00%> (ø)

... and 587 files with indirect coverage changes

🚀 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.