diff --git a/Design:-Library-Sidebar.md b/Design:-Library-Sidebar.md index d716b61..a8877a5 100644 --- a/Design:-Library-Sidebar.md +++ b/Design:-Library-Sidebar.md @@ -163,3 +163,52 @@ The current storage API is not going to change: --- + +# Library Sidebar + +Some ascii art for the sidebar layout. + +``` ++-+-------------------------+ +| | source libraries | ++-+-------------------------+ + ++-+-------------------------+ +| | types | ++-+-------------------------+ + ++---------------------------+ +| path1 | +| path2 | +| path3 | +| path4 | +| | ++---------------------------+ +| | +| file1 | +| file2 | +| file3 | +| file4 | +| | +| | +| | +| | +| | ++---------------------------+ + ++--------+ +| import | ++--------+ +``` + +1. library select - so when there are multiple sources, one can be picked. +2. type select - the type of entity to browse. Will offer up types available for the chosen library. +3. path/file select boxes - normal file browser type behaviour +4. import button - when clicked will import the selected entry. + +The 'import' button behaviour will depend on the current editor state: + + - in 'normal' mode, import will import the selected flow, or the node of the appropriate type. + - if a node is being edited, the 'type' select will be restricted to the required type and clicking import will copy it over to the node edit dialog + +**Todo:** what is the `export to library` workflow. \ No newline at end of file