Closed nedved2357 closed 11 months ago
This update introduces a new feature that fetches and displays Wikipedia information for clicked nodes in the graph. It also includes an aesthetic enhancement to the UI, improved async handling, and necessary dependency updates.
File | Summary |
---|---|
main.py |
Added routes for fetching Wikipedia info and handling node clicks. Updated index() function to render the template. |
requirements.txt |
Added requests , wikipedia dependencies, and updated neo4j . |
templates/index.html |
Enhanced UI with CSS classes, refactored event listener for form submission, added tap event listener on nodes, and a function to calculate text color. |
ππ»
In the land of code where the shadows lie, A rabbit hops, its eyes on the sky. With each key press, a new world unfurls, Nodes now hold secrets, as the cursor twirls. Click and reveal, oh what a surprise, Knowledge from Wikipedia, before your eyes! The rabbit hops on, its work here is done, Celebrating the changes, under the rising sun. π π
I've added the feature to click a node on the graph and get Wikipedia information about it displayed on the side.
Two notes:
Summary by CodeRabbit
New Features:
/get_wikipedia_info/<node_label>
.Refactor:
createGraph
function to include a tap event listener on nodes for interactive user experience.Updates:
requirements.txt
, including the addition ofrequests
andwikipedia
libraries, and an updated version ofneo4j
.Style:
getTextColor
to calculate text color based on background color for enhanced visual contrast.