stakwork / sphinx-nav-fiber

12 stars 45 forks source link

OVERVIEW: Direct Add Node #107

Open soup20 opened 1 year ago

soup20 commented 1 year ago

Goal:

Let Second Brain users add nodes directly to the graph.

Timeline:

All steps merged, EC2 instance updated, for 11:30am MST on Wednesday 12/7.

Diagram:

Image

Image

Details:

Data to be input by the user:

Additional data to be sent:

Assignments:

Tobi: 4, 5, 8 Omoniyi: 9, 11, 12, 13 Kevin: 7 Frontend Team: 2, 3, 6 Milan: 1 Gonzalo: 10

kevkevinpal commented 1 year ago

This is the caht


%%{ init : { "flowchart" : { "curve" : "basis" }}}%%

graph TD;

sphinx-relay[sphinx-relay]-->sphinx-elements;
sphinx-relay[sphinx-relay]-->sphinx-elements;

sphinx-elements[sphinx-elements]-->sphinx-tribes;
sphinx-tribes[sphinx-tribes]-->sphinx-elements;
client1[client1]-->sphinx-tribes;
client2[client2]-->sphinx-tribes;
classDef bold stroke-width:2px, font-weight:bold, font-size: smaller;
class bitcoin-qt,bitcoind,bitcoin-cli,bitcoin-wallet bold

dasfdsadf


graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|1| D[Laptop]
C -->|2| E[iPhone]
C -->|3| F[fa:fa-car Car]
kevkevinpal commented 1 year ago

check the code for that ^^ we can make charts programically with mermaid in the .md format so its easier to edit

kevkevinpal commented 1 year ago

docs for mermaid https://mermaid-js.github.io/mermaid/#/

soup20 commented 1 year ago

kevin's workaround:

In the boltwall repo you may see endpoints like /search, /searching and /add_node and /adding_node

Issue: webpage cannot read the www-authenitcate header in the sphinx-mac webview

this is because on the sphinx-mac app the www-authenitcate header cannot be read for whatever reason so as a work around we instead call an unpaid endpoint that calls the paid endpoint. The paid endpoint will then prompt the unpaid endpoint to pay, but since we're still in the boltwall server we can read that www-authenitcate header. We then take that header and put it into the response body of the unpaid endpoint and send it back to the webpage which is able to read the body of the response in the sphinx-mac browser window.

mac-app -> webpage -> /searching -> /search after getting the lsat and paying for it we can call /search directly mac-app -> webpage --lsat-> /search