Skip to content

Restore syntax highlighting#337

Merged
AndreyVMarkelov merged 2 commits into
mainfrom
codex/restore-syntax-highlighting
Jul 17, 2026
Merged

Restore syntax highlighting#337
AndreyVMarkelov merged 2 commits into
mainfrom
codex/restore-syntax-highlighting

Conversation

@AndreyVMarkelov

Copy link
Copy Markdown
Contributor

Summary

  • restore syntax highlighting for curl, Python, HTTP, and JSON output
  • highlight source before React renders it, avoiding DOM mutations that caused stale request views
  • bundle the current highlight.js theme locally
  • add regression coverage for highlighted updates and the existing Host header test

Impact

Generated requests and API responses are readable with syntax coloring again, while parameter and format changes continue to update correctly.

Fixes #27.

Validation

  • npm run lint
  • npm run typecheck
  • npm test
  • npm run build
  • npm audit --audit-level=moderate
  • git diff --check
  • manually verified format and parameter updates in the local explorer

@AndreyVMarkelov
AndreyVMarkelov marked this pull request as ready for review July 17, 2026 23:11
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 12.65%. Comparing base (7beb365) to head (ccb4646).

Files with missing lines Patch % Lines
src/utils.ts 90.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #337      +/-   ##
==========================================
- Coverage   14.26%   12.65%   -1.62%     
==========================================
  Files           6        6              
  Lines        5775     5792      +17     
  Branches       28       36       +8     
==========================================
- Hits          824      733      -91     
- Misses       4950     5058     +108     
  Partials        1        1              
Flag Coverage Δ
unit 12.65% <90.00%> (-1.62%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@AndreyVMarkelov
AndreyVMarkelov merged commit 1de43d5 into main Jul 17, 2026
5 of 6 checks passed
@AndreyVMarkelov
AndreyVMarkelov deleted the codex/restore-syntax-highlighting branch July 17, 2026 23:15
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.

Fix code syntax highlighting on APIv2 explorer

1 participant