@@ -12,11 +12,13 @@ import { DeploymentsChart } from './deployments-chart'
1212import { DurationChart } from './duration-chart'
1313import { ProjectsChart } from './projects-chart'
1414import { GitAnalyticsChart } from './git-analytics-chart'
15- import { InfrastructureChart } from './infrastructure-chart'
1615
1716interface GitData {
17+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1818 analytics : any [ ]
19+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1920 distribution : any [ ]
21+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2022 branches : any [ ]
2123}
2224
@@ -29,16 +31,19 @@ export default function VercelDashboard() {
2931 } )
3032
3133 const [ isLoading , setIsLoading ] = useState ( true )
34+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3235 const [ metrics , setMetrics ] = useState < any > ( )
36+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3337 const [ deploymentsData , setDeploymentsData ] = useState < any [ ] > ( [ ] )
38+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3439 const [ durationData , setDurationData ] = useState < any [ ] > ( [ ] )
40+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3541 const [ projectsData , setProjectsData ] = useState < any [ ] > ( [ ] )
3642 const [ gitData , setGitData ] = useState < GitData > ( {
3743 analytics : [ ] ,
3844 distribution : [ ] ,
3945 branches : [ ]
4046 } )
41- const [ infraData , setInfraData ] = useState < any [ ] > ( [ ] )
4247
4348 useEffect ( ( ) => {
4449 async function fetchData ( ) {
@@ -60,7 +65,6 @@ export default function VercelDashboard() {
6065 gitAnalyticsResult ,
6166 gitDistributionResult ,
6267 branchResult ,
63- infraResult
6468 ] = await Promise . all ( [
6569 pipe ( token , 'vercel_deployment_metrics' , params ) ,
6670 pipe ( token , 'vercel_deployments_over_time' , params ) ,
@@ -69,7 +73,6 @@ export default function VercelDashboard() {
6973 pipe ( token , 'vercel_git_analytics' , params ) ,
7074 pipe ( token , 'vercel_git_distribution' , params ) ,
7175 pipe ( token , 'vercel_branch_distribution' , params ) ,
72- pipe ( token , 'vercel_infrastructure_stats' , params )
7376 ] )
7477
7578 setMetrics ( metricsResult ?. data ?. [ 0 ] )
@@ -81,7 +84,6 @@ export default function VercelDashboard() {
8184 distribution : gitDistributionResult ?. data ?? [ ] ,
8285 branches : branchResult ?. data ?? [ ]
8386 } )
84- setInfraData ( infraResult ?. data ?? [ ] )
8587 } catch ( error ) {
8688 console . error ( 'Failed to fetch data:' , error )
8789 } finally {
@@ -171,18 +173,6 @@ export default function VercelDashboard() {
171173 />
172174 </ CardContent >
173175 </ Card >
174-
175- { /* <Card>
176- <CardHeader>
177- <CardTitle>Infrastructure</CardTitle>
178- </CardHeader>
179- <CardContent>
180- <InfrastructureChart
181- data={infraData}
182- isLoading={isLoading}
183- />
184- </CardContent>
185- </Card> */ }
186176 </ div >
187177 </ div >
188178 )
0 commit comments