Skip to content

requiredchanges#753

Open
Krish-katiyar wants to merge 2 commits into
imDarshanGK:mainfrom
Krish-katiyar:main
Open

requiredchanges#753
Krish-katiyar wants to merge 2 commits into
imDarshanGK:mainfrom
Krish-katiyar:main

Conversation

@Krish-katiyar
Copy link
Copy Markdown

@Krish-katiyar Krish-katiyar commented Jun 1, 2026

Description

Added a Clear button near the code input textarea in frontend/index.html.

Clicking the Clear button now:

  • Clears the code input textarea
  • Resets the results/output section
  • Helps users quickly switch between different code snippets without manually selecting and deleting text

Only the required frontend file was changed. No unnecessary changes were made.

Related Issue

Fixes #734

Type of change

  • Bug fix
  • New feature / enhancement
  • Documentation update
  • Test addition
  • Refactor

Checklist

  • I have read CONTRIBUTING.md
  • My branch is up to date with main
  • I have run pytest -v and all tests pass
  • I have not introduced duplicate issues or features
  • My PR title follows the format: feat/fix/docs/test: short description
  • I have added tests for new features (Level 2 and 3 issues)
  • No hardcoded secrets or API keys in my code
  • This PR is linked to a GSSoC 2026 issue

Test evidence

# Manual testing done

1. Opened the frontend page.
2. Pasted code into the input textarea.
3. Clicked the Clear button.
4. The textarea became empty.
5. The results/output section was reset successfully.

@Krish-katiyar
Copy link
Copy Markdown
Author

hey, i have added the feature and kept only the required changes. please review it once.

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.

[Feature] Add "Clear Code" Button to Reset the Input Area

1 participant