Skip to content

Commit

Permalink
Hardcode org ids for presentation vid
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Aug 29, 2024
1 parent 35f6c27 commit ecd866f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build and Deploy to Netlify
on:
push:
branches: [main]
branches:
- main
- d/**
pull_request:
jobs:
build-dev-explorer:
Expand Down
26 changes: 21 additions & 5 deletions src/components/Accounts/List.tsx
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -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<FilterQueryParams>()
Expand All @@ -45,6 +57,7 @@ export const AccountsList = () => {
params: {
page,
organizationId: accountId,
limit: 200,
},
placeholderData: keepPreviousData,
})
Expand All @@ -63,9 +76,12 @@ export const AccountsList = () => {

return (
<>
{orgs?.organizations.map((org, i) => (
<AccountCard key={i} id={org.organizationID} electionCount={org.electionCount} />
))}
{orgs?.organizations.map(
(org, i) =>
whitelist.includes(org.organizationID) && (
<AccountCard key={i} id={org.organizationID} electionCount={org.electionCount} />
)
)}
<RoutedPagination pagination={orgs.pagination} />
</>
)
Expand Down

2 comments on commit ecd866f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.