Code Monkey home page Code Monkey logo

watson-worktime's People

Contributors

coijanovic avatar kingdread avatar

Stargazers

 avatar

Watchers

 avatar  avatar

watson-worktime's Issues

Make total hours output format configurable

I personally like the h:mm:ss syntax, as I prefer to see "20 minutes" than "0.3 hours". I can also see though that the "xxx hours" format might be nicer for some people, especially since the default timedelta string representation takes days as 24 hours (and not workdays).

I therefore propose two changes:

  • We support both formats, configurable in the config, and adapt every output location (also show overtime as "xxx hours" for each day)
  • We "fix" the timedelta string representation to use working days ("overtime: 2 working days, 2:10:20")

Add vacation days by range

Currently, vacation days have to be added individually.
As most people often take multiple vacation days in a row, this is a somewhat tedious method of entry.
Instead users should be able to add vacation days with from and to flags.

Vacation day ranges should automatically exclude weekends and public holidays.

Vacation day tracking

Watson-worktime could easily be extended to allow users to keep track of how many vacation days they have taken/have available in the current year.
To do so, the config file needs an option to set the allowed vacation days per year and the output of vacation list needs to be extended.

Add default from date to config

If a user wants to compute overtime from a certain start date (e.g. from when they started a new job) rather than from the beginning of time itself, they have to add the from flag to every call.

We can add an option to the configuration file instead.
The from flag should still have priority if set.

Partial vacation days

There should be a way to add days that are, e.g., half work and half vacation.

Possible syntax: watson-worktime vacation add 1970-01-01x0.5

Sick Days

Same handling as vacation days, but should be separate for more granulated statistics.

Implement once issue #3 is closed as partial sick days are also needed anyways.

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.