Skip to content

Coding test for a position of a frontend developer to demonstrate skills in React and TypeScript.

License

Notifications You must be signed in to change notification settings

slazarevich/coding_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sergei LazarevichSergei Lazarevich
Sergei Lazarevich
and
Sergei Lazarevich
Jan 22, 2023
1160a07 · Jan 22, 2023

History

2 Commits
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023

Repository files navigation

This project uses the following dependencies: React, Apollo (for GraphQL), Material-UI (for widgets).

Setup

  • npm install to install the dependencies
  • npm start to start the project

Assignment

Create a single page application with the following functionalities

  1. Query a public GraphQL API and show the results in a list. This functionality is already provided, but feel free to change the query as you see fit.
  2. Create a text filter above the list with which you can filter and group the results
    • E.g. if you input "search:tt group:size" it will search for the results containing "tt", and group those results by the value of a "size" field that they may have
  3. The items in the list should be selectable and de-selectable by clicking on them
    • At most one item can be selected at a time
    • The background color of the selected item should be different than the background color of unselected items
    • The background color used for the selected item should be picked from a predefined set of colors (which you should define yourself). Make sure that when an item is selected, the color is different from the previous item that was selected
  4. After the items are loaded and after filtering, automatically select the 10th item, or the last one if the amount of items is smaller than 10

The implementation should take into account that the list can get very long.

Additional notes

  • Use Typescript where possible
  • You're allowed to use open-source packages as you see fit.
  • Anything not in the description is up to you.

About

Coding test for a position of a frontend developer to demonstrate skills in React and TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages