GithubHelp home page GithubHelp logo

wandarkaf / frontend-developer-assignment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timescale/frontend-developer-assignment

0.0 1.0 0.0 1.68 MB

TypeScript 75.21% CSS 4.56% HTML 18.46% JavaScript 1.77%

frontend-developer-assignment's Introduction

Timescale Frontend Programming Assignment

Thank you for taking the time to apply for a frontend position at Timescale! We hope you'll enjoy this small coding assignment that was designed to illustrate your coding skills. It should take around 3 hours to complete at a time of your choosing. If you have any questions, feel free to reach out to us and we'll be happy to help. Happy hacking!

Assignment

Implement a React component that allows managing email addresses. The component displays two lists: available recipients and selected recipients.

Use the included recipientsData.json file to populate the lists within the component.

Use cases

As a user, I can

  • See the list of all available recipients. A recipient is either an email or a group of emails sharing the same company domain
  • Select an individual recipient or a company domain. When a company domain is selected, all emails with the domain are added to the selected recipients' list
  • Enter the name of a company into the autocomplete and select a recipient from the available suggestions
  • Enter any email in the autocomplete. If the email passes validation it is possible to add it to the list of available recipients
  • See the list of the selected recipients that are grouped into company and email recipients. The groups are expandable and show the contained members
  • Remove the recipients from the selected list. It is possible to remove an individual email or all emails sharing a domain at once

The rules

  • The component should have a simple and clean design
  • You can use a component library of your choice (we use Chakra UI)
  • The component should work in the latest Chrome on Mac OS
  • We don't expect a full test coverage, but a couple of unit tests would be nice to have
  • Fork the repo to your own account, make it public and send us the repo url when you are completed. We will clone and run the site on our local.

Resolution Walkthrough

My thought process for the exercise resolution was to translate concepts between React and Vue; as I mentioned in a previous hiring meeting, my background and expertise are focused on the Vue ecosystem. So, although there are some similarities in both frameworks that I can work with, I did some translation into the React ecosystem on how to implement best practices, such as computed and slots and the use of memos and children. For more information, please check the Vue docs if you are curious.

Regarding the architecture, I decided to keep it minimal and straightforward. AppList probably needs more scrutiny, but I avoided component granularity at this phase. Of course, if the exercise grows, it has to be done.

I added some test coverage, mainly on the AppSearch component. We could also extract some utilities in a utility folder. Still, I want to respect the time given for the exercise.

I used a couple of libraries, Tailwind and Lodash, to ease the developer experience for the resolution.

That's all. Thanks for the opportunity, and I hope you like it.

showcase

frontend-developer-assignment's People

Contributors

aprimakina avatar wandarkaf avatar

Watchers

 avatar

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.