AOSSIE-Org / AOSSIE-Org/EduAid

Infinite Loading When Text & Doc URL Are Both Empty on Input Page

オープン
#359 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
171
フォーク
425
PR マージ指標
30日以内にマージされた PR はありません

説明

On the Text Input page (both Web and Extension), if the user does not enter any text and does not provide a Doc URL, the app enters a loading state that never ends.

This happens because the case where both inputs are empty is not handled. Ideally, in this scenario, the app should:

- Prevent the loading state from starting
- Show an alert/message asking the user to add some content (either text or a Doc URL)

### Steps to Reproduce:

Open the Text Input page (Web or Extension)
Leave the text field empty
Leave the Doc URL field empty
Click the Next button

### Expected Behavior:

The app should not start loading
A clear alert or validation message should appear, e.g.
“Please enter some text or provide a document URL.”

### Actual Behavior:

The app enters a loading state
The loading never ends
No feedback is shown to the user

### Impact:

Confusing user experience
Makes the app feel broken or unresponsive
User has no indication of what went wrong

### Proposed Fix:

Add a validation check before starting the process:
- If both text and docUrl are empty:
- Show an alert / error message
- Do not trigger the loading state
- Do not proceed with the request

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。