HASEL-UZH / TACOS-labstudy-tasks

0 stars 0 forks source link

Task 3: Adding PDF export to work-hours tracking (old) #3

Closed AlexanderLill closed 1 week ago

AlexanderLill commented 3 months ago

Project

For this task you will be working on an app to track working hours called "Time to Leave". "Time to Leave" is a web-application written in JavaScript running in Electron, and allows to enter working and break times to show a notification, when the daily amount of work hours is reached.

Alexander: Here is the website to the app: https://timetoleave.app/

Setup

Alexander: Depending on if I use a VM or not, the following steps might be skipped

  1. Open Visual Studio Code and clone the following repository: URL
  2. Install the project's dependencies using the command npm install
  3. Start the app using the command npm run dev

Feature Request

Users have requested to export their monthly overview of logged times and overall overtime as a PDF. The user interface should include a button to trigger the PDF export of the currently shown month, as indicated in red in the picture. Please read the following text carefully to implement this task.

Time to Leave App with PDF export button outlined in red

Task Description

To implement this feature, two changes are necessary:

Change 1: Add print button to the UI

Change 2: Implement PDF export functionality

While coding

👉 While working, search online for needed information. It is quicker than navigating through the entire codebase. 👉 Save the file to see to see the effects of your changes - no need to restart the app.

AlexanderLill commented 3 months ago

Link to expected diff: https://github.com/HASEL-UZH/time-to-leave-solution/pull/3/files