HASEL-UZH / TACOS-labstudy-tasks

0 stars 0 forks source link

Time-Tracking App: Adding PDF export (old) #6

Closed AlexanderLill closed 2 weeks ago

AlexanderLill commented 1 month 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.

Setup

  1. Start the app in the terminal using the command npm run dev
  2. To stop the app, use CTRL+C within the terminal

Feature Request

Users have requested to export their monthly overview of logged times and overall overtime as a PDF instead of an image. The already included button in the user interface should 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.

Screenshot 2024-11-04 at 09 58 30

Task Description

To implement this feature, two changes are necessary:

Change 1: Add function to create a PDF export

Change 2: Add button for old PNG report

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.