Coder Social home page Coder Social logo

tray-assessment's Introduction

Tray.io assesment task

TODO:

  • Bootstrap project
  • Try styled components
  • Basic layout
  • Timer
  • Integrate EventEmmitter
    • Check typings, add if required
  • [ ] Build visualizer SVG map (?)
  • Add interesting connectors
  • Extend context to track setting elements interesting
  • Prevent children catching drag event (if img and p 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

Default CRA instructions:

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

tray-assessment's People

Contributors

matyasfodor avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.