yoheinakajima / instagraph

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

add renderGraph button #71

Closed isamu closed 10 months ago

isamu commented 10 months ago

Summary by CodeRabbit

New Feature:

Improvement:

These changes aim to improve the user experience by making data visualization more intuitive and accessible.

coderabbitai[bot] commented 10 months ago

Walkthrough

The changes primarily revolve around enhancing the "History" section of the application. A new feature has been added to render a graph, which is triggered by clicking a pencil icon. The form submission handler has been refactored to call this new graph rendering function post-fetching response data.

Changes

File Path Summary
templates/index.html Introduced a pencil icon to trigger the renderGraph function. Created renderGraph to fetch data and render the graph. Refactored form submission handler to call renderGraph post-fetch. Removed isLoading flag assignment from the catch block.

🐰 "In the land of code, changes are afoot, A pencil icon, a graph, oh it's a hoot! Fetch, render, and see the history unfurl, In the form of a graph, watch the data twirl!" 🎉


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.