From ecd866f58af277dfceb7a76908349ecc69156398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=92scar=20Casajuana?= Date: Thu, 29 Aug 2024 11:59:55 +0200 Subject: [PATCH] Hardcode org ids for presentation vid --- .github/workflows/netlify.yml | 4 +++- src/components/Accounts/List.tsx | 26 +++++++++++++++++++++----- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml index 86d8bd0..8c9dc94 100644 --- a/.github/workflows/netlify.yml +++ b/.github/workflows/netlify.yml @@ -1,7 +1,9 @@ name: Build and Deploy to Netlify on: push: - branches: [main] + branches: + - main + - d/** pull_request: jobs: build-dev-explorer: diff --git a/src/components/Accounts/List.tsx b/src/components/Accounts/List.tsx index 7d8aaf4..752f686 100644 --- a/src/components/Accounts/List.tsx +++ b/src/components/Accounts/List.tsx @@ -1,12 +1,12 @@ import { keepPreviousData } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' +import { AccountCard } from '~components/Accounts/Card' +import { ContentError, NoResultsError } from '~components/Layout/ContentError' import { InputSearch } from '~components/Layout/Inputs' import { LoadingCards } from '~components/Layout/Loading' -import { AccountCard } from '~components/Accounts/Card' import { useRoutedPagination } from '~components/Pagination/PaginationProvider' import { RoutedPagination } from '~components/Pagination/RoutedPagination' import { useOrganizationList } from '~queries/accounts' -import { ContentError, NoResultsError } from '~components/Layout/ContentError' import { useRoutedPaginationQueryParams } from '~src/router/use-query-params' type FilterQueryParams = { @@ -30,6 +30,18 @@ export const AccountsFilter = () => { ) } +const whitelist = [ + 'f82f1c5f48a4751b65c5c69a7de85f337b82b2d6', + 'a52f5588f7bb9f3c6d6b7cf003a5b03f4589edea', + '1259afa8e3e1c6526b4b9cad75eb07e2c231cc65', + '2b142d1a8e95a2c7b02a795df4f9a1d18ee51215', + '63ca71be6765bc582f254eb1c49cf9739bbf798e', + '5fb10cc1027db85859b89153e55f3e3899d76e79', + '11f1f8992def6a59ffdfb9bda639dc309a7c289c', + '8fc30a4c3d11b3b866947c29e4a5525d71f1ff33', + 'a79bf878a219a469c45917b866afc9d681df736f', +] + export const AccountsList = () => { const { page }: { page?: number } = useRoutedPagination() const { queryParams } = useRoutedPaginationQueryParams() @@ -45,6 +57,7 @@ export const AccountsList = () => { params: { page, organizationId: accountId, + limit: 200, }, placeholderData: keepPreviousData, }) @@ -63,9 +76,12 @@ export const AccountsList = () => { return ( <> - {orgs?.organizations.map((org, i) => ( - - ))} + {orgs?.organizations.map( + (org, i) => + whitelist.includes(org.organizationID) && ( + + ) + )} )