Skip to content

Commit c889165

Browse files
committed
remove plumber stats
1 parent 503e85a commit c889165

File tree

5 files changed

+1
-103
lines changed

5 files changed

+1
-103
lines changed

packages/backend/src/config/redis.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const REDIS_DB_INDEX = {
1010
RATE_LIMIT: 1,
1111
PIPE_ERRORS: 2,
1212
APP_DATA: 3,
13-
GLOBAL_DATA: 4,
1413
}
1514

1615
function reconnectOnError(err: Error) {

packages/backend/src/graphql/queries/get-plumber-stats.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/backend/src/graphql/query-resolvers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import getFlow from './queries/get-flow'
1111
import getFlowTransferDetails from './queries/get-flow-transfer-details'
1212
import getFlows from './queries/get-flows'
1313
import getPendingFlowTransfers from './queries/get-pending-flow-transfers'
14-
import getPlumberStats from './queries/get-plumber-stats'
1514
import getTemplates from './queries/get-templates'
1615
import getTestExecutionSteps from './queries/get-test-execution-steps'
1716
import healthcheck from './queries/healthcheck'
@@ -43,7 +42,6 @@ export default {
4342
getDynamicData,
4443
getCurrentUser,
4544
healthcheck,
46-
getPlumberStats,
4745
getPendingFlowTransfers,
4846
getFlowTransferDetails,
4947
getTemplates,

packages/frontend/src/graphql/queries/get-plumber-stats.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/frontend/src/pages/Landing/HeroSection.tsx

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
import { useQuery } from '@apollo/client'
2-
import {
3-
Box,
4-
Flex,
5-
Heading,
6-
HStack,
7-
Link,
8-
Skeleton,
9-
Text,
10-
} from '@chakra-ui/react'
1+
import { Box, Flex, Heading, HStack, Link, Text } from '@chakra-ui/react'
112
import { Button } from '@opengovsg/design-system-react'
123
import Lottie from 'lottie-react'
134

145
import HeroLottie from '@/assets/landing/HeroLottie.json'
156
import * as URLS from '@/config/urls'
16-
import { GET_PLUMBER_STATS } from '@/graphql/queries/get-plumber-stats'
177

188
import BackgroundPattern from './components/BackgroundPattern'
199

20-
function estimateCountByHundreds(count: number): string {
21-
return count < 100
22-
? count.toString()
23-
: (Math.round(count / 100) * 100).toLocaleString() + '+'
24-
}
25-
2610
export default function HeroSection() {
27-
// TODO: Remove this if really not needed
28-
const { loading, data } = useQuery(GET_PLUMBER_STATS)
29-
const userCount = data?.getPlumberStats.userCount
30-
const executionCount = data?.getPlumberStats.executionCount
31-
3211
return (
3312
<Box position="relative" overflow="hidden">
3413
<BackgroundPattern />
@@ -70,28 +49,6 @@ export default function HeroSection() {
7049
Automate manual processes in hours, not weeks
7150
</Text>
7251

73-
{/* <Text
74-
textStyle="subhead-1"
75-
fontSize={{ base: 'md', sm: 'xl', lg: '2xl' }}
76-
mt={8}
77-
>
78-
<Skeleton display="inline" isLoaded={!loading}>
79-
<Text as="span" color="primary.500">
80-
{executionCount ? estimateCountByHundreds(executionCount) : ''}{' '}
81-
</Text>
82-
{` tasks have been automated`}
83-
</Skeleton>
84-
</Text>
85-
86-
<Text textStyle="subhead-1" mt={2}>
87-
<Text as="span" color="primary.500">
88-
<Skeleton display="inline" isLoaded={!loading}>
89-
{estimateCountByHundreds(userCount)}
90-
</Skeleton>
91-
</Text>
92-
{` public officers have started automating their work`}
93-
</Text> */}
94-
9552
<HStack spacing={6} mt={10} align="center">
9653
<Button
9754
as="a"

0 commit comments

Comments
 (0)