-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(insights): Refactor Resources page charts #81976
ref(insights): Refactor Resources page charts #81976
Conversation
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.
Nice refactor! couple small things
static/app/views/insights/browser/resources/components/charts/assetSizeChart.tsx
Outdated
Show resolved
Hide resolved
filters={appliedFilters} | ||
extraQuery={extraQuery} | ||
/> | ||
<ThroughputChart series={data['spm()']} isLoading={isPending} error={error} /> |
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.
This might be an inconsistency with the rest of insights, but I think isPending
would be a better prop name for the ThroughputChart
if that's what we expect to pass into it from useSpanMetricsSeries
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.
Noted, that's fair! I'll consider this when I start updating these charts soon (going to integrate new Dashboard widget components)
Bundle ReportChanges will increase total bundle size by 98.94kB (0.31%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
Makes two important changes:
DurationChart
,ThroughputChart
, andAssetSizeChart
components. These are re-used on the landing page and the asset details page. This also brings this module more in-line with how other insights are structureduseSpanMetricsSeries
instead ofuseSpansQuery
. This is a better way to load data, since it returnsmeta
and other good information. Again, better consistency with other Insights modules