Skip to content

Ugly code is provided, PR with improvements is needed

Notifications You must be signed in to change notification settings

Opty1712/triple-tech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Solution

→→→→→→→→→→ 🔥 Take a look at this PR 🔥 ←←←←←←←←←←

Frontend exercise

Hello! Thank you for taking the Triple frontend exercise. The goal is to implement a simple feature in a given code.

Some of the code could be poorly structured, so feel free to refactor anything that you would consider.

Please, if you have any doubts about the exercise, please contact us. You can find our emails in the invite.

Running the application

npm install
npm run start

It will launch the app in the 3002 port, and a server in the 4002 port.

Feature request (EXERCISE)

Given a table of programs, we would like to be able to filter the API results:

  • Searching by name of the program
  • Filtering by status of the program

Programs have 3 different possible statuses: ACTIVE, PAUSED and PAUSE_SCHEDULED

Here we provide a mockup of how the app could look:

alt text

What we expect

  • See how your code is structured
  • See how you would refactor some existing code to improve the codebase
  • Our code is not tested properly! Add tests where considered :)

API description

We expose an endpoint that can be found in http://localhost:4002/programs .

You can search programs by name using: http://localhost:4002/programs?name_like=dia

You can apply filters to the status attribute, using for example: http://localhost:4002/programs?status=ACTIVE

If no filters are set, it returns by default all the programs

Tools and libraries

  • We used MUI https://mui.com/ for visual components. Feel free to use any of them to improve the look and feel of the app. Some components, like the Progress indicator, would be good candidates to improve some existing code that gives the user a poor visual experience.
  • Feel free to use any additional library you may need to use.
  • For testing, we expect to use react-testing-library, but if you have any other preference please use it and we can comment in the PR/interview.

About

Ugly code is provided, PR with improvements is needed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published