Skip to content

Add reusable TimeBased chart with transformer and tests#101

Open
dhyana6466 wants to merge 3 commits intomainfrom
feature/time-based-chart
Open

Add reusable TimeBased chart with transformer and tests#101
dhyana6466 wants to merge 3 commits intomainfrom
feature/time-based-chart

Conversation

@dhyana6466
Copy link
Collaborator

@dhyana6466 dhyana6466 commented Jan 28, 2026

Description

This PR adds a reusable TimeBased chart component to visualize time-based metrics collected from the Python data collection script. The chart is designed to be configurable through props so it can be reused across different pages, including the Home page (organization-wide averages) and the Team Stats page (filtered by repository or user).
A utility function was added to transform the raw test_data.json into a chart-friendly format, keeping data logic separate from rendering. Unit tests were also added to verify that the chart renders correctly for the required use cases.

Fixes #86

Type of change

  • 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?

  • This change was tested using unit tests and manual verification in the browser.
  • The TimeBased chart was rendered using test_data.json and verified for correct display on the Home page.

Test Configuration:

  • Language Version: JavaScript
  • Webpage (if applicable): Home page

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

Screenshot of Output

Screenshot 2026-02-04 at 1 48 16 PM

@hcaballero2
Copy link
Collaborator

Would you be able to use the PR template found in the .github folder? You can just edit your response so you dont need to completely resubmit your PR

@hcaballero2
Copy link
Collaborator

hi @dhyana6466 would you be able to use the PR template? it is located in the .github folder

@hcaballero2
Copy link
Collaborator

Hi @dhyana6466 , would you be able to test/show the output when both Time To Merge and Time To Close are displayed?

@dhyana6466
Copy link
Collaborator Author

Hi @dhyana6466 , would you be able to test/show the output when both Time To Merge and Time To Close are displayed?

DONE!!!

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.

Time Based Chart

2 participants