-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(explore): Use standard widget components #83845
base: master
Are you sure you want to change the base?
Conversation
Bundle ReportChanges will increase total bundle size by 38.89kB (0.12%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: app-webpack-bundle-array-pushAssets Changed:
Files in
Files in
Files in
Files in
Files in
Files in
Files in
Files in
Files in
Files in
|
3695d66
to
d437ca8
Compare
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -58,7 +59,9 @@ export function getExploreUrl({ | |||
); | |||
} | |||
|
|||
export function combineConfidenceForSeries(series: Series[]): Confidence { | |||
export function combineConfidenceForSeries( | |||
series: Array<Pick<TimeseriesData, 'confidence'>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it better to just do TimeseriesData[]
here as the function implies that an entire series is the parameter?
Or is the Pick
here for backwards compatibility with Series
? If that's case we could also consider TimseriesData[] | Series[]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep exactly, for backward compatibility. I could do the union too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Union makes more sense to me, because with the Pick, I believe passing in any array of objects, where the object has confidence as a property, would work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if we removed Series eventually, it's easier to find this.
Replace current usage of
Chart
from Insights with the standard visualization components from Dashboards.Closes https://github.com/getsentry/team-visibility/issues/20
Changes
Not too major!
Series
objects, now they pass aroundTimeseriesData
objects. They're very similar, but they includemeta
, which standard charts use to figure out the correct unitsTimeSeriesWidget
unit conversions #84264e.g.,
![Screenshot 2025-01-22 at 1 42 40 PM](https://private-user-images.githubusercontent.com/989898/405750903-0307de16-37bc-4b59-a889-0451c36cac64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODg1NDQsIm5iZiI6MTczOTA4ODI0NCwicGF0aCI6Ii85ODk4OTgvNDA1NzUwOTAzLTAzMDdkZTE2LTM3YmMtNGI1OS1hODg5LTA0NTFjMzZjYWM2NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwODA0MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMWYyMmJhYTA3YWVlYzIyMDFjMjQyZjc2NjFiMjJkZWY2NTdlNTJjMWZmMjhkMzcyNzhhODI4MTRjM2VlNmYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.gGR8yIeDOzki8x9exM6JeC6nWR1scRrgHymYdZnJvpk)