TODO:
- Bootstrap project
- Try styled components
- Basic layout
- Timer
- Integrate EventEmmitter
- Check typings, add if required
[ ] Build visualizer SVG map (?)- SVG doesn't support drag and drop: facebook/react#3192
- Add interesting connectors
- Extend context to track setting elements interesting
- Prevent children catching drag event (if
img
andp
are not explicitly set draggable={false} only the image or the text is dragged) - Extend README.md
Known issues & conclusions:
- "Date & Time Helpers" -> should be HTML encoded (doesn't seem to worth displaying dangerous innterHTML, preferably use encoding)
- Implementing context was quite a journey: Really interesting experience, especially with TypeScript, but a simple redux as a storage would have been a better solution.
- Trying to use SVG elements was unfortunately a dead-end.
- Connector overlaps are not quite nice in the connector visualizer (top)
- Icon sizes are somewhat standardized by width, but they might still vary in height
- Long titles can overlap in the interesting connectors list
- Interesting connectors: Flex wrap & min-height was a neat trick to be able to contain more connectors.
- Drag and drop is really inconvenient if the target is outside of the viewport, with a 1000px container it's inevitable - perhaps the viewer should be scaled down, or a simple click should send the elements to the interesting connectors list
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.