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

feat(CompareView): Implement new Comparison view with Scenes #119

Merged
merged 86 commits into from
Aug 23, 2024

Conversation

grafakus
Copy link
Contributor

@grafakus grafakus commented Aug 9, 2024

✨ Description

Related issue(s): is blocked by #117

This PR introduces the new comparison view:

image

As well as the ability to select the same item for baseline and comparison in the "Labels" view:

image

📖 Summary of the changes

See diff tab for specific comments.

🧪 How to test?

  • Manually, after checking this PR's branch in local

Copy link
Contributor

github-actions bot commented Aug 9, 2024

Unit test coverage

Lines Statements Branches Functions
Coverage: 10%
11.12% (464/4170) 8.6% (134/1558) 8.32% (107/1285)

@grafakus grafakus changed the base branch from main to feat/revamp-labels August 9, 2024 13:46
# Conflicts:
#	src/pages/ProfilesExplorerView/components/SceneExploreServiceLabels/components/SceneGroupByLabels/components/SceneLabelValuesGrid/components/SceneLabelValuePanel.tsx
@grafakus grafakus marked this pull request as ready for review August 22, 2024 10:47
ifrost
ifrost previously approved these changes Aug 23, 2024
@@ -25,7 +25,7 @@ export class SceneMainServiceTimeseries extends SceneObjectBase<SceneMainService

protected _variableDependency = new VariableDependencyConfig(this, {
variableNames: ['profileMetricId'],
onVariableUpdateCompleted: () => {
onReferencedVariableValueChanged: () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Why do need to change it from onVariableUpdateCompleted?

Copy link
Contributor Author

@grafakus grafakus Aug 23, 2024

Choose a reason for hiding this comment

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

onVariableUpdateCompleted can be called for more reasons than just when the variable value has changed.

Here, if we just want to update the timeseries title to reflect the new profile metric value, we just need onReferencedVariableValueChanged

@ifrost
Copy link
Contributor

ifrost commented Aug 23, 2024

A few minor UI issues:

Issue Screenshot
Bottom border of the highlight is cut off Screenshot 2024-08-23 at 08 57 46
Missing padding at the bottom of comparison graph and label being positioned to high Screenshot 2024-08-23 at 08 58 59

@grafakus
Copy link
Contributor Author

A few minor UI issues:
Bottom border of the highlight is cut off

It's been fixed in fixed in f9791ff#diff-408e010c621ad2b07badfec78e18b0eac9453f9ad586e631f85d5fdc48dae0d7R424

Missing padding at the bottom of comparison graph and label being positioned to high

I can't see the issue, which browser do you use?

@grafakus grafakus requested a review from ifrost August 23, 2024 11:19
Copy link
Contributor

@ifrost ifrost left a comment

Choose a reason for hiding this comment

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

Great stuff!

@grafakus
Copy link
Contributor Author

A few minor UI issues:
Bottom border of the highlight is cut off

It's been fixed in fixed in f9791ff#diff-408e010c621ad2b07badfec78e18b0eac9453f9ad586e631f85d5fdc48dae0d7R424

Missing padding at the bottom of comparison graph and label being positioned to high

I can't see the issue, which browser do you use?

It's actually an issue with the selector that removes the border from the panel. Fixed.

@grafakus grafakus merged commit 127d6c3 into main Aug 23, 2024
4 of 5 checks passed
@grafakus grafakus deleted the feat/new-scenes-comparison-view branch August 23, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants