Code Monkey home page Code Monkey logo

invoice's Introduction

Write-up

Given more time I would structure the repo better. All tests, styles, and JS are currently flat in the src repo. I would research structures that would make the app more readable as the app to scales.

I would write unit tests for the functions and methods here. I would also write functional tests using React testing library to test that components are mounting as expected.

I am using react input type=number, so a string can not be entered in the input that is expecting a number. This displays a 0 value on the input on the frontend by default and often results in leading zeros in the input. Given more time I would try to find a solution for this that would keep this validation but have better UX on the frontend.

If this code was in production I think an autosave function would be useful. It could be done simply by calling the submitInvoice() function on a timeout every 2 seconds or so, and having an indicator on the front-end to show the user that their work is being saved.

To be production-ready, more time would need to be spent on the styling to ensure that the app is fully responsive and usable on desktop and mobile. The app would also need to be regression tested on popular browsers and cell phones.

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.