Skip to content

Codemode Interview Challenge #1

@peicodes

Description

@peicodes

The powers that be have decided that CodeMode needs some UI improvements when viewed from a desktop. Forget mobile, that's just a fad that will pass.

Task

  • While the network request to submit the modal is in progress, the submit button should enter a loading state where it's disabled and the text is replaced with a loading spinner.
  • Once the request completes, the button should return to normal and the modal should close like usual.
  • You can find a few example spinners here: https://loading.io
  • Bonus points if you use a static spinner and animate it using CSS

Tips

  • The backend API for this application doesn't exist. You'll need to replace the API request in projectRequests.service.js with a Promise in order to simulate the request.
  • In order to test the submit button's loading state, you'll need to find a way to make the Promise resolve with a delay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions