-
Notifications
You must be signed in to change notification settings - Fork 10
Spanner graph UX flow V2 #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
|
||
|
||
# Project setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be very careful about the main readme, where we try to be compact and only include information for users of this package.
The new lines need not be surfaced to users I assume. For python installation, users will use pip install spanner-graph-notebook
. This package is on PyPi.
For frontend development, I believe the readme is in frontend already?
frontend/src/graph-server.js
Outdated
getPing: '/get_ping', | ||
postQuery: '/post_query', | ||
postNodeExpansion: '/post_node_expansion', | ||
// saveConfig: '/save_config', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need these? maybe proofread before sending out?
frontend/static/constent.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty file. maybe proofread the PR first in the future?
spanner_graphs/magics.py
Outdated
|
||
singleton_server_thread: Thread = None | ||
|
||
SHOW_LOADER = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this an individual html file instead of inline in python? this is a bit hacky and hard to manage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we test the new %spanner_graph
somewhere in the test?
spanner_graphs/magics.py
Outdated
) | ||
display(HTML(html_content)) | ||
|
||
@cell_magic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to use line_cell_magic so that this can be invoked in a 1-liner like %spanner_graph
only.
frontend/static/jupyter.html
Outdated
params: `{{ params }}`, | ||
query: `{{ query }}`, | ||
(function() { | ||
const gcpData_{{ id }} = {{ gcp_data | safe }}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid placing bulk JS code in html, let's make it modularized in the TS/JS modules.
No description provided.