diff --git a/docs/src/components/Dashboard/AllRepositories.tsx b/docs/src/components/Dashboard/AllRepositories.tsx index ee7189daa3..a32c29a08b 100644 --- a/docs/src/components/Dashboard/AllRepositories.tsx +++ b/docs/src/components/Dashboard/AllRepositories.tsx @@ -10,7 +10,7 @@ const AllRepositories = ({ location }: PageRendererProps) => { const { allTracking }: SchemeTrackingNode = useStaticQuery(graphql` query AllRepositoriesTracking { # get only the latest - allTracking(sort: { fields: createdAt, order: DESC }, limit: 8) { + allTracking(sort: { fields: createdAt, order: DESC }, limit: 11) { nodes { fields { currentComponents diff --git a/docs/src/components/Dashboard/AllRepositoriesComponent.tsx b/docs/src/components/Dashboard/AllRepositoriesComponent.tsx index 55faadf58e..b2fb465d78 100644 --- a/docs/src/components/Dashboard/AllRepositoriesComponent.tsx +++ b/docs/src/components/Dashboard/AllRepositoriesComponent.tsx @@ -41,7 +41,7 @@ const AllRepositoriesComponent = ({ location }: PageRendererProps) => { const { allTracking }: SchemeTrackingNode = useStaticQuery(graphql` query AllTrackingComponentQuery { - allTracking(sort: { fields: createdAt, order: DESC }, limit: 8) { + allTracking(sort: { fields: createdAt, order: DESC }, limit: 11) { nodes { createdAt name diff --git a/docs/src/components/Dashboard/Difference.tsx b/docs/src/components/Dashboard/Difference.tsx index 2b729025ef..64a26cad64 100644 --- a/docs/src/components/Dashboard/Difference.tsx +++ b/docs/src/components/Dashboard/Difference.tsx @@ -49,8 +49,9 @@ const DataDiffTemplate = ({ location }: PageRendererProps) => { `); const { nodes } = allTracking; - const first = nodes.slice(0, 8); - const last = nodes.slice(-8); + const TRACKED_REPOSITORIES_COUNT = 11; + const first = nodes.slice(0, TRACKED_REPOSITORIES_COUNT); + const last = nodes.slice(-TRACKED_REPOSITORIES_COUNT); const getSum = (data: TrackingNode[]) => data.reduce((acc, cur) => { diff --git a/docs/src/components/Dashboard/Repository.tsx b/docs/src/components/Dashboard/Repository.tsx index 5f28c2bb4d..664a4d5f46 100644 --- a/docs/src/components/Dashboard/Repository.tsx +++ b/docs/src/components/Dashboard/Repository.tsx @@ -13,7 +13,7 @@ import { SchemeTrackingNode } from "./interfaces"; export default function Tracking({ location }: PageRendererProps) { const { allTracking }: SchemeTrackingNode = useStaticQuery(graphql` query TrackingDataQuery { - allTracking(sort: { fields: createdAt, order: DESC }, limit: 8) { + allTracking(sort: { fields: createdAt, order: DESC }, limit: 11) { nodes { id name diff --git a/docs/src/components/Dashboard/RepositoryComponent.tsx b/docs/src/components/Dashboard/RepositoryComponent.tsx index f141f7ca4a..0080d61d07 100644 --- a/docs/src/components/Dashboard/RepositoryComponent.tsx +++ b/docs/src/components/Dashboard/RepositoryComponent.tsx @@ -28,7 +28,7 @@ const ComponentPage = ({ location }) => { const { allTracking }: SchemeTrackingNode = useStaticQuery(graphql` query TrackingComponentQuery { - allTracking(sort: { fields: createdAt, order: DESC }, limit: 8) { + allTracking(sort: { fields: createdAt, order: DESC }, limit: 11) { nodes { createdAt name diff --git a/docs/src/components/Dashboard/Tracking.tsx b/docs/src/components/Dashboard/Tracking.tsx index 3f3065ec4e..6920d82458 100644 --- a/docs/src/components/Dashboard/Tracking.tsx +++ b/docs/src/components/Dashboard/Tracking.tsx @@ -12,7 +12,7 @@ const Tracking = ({ location }: PageRendererProps) => { const [devMode] = useDevMode(); const { allTracking }: SchemeTrackingNode = useStaticQuery(graphql` query TrackingPageQuery { - allTracking(sort: { fields: createdAt, order: DESC }, limit: 8) { + allTracking(sort: { fields: createdAt, order: DESC }, limit: 11) { nodes { name createdAt