Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

feature/COR-1202-severity-indicator-relative-timeline-parts #4737

Conversation

VWSCoronaDashboard26
Copy link
Contributor

Summary

  • added utility method for calculating the amount of days for a timeline bar part;
  • added utility method for calculating the relative width of a timeline bar part;
  • updated Timeline component to leverage new utility methods;

Screenshots

Screenshots include the development dataset for Sanity and are not a correct representation of the current severity indicator/thermometer. However, it still shows the functionality achieved in this feature: relative widths based on how many days a part (or severity indicator timeline event) spans.

Before

Toggle before screenshots

COR-1202_before

After

Toggle after screenshots

COR-1202_after

…ount of days for a timeline bar part; added utility method for calculating the relative width of a timeline bar part; updated Timeline component to leverage new utility methods;
Copy link
Contributor

@Jorrik-Klijnsma-Work Jorrik-Klijnsma-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks great 2 me!

Copy link
Contributor

@APW26 APW26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comments.

… file as all individual utilities are very small yet depent on each other; cleaned up JSX a bit;
APW26
APW26 previously approved these changes Apr 17, 2023
Copy link
Contributor

@Jorrik-Klijnsma-Work Jorrik-Klijnsma-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All comments are non-blocking, as the code works and those things are in the codebase for while!
Feel free to resolve them!

So here is my approval!
Nice job! 🙌

Copy link
Contributor

@Jorrik-Klijnsma-Work Jorrik-Klijnsma-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like the outcome of this ticket!
A big approval for this feature!

@VWSCoronaDashboard26 VWSCoronaDashboard26 merged commit c79db5e into develop Apr 21, 2023
@VWSCoronaDashboard26 VWSCoronaDashboard26 deleted the feature/COR-1202-severity-indicator-relative-timeline-parts branch April 21, 2023 07:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants