Skip to content

feat(editor): add collapsible stdin input support with language persistence (#241) - #258

Merged
DhanushNehru merged 3 commits into
DhanushNehru:mainfrom
chiragjangiir:feature/stdin-support
Nov 11, 2026
Merged

DhanushNehru merged 3 commits into
DhanushNehru:mainfrom
chiragjangiir:feature/stdin-support

Conversation

@chiragjangiir

Copy link
Copy Markdown
Contributor

Resolves #241

PR Fixes:

  • Added collapsible standard input (stdin) field located directly above the Output section, collapsed by default so existing layout and mobile responsiveness are preserved.
  • Encoded stdin via existing encodeUtf8ToBase64() helper and attached it to the Judge0 execution request payload.
  • Implemented per-language localStorage persistence with debounced saving so input is restored when switching languages.
  • Added comprehensive unit tests in EditorComponent.test.js verifying default collapsed state, expand toggle, and localStorage loading.

Checklist before requesting a review

  • I have pull latest changes from main branch
  • I have tested the changes locally
  • I have run npm run lint:fix locally
  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

@vercel

vercel Bot commented Nov 11, 2026

Copy link
Copy Markdown

@chiragjangiir is attempting to deploy a commit to the Dhanush Nehru's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
custom-code-editor Ready Ready Preview Nov 11, 2026 4:30pm UTC

@DhanushNehru
DhanushNehru merged commit de52099 into DhanushNehru:main Nov 11, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 28171700 Deployed Nov 11, 2026 by vercel[bot]
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.

Add a stdin input field and send it with code runs (stdin is currently always empty)

2 participants