AOSSIE-Org / AOSSIE-Org/EduAid

Feature: Add "Clear input" button for input textarea (with confirmation)

未關閉
#322 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
171
分支
425
PR 合併指標
30 天內沒有已合併 PR

描述

## Title
Feature: Add "Clear input" button for input textarea (with confirmation)

## Description
Add a **Clear** button next to the existing **Paste** button to quickly reset the input textarea content. Implement this in **both the web app and the browser extension** for consistent UX.

## Acceptance Criteria
- [ ] Clicking **Clear** empties the textarea.
- [ ] Show a confirmation step (OK to use `confirm()`, a small modal, or a simple inline "Are you sure?") to prevent accidental clears.
- [ ] Must **not** break the existing word count behavior.
- [ ] Implemented in both web and extension for consistency.

## Files / Locations
- `eduaid_web/src/pages/Text_Input.jsx`
- `extension/src/pages/text_input/TextInput.jsx`

## Notes
Keep changes minimal. Avoid unrelated UI refactors or styling changes.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。