Giter Club home page Giter Club logo

xmarker's Introduction

How to setup this project

Pull the project to your local machine run npm install and after the installation run npm run start to run the test, run npm run test

Design decisions

The app was built with React, Typescript & SCSS (SASS). This decision is based on my comfortablity with these technologies. The calendar package used is react-big-calendar. This was done to avoid reinventing the wheel.

The App uses a React context in order to avoid unneccessary prop drilling. Some logic for the calendar were moved into a custom hook. The reason for this is to seperate the calendar component logic from the component while keeping the component shape small, clean & tidy. It was done to promote easy code reuse.

List of features completed (instructions followed)

  • scenario 1: Given I'm in the calendar page When I click on a date Then I see all the time slots containing the available and already allocated call sessions

  • scenario 2: Given I have chosen a date on the calendar page When I click on a free time slot Then I see a field where I type the reason for the call And I click on the button Confirm Call Then I see a confirmation message with the date, time, and reason for my call

  • scenario 3: Given I have chosen a date in the calendar page When I click on a time slot that has already been allocated to a call Then I see an error message about the allocated slot

Requirements / Assumptions:

  • Allocated slots from the external api might change any time.
  • A call will always take 1 full hour and start at the full hour.
  • Our mentors are superheroes and work 24/7.
  • If there is an allocated slot within the hour, the full hour is considered unavailable.

extra features implemented

  • preventing selection of time slots when user is inputing reason & title
  • user can see the details of the slot selected while typing title & reason

Things to note

  • The styling and general look of the UI is bare.
  • the focus was on functionality
  • the created events are not persisted

What can be improved?

  • the UI could be improved

the url for the project can be found here

xmarker's People

Contributors

thislekan 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.