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

[Frontend][Review Metrics] Show old values #36

Merged
merged 2 commits into from
Sep 22, 2022
Merged

Conversation

terryttsai
Copy link
Contributor

@terryttsai terryttsai commented Sep 22, 2022

Description of the change

Screen Shot 2022-09-22 at 1 14 53 PM

Show old values in the Review Metrics page

Optional code to show when a metric is "new", as in the previous value was Null

Type of change

All pull requests must have at least one of the following labels applied (otherwise the PR will fail):

Label Description
Type: Bug non-breaking change that fixes an issue
Type: Feature non-breaking change that adds functionality
Type: Breaking Change fix or feature that would cause existing functionality to not work as expected
Type: Non-breaking refactor change addresses some tech debt item or prepares for a later change, but does not change functionality
Type: Configuration Change adjusts configuration to achieve some end related to functionality, development, performance, or security
Type: Dependency Upgrade upgrades a project dependency - these changes are not included in release notes

Related issues

Closes #XXXX

Checklists

Development

This box MUST be checked by the submitter prior to merging:

  • Double- and triple-checked that there is no Personally Identifiable Information (PII) being mistakenly added in this pull request

These boxes should be checked by the submitter prior to merging:

  • Tests have been written to cover the code changed/added as part of this pull request

Code review

These boxes should be checked by reviewers prior to merging:

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has been moved out of a Draft state, has no "Work In Progress" label, and has assigned reviewers
  • Potential security implications or infrastructural changes have been considered, if relevant

@terryttsai terryttsai requested a review from a team September 22, 2022 20:00
Copy link
Collaborator

@lilidworkin lilidworkin left a comment

Choose a reason for hiding this comment

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

@terryttsai can you upload a video or screenshot?! Excited to see this!

@@ -280,11 +281,27 @@ const ReviewMetrics: React.FC = observer(() => {
value: string | number | null,
oldValue: string | number | null
) => {
// Uncomment this for special treatment when a datapoint is newly added
Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome! Thanks for putting the foundation here. I wonder if we should uncomment this for now, to facilitate debugging and also just to see how it feels? Maybe we can change the color or something instead of saying NEW?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what the new symbol should be, it could also be less noisy to instead have an indication when the value has been unchanged. I'll leave that up to a follow-up PR

// }
if (oldValue !== value) {
return (
<DatapointsTableDetailsCell key={key}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Love this!

@terryttsai
Copy link
Contributor Author

Added a screenshot

@mxosman
Copy link
Contributor

mxosman commented Sep 22, 2022

Terry - this looks AMAZING!!!

@lilidworkin
Copy link
Collaborator

I know this is such a cool change!! What a great idea to do this 😍

@terryttsai terryttsai merged commit 3a6fd0a into main Sep 22, 2022
@terryttsai terryttsai deleted the terry/show-old-value branch September 22, 2022 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants