diff --git a/report/www/pages/_app.tsx b/report/www/pages/_app.tsx index c5e67424..b0840b9b 100644 --- a/report/www/pages/_app.tsx +++ b/report/www/pages/_app.tsx @@ -110,6 +110,7 @@ function App({ Component, pageProps }: AppProps) { topBottom: "10v", }), }} + id="content" > diff --git a/report/www/pages/summary/[id].tsx b/report/www/pages/summary/[id].tsx index bf8640ac..11b4274a 100644 --- a/report/www/pages/summary/[id].tsx +++ b/report/www/pages/summary/[id].tsx @@ -122,7 +122,8 @@ const summaryConfigs: Record = { renderCell: (params) => { if (params.value === "A") { return ( - params.row.betagouv && ( + params.row.betagouv && + params.row.betagouv.attributes.stats_url && ( = { renderCell: (params) => { if (params.value === "A") { return ( - params.row.betagouv && ( + params.row.betagouv && + params.row.betagouv.attributes.budget_url && ( = { href={params.row.betagouv.attributes.budget_url} target="_blank" > - /{params.row.betagouv.attributes.budget_url} + {params.row.betagouv.attributes.budget_url} ) ); @@ -201,26 +203,27 @@ const Summary = ({ id }: { id: string }) => { field: "url", headerName: `URL`, width: 400, - renderCell: (params) => ( -
- + params.value && ( +
- -   - {smallUrl(params.value)} - -
- ), + + +   + {smallUrl(params.value)} + +
+ ), }, isToolEnabled("betagouv") && getPhaseColumn(), ...summaryConfig.columns, diff --git a/report/www/src/__tests__/__snapshots__/Dashboard.test.tsx.snap b/report/www/src/__tests__/__snapshots__/Dashboard.test.tsx.snap index 3c97b916..3cc605f0 100644 --- a/report/www/src/__tests__/__snapshots__/Dashboard.test.tsx.snap +++ b/report/www/src/__tests__/__snapshots__/Dashboard.test.tsx.snap @@ -1267,7 +1267,7 @@ exports[`Should render full Dashboard 1`] = ` onClick={[Function]} onMouseEnter={[Function]} onTouchStart={[Function]} - title="Voir les détails des standards pour l'url annuaire-entreprises-data-gouv-fr" + title="Voir la détection des stats pour l'url annuaire-entreprises-data-gouv-fr" >

+