This is a test made for more than metrics frontend position.
You can see the final result at This Link
- React is the main ui library,
- Redux for state management,
- Flow for static type checking
- JSS for CSS in JS stylesheets
- JEST for unit tests
Follows a brief summary of the features that I was able to complete compared with what was required.
- Layout and Ui according to invision specs
- From header only make Name of persona real without editing functionality.
- User should be able to drag “elements” from sidebar to persona field columns. For this task please add just “Short text” element.
- Persona has main info: avatar, color, name and initials. Please implement Name and Initials editing
- When user changes name, initials should automatically take first 3 letters and uppercase them. Initials also should be editable on their own
- Empty name or initials should make respective field have red background visualising failed validation
- Data should be saved on
inputblur automatically (just console output, no real backend needed). - Persona has two columns, for this task they are not editable.
- Fields could be dragged into columns (just the wide column is working for dragging)
- dragged between columns and dragged within single column for sorting
- For this task please add just “Short text” field. Field title not editable, just put field type there. Change the “cog” icon to “trash bin” and make it delete the field on click.
- Text field data should be saved on blur.
- Any change in field position should be saved
Please note that I built tests for all the business and state management functions. You can run then with npm test
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.