Update the 42Intra curriculum graph more easily. (AKA Holy Graph / Curriculum Galaxy)
You can use the graph maker here: https://editor.p5js.org/JemCope/present/QMqfaOHA
This program allows you to draw out the graph and will give you a JSON file of project coordinates and project IDs.
-
Click on the map to create project nodes.
-
Click and drag to move project nodes around.
-
DELETE: To delete a project node, click it and press
delete
on the keyboard.
Jem: I am no longer working on developing this. It'd be a great project for someone to write a script to upload the JSON to Intra--the API has the correct functionality to do this, I just didn't have time to work on it further.
Will save into a .txt file
You can upload the .txt file so you don't have to start from scratch every time.
Call the 42API to upload the new graph to the intra.
DONE Goal 3.1 Will need to add the projectID to the node array to be able to do this. This will probably necessitate a "Node Settings" side bar--something that was probably going to be needed for later features anyways.
Draw the connections between nodes and get the coordinates. This will correlate to the "By" of Project Data in the 42API.
Format: The link path, under the 'project_id, x1, y1, x2, y2, ...' format. One child per line I think you can have an array of links for nodes with multiple connections.
Change the size of the shape.
Rectangles, Diamonds, Triangles, etc
Hold down Ctrl and select multiple nodes/connections so you can move entire sections at a time. This will be useful for updating entire branches.
Select all nodes inside of a box. It may be a good idea to also allow drawing a selection for better targeting.