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

Graph container/refactor #6

Merged
merged 4 commits into from
Apr 30, 2024
Merged

Graph container/refactor #6

merged 4 commits into from
Apr 30, 2024

Conversation

mdtagg
Copy link
Collaborator

@mdtagg mdtagg commented Apr 30, 2024

References issue #. Please review this @TedPham397 @stephenhyang @sarhiri .

Types of changes

  • Bugfix (change which fixes an issue)
  • New feature (change which adds functionality)
  • [x ] Refactor (change which changes the codebase without affecting its external behavior)
  • [ x] Non-breaking change (fix or feature that would cause existing functionality to work as expected)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Purpose

-broke up graphs container into separate components for readability and to seperate concerns

Learning

Screenshot(s)

Screenshot 2024-04-30 at 10 13 44 AM

Nav was extracted for readabilty purposes. Attempting to
separate the concerns in the graph container and increase
understandability
The string to colour function was moved to facilitate easier
navigation of the graph container. Additionally since it is
only a function and not a react FC it could be imoprted into
the three components that use it instead of passed down as
props. Doing this added some simplicity to the types in the props
Charts are now conditionally rendered with a
ternary instead of individal truthy checks
to increase readablity and dryness of code
@sarhiri sarhiri merged commit 809958c into dev Apr 30, 2024
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.

2 participants