-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(insights): Refactor chart widgets to pass down prop overrides #89455
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
Changes from 3 commits
80bcb0e
9c5ad94
770da7b
81a340b
6cd3028
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type {PageFilters} from 'sentry/types/core'; | ||
|
||
/** | ||
* These props are common across components that are required to dynamically | ||
* render an Insight Chart Widget | ||
*/ | ||
export interface LoadableChartWidgetProps { | ||
// TODO(billy): This should be required when all chart widgets are converted | ||
/** | ||
* Unique ID for the widget | ||
*/ | ||
Comment on lines
+8
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense, but if that's the case, |
||
id?: string; | ||
|
||
/** | ||
* PageFilters-like object that will override the main PageFilters e.g. in | ||
* Releases Drawer, we have a smaller timeframe to show a smaller amount of | ||
* releases. | ||
*/ | ||
pageFilters?: PageFilters; | ||
|
||
/** | ||
* Show releases as either lines per release or a bubble for a group of releases. | ||
*/ | ||
showReleaseAs?: 'bubble' | 'line'; | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missed this bc i had inclusion list with only |
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.
Gj cursor on autofixing this I guess