-
-
Notifications
You must be signed in to change notification settings - Fork 740
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(1-3267): use new API for chart creation #9149
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
<Grid container component='header' spacing={2}> | ||
<Grid item xs={12} md={10}> | ||
<NetworkTrafficUsagePlanSummary | ||
usageTotal={usageTotal} | ||
includedTraffic={includedTraffic} | ||
overageCost={overageCost} | ||
estimatedMonthlyCost={estimatedMonthlyCost} | ||
/> | ||
<PeriodSelector | ||
selectedPeriod={period} | ||
setPeriod={setPeriod} | ||
</Grid> | ||
<Grid item xs={12} md={2}> | ||
<Select | ||
id='dataperiod-select' | ||
name='dataperiod' | ||
options={selectablePeriods} | ||
value={period} | ||
onChange={(e) => setPeriod(e.target.value)} | ||
style={{ | ||
minWidth: '100%', | ||
marginBottom: theme.spacing(2), | ||
}} | ||
formControlStyles={{ width: '100%' }} |
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.
Revert to the old version. The flag has moved up a level, so we don't need to check it here anymore
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.
I see the description is a wip, but we discussed the PR and went through together and it looks good!
Adds support for the new /traffic-search API behind a flag. When active, you'll be able to select month ranges as well as specific single months.
Largely copies the existing network traffic component, and adds some minor tweaks to make it work with the new data.
This is quite rough, but it gives us a base to build on for later. There's still things that we need to solve for in following PRs.