Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/web/dashboard #86

Merged
merged 95 commits into from
Jun 24, 2024
Merged

Feature/web/dashboard #86

merged 95 commits into from
Jun 24, 2024

Conversation

Tinashe-Austin
Copy link
Contributor

@Tinashe-Austin Tinashe-Austin commented Jun 24, 2024

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit Tests

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Tinashe-Austin and others added 30 commits June 6, 2024 11:33
Rethakgetse-Manaka and others added 29 commits June 21, 2024 01:54
…tion

Add @react-pdf/renderer package and its related dependencies, including canvas, dom-to-image, html-to-image, html2canvas, jspdf, npm, react-pdf-charts, and react-to-print. These packages are required for generating PDFs in the application. This change enhances the functionality of the application by enabling PDF generation capabilities.
Add a new component, PDFReport, to the reports directory. This component utilizes the @react-pdf/renderer library to generate PDF reports. It includes styles for the page layout, header, sections, tables, and paragraphs. The component also uses SVG and Rect components to create a bar chart visualization of monthly office occupancy data. This addition enhances the application's functionality by allowing users to generate PDF reports of office occupancy data.
Add lazy loading functionality to the Line_Chart component in order to improve page load performance. This change includes importing the useRef hook from React and the html2canvas library. It also adds a new handleDownload function that uses html2canvas to generate a chart image and allows users to download it. The chartRef is used to reference the chart container element. This enhancement improves the user experience by reducing the initial load time and providing a convenient way to download the chart image.
…tainer details

Update the names and file paths in the deployment workflows to reflect the changes made in the codebase. This includes renaming the workflow for deploying to the live site from "Deploy Web site to Live site" to "Deploy Prod Dashboard" and updating the file path for the docker-compose file in the development workflow from "frontend/occupi-web-dev/docker-compose.yml" to "frontend/occupi-web-dev/docker-compose.dev.yml". These changes ensure that the deployment workflows accurately reflect the current state of the codebase and improve clarity for future development and deployment processes.
feat: Add route for reports page and update PDFReport component

Add a new route for the reports page and update the PDFReport component to be located in the "pages/reports" directory. This change ensures that the reports functionality is properly integrated into the application and follows the established file structure.
feat: Add Visitation page component

Add a new page component for Visitation, which displays the visitation information. This component is added to the pages directory and follows the established file structure.
Update the workflow file to include a new step for installing dependencies with Bun. This ensures that the project's dependencies are properly installed and managed using the latest version of Bun. This change improves the development and build process by ensuring that the correct dependencies are available for the project.
Install project dependencies with Bun during the workflow execution. This ensures that the correct dependencies are installed and managed using the latest version of Bun. The addition of this step improves the development and build process by ensuring the availability of the required dependencies.
@waveyboym waveyboym merged commit cffcba7 into develop Jun 24, 2024
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants