Code Monkey home page Code Monkey logo

vacation_system's People

Contributors

alazarchuk avatar eleidan avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vacation_system's Issues

Ability to cancel vacation

As a user I want to be able to cancel requested, accepted vacations with notification of this event to manager by mail or any other way. Vacation Should be listed in cancelled list.

Add administrator role

The administrator role should provide the following privileges:

  • to create teams;
  • to remove empty teams;
  • to create a user;
  • to update all the user information, except password;
  • to invite new users;
  • to add users to teams;
  • to remove users from teams;
  • to add holidays;
  • to update holidays;
  • to remove holidays.

Vacation list

As a user I want to see list of vacations collapsed by default and it should expand on click. List of vacation should be listed in table with filter (please see example https://www.datatables.net/)

Implement error notifications in BB views

As a user I would like to be informed about any events that are triggered in response to my input.
For example, I would like to see an error notification when I supplied a form with invalid data.

Refactor vacations intersections finding logic

The VacationRequest#cannot_intersect_with_other_vacations can be implemented in more simple way, as follows:

(start_date - another.end_date) * (another.start_date - end_date) >= 0

But in SQL ๐Ÿ˜‰

Add rake task for importing users

As an administrator I want to be able to import list of users from a CSV-file.
Let's say, the following command should do the job:

rake users:import_from_csv

Empty brackets

Please remove empty brackets from menu when user is not sign in

Add UPDATE button to the list of holidays

As a user I want to use a button for particular action.
In case of Holidays page, I want to click UPDATE button to edit a holiday, rather than mouse double click on a row. Furthermore, the latter is not obvious for new users.

Add additional section with planned vacations related summary

The Vacations page, #/vacations, should contain a section with the following vacations related summary for the user:

  • number of requested days for a year;
  • number of used days for a year;
  • number of accumulated days for a year;

A new section title should be the Planned Vacation Summary.

Refactor handling list of statuses in BB

Avoid using hardcoded statuses values, like following:

if (row.status === 'cancelled')

The following approach should be used:

if (row.status === App.Vacation.statuses.calcelled)

Create composite key in holidays DB table

A holiday must be unique by it's date and description, that is, start and description fields.
This will allow to create many holidays with the same name but with different dates.

Show holidays for a whole duration

When a holiday has its duration greater than one day, it is marked as a one-day holiday, by start day.
It must be changed so that all the days of holiday are marked properly.

Rake task for importing users does not inform about errors during update

Let's say, we have the following user:

rake users:list_as_json
...
{"id":1,"first_name":"Tony","last_name":"Shark", ... , "employment_date":"2015-01-12"}
...

And we'd like to update user related data:

rake users:import_from_csv
...
UPDATED Tony Stark
...

As a result we expect to see the user's last_name as Stark, not Shark:

rake users:list_as_json
...
{"id":1,"first_name":"Tony","last_name":"Shark", ... , "employment_date":"2015-01-12"}
...

But still get an old value. The reason might be in validation error happening during update.

Fix layout floating in time table in day mode

The header breaks into two lines with breaking layout when there are few days in a month to be displayed. See the following picture:
time-table-floating-header

As a result, the list of users mismatches corresponding rows in table, as shown in the following picture:
time-table-floating-user-list

The first user in the list corresponds to the days, not user's row in the table.

New vacation request form updates previous record instead of creating new one

How to reproduce

  1. Open vacation requests page
  2. Request new vacation
  3. Switch filter to show vacation requests with status requested
  4. Verify that vacation request is created properly
  5. Request another vacation for another period
  6. Verify that previous vacation request type is changed
  7. Verify that no vacation request is added

Login page

As I CyberCraft Vacation user I should be able to see only login page if I wasn't logged in before.

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.