yoheinakajima / instagraph

Converts text input or URL into knowledge graph and displays
MIT License
3.27k stars 281 forks source link

Disable form #63

Closed isamu closed 10 months ago

isamu commented 10 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 10 months ago

Walkthrough

This pull request introduces enhancements to the user interface, improving the user experience during loading states. It modifies the HTML form to disable user input and submission while loading, providing visual feedback via a loading indicator. Additionally, it updates the .gitignore file to ignore Emacs backup files.

Changes

File Summary
.gitignore Added a new line to ignore Emacs backup files (*~).
templates/index.html Updated the HTML form to disable user input and submission during loading. The submit button's class is conditionally modified based on the loading state, providing visual feedback.

🐇💻

In the land of code, where the shadows lie,

A rabbit hops, under the cloudless sky.

With each key press, a new world unfurls,

Ignoring backups, as the loading whirls.

The form stands still, while the page is loading,

A better UX, the rabbit is coding. 🎉

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume. - Additionally, enter `@coderabbitai pause` to halt the bot's ongoing reviews as any issue or review comment. To resume reviews, enter `@coderabbitai resume` as any issue or review comment.