GithubHelp home page GithubHelp logo

philiptranp / react-time-tracking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tuanngominh/react-time-tracking

0.0 1.0 0.0 817 KB

time tracker app on react

Home Page: https://vivid-trace.firebaseapp.com/

JavaScript 97.85% HTML 1.05% CSS 1.10%

react-time-tracking's Introduction

React time tracking CircleCI codecov

Time tracking app on React, try demo.

The app is inspired by toggl.com.

Tech stack

Web application based on React (clientside) and Firebase (serverside)

Features

Authentication

  • Signup using email/password

Time entry

  • Can add time entry
  • Can track time spent on time entry and stop a time entry tracking
  • Can list time entries
  • Delete time entry
  • Report

Tag

  • Add tag to time entry
  • CRUD tag

Demo

Try demo at https://vivid-trace.firebaseapp.com/ and storybook

React time tracking demo

Developer notes

Enzyme

Simulate onClick event in shallow (github)

const componentWrapper = shallow(<Component />)
componentWrapper.simulate('click', { preventDefault() {} })

Simulate change event in material-ui's TextField (github)

const input = wrapper.find('input[name="text"]')
input.node.value = "newvalue"
input.simulate('change', input)

Sass and create-react-app

Enable guide

Material UI 0.16.7

Click on button in a Table's Row without select that row (github)

Doesn't support responsive (github)

Storybook

Use storyshots to enable unit test. Need install story book addon packages and babel preset

Add .babelrc to project's root directory

{
  "presets": ["babel-preset-es2015", "react-app"]
}

Install packages

npm install storyshots @kadira/storybook-addons @kadira/storybook-channel --save-dev
npm install babel-core babel-preset-es2015 babel-preset-react-app --save-dev

Add src/__tests__/Storyshots.test.js:

import initStoryshots from 'storyshots'
initStoryshots()

Explicitly add material ui component id so Jest snapshot test doesn't get failed because of auto generated id

Run npm test

react-time-tracking's People

Contributors

tuanngominh avatar

Watchers

James Cloos 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.