Skip to content

Commit f159bf3

Browse files
authored
chore: change email to plumber support form (#885)
* Updating step error for users to contact us via support form instead of Plumber's email * Change [email protected] to https://go.gov.sg/plumber-support ## Before & After Screenshots **BEFORE**: ***Editor*** <img width="870" alt="Screenshot 2025-03-04 at 2 54 11 PM" src="https://github.com/user-attachments/assets/d4cd7638-ffda-49fb-9e00-4b71f186cf5a" /> <img width="864" alt="Screenshot 2025-03-04 at 2 55 52 PM" src="https://github.com/user-attachments/assets/55ca63d2-0e14-48ec-8f42-081f96d16d57" /> ***Executions Page*** <img width="1268" alt="Screenshot 2025-03-04 at 2 55 08 PM" src="https://github.com/user-attachments/assets/b9708c16-4d91-4f50-ac51-2a5d1d530d04" /> **AFTER**: ***Editor*** <img width="872" alt="Screenshot 2025-03-04 at 2 52 22 PM" src="https://github.com/user-attachments/assets/eb44dd82-fbf7-4ad2-8d0d-58c4730e8edc" /> <img width="868" alt="Screenshot 2025-03-04 at 2 53 19 PM" src="https://github.com/user-attachments/assets/1d637dc3-f70b-4f29-8fd6-0964b64bd480" /> ***Executions Page*** <img width="1176" alt="Screenshot 2025-03-04 at 2 52 36 PM" src="https://github.com/user-attachments/assets/9cf37289-bb99-4144-9bbc-da7c5dd0c52a" /> ## How to test - [ ] Create error by clicking on 'Test step' before all required field are completed. Verify that contact link is the support form link instead of support email - [ ] Create a step error. Verify that contact link is the support form link instead of support email - [ ] Publish a pipe that will throw an error. Verify that contact link is the support form link instead of support email
1 parent 046525f commit f159bf3

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

packages/frontend/src/components/ErrorResult/GenericErrorResult.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Box, Collapse, Text } from '@chakra-ui/react'
55
import { Button, Infobox } from '@opengovsg/design-system-react'
66

77
import JSONViewer from '@/components/JSONViewer'
8+
import { SUPPORT_FORM_LINK } from '@/config/urls'
89

910
interface GenericErrorResultProps {
1011
errorDetails: IJSONObject
@@ -29,16 +30,20 @@ export default function GenericErrorResult(props: GenericErrorResultProps) {
2930
{`Check if you have configured ${
3031
isTestRun ? 'the steps above' : 'this step'
3132
} correctly and retest. If
32-
this error still persists, contact us at [email protected]. `}
33-
<Button
34-
onClick={toggleDropdown}
35-
variant="link"
36-
size="sm"
37-
sx={{ textDecoration: 'underline' }}
38-
>
39-
View error details below.
40-
</Button>
33+
this error still persists, contact us at `}
34+
<Text as="a" href={SUPPORT_FORM_LINK} target="_blank">
35+
{SUPPORT_FORM_LINK}
36+
</Text>
37+
.
4138
</Text>
39+
<Button
40+
onClick={toggleDropdown}
41+
variant="link"
42+
size="sm"
43+
sx={{ textDecoration: 'underline' }}
44+
>
45+
View error details below.
46+
</Button>
4247

4348
<Box>
4449
<Collapse in={isOpen}>

packages/frontend/src/components/ErrorResult/SpecificErrorResult.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '@opengovsg/design-system-react'
1313

1414
import JSONViewer from '@/components/JSONViewer'
15+
import { SUPPORT_FORM_LINK } from '@/config/urls'
1516
import { RETRY_PARTIAL_STEP } from '@/graphql/mutations/retry-partial-step'
1617
import { GET_EXECUTION_STEPS } from '@/graphql/queries/get-execution-steps'
1718

@@ -21,8 +22,7 @@ interface SpecificErrorResultProps {
2122
executionStepId?: string
2223
}
2324

24-
const contactPlumberMessage =
25-
'If this error still persists, contact us at [email protected].'
25+
const contactPlumberMessage = `If this error still persists, contact us at [${SUPPORT_FORM_LINK}](${SUPPORT_FORM_LINK}).`
2626

2727
export default function SpecificErrorResult(props: SpecificErrorResultProps) {
2828
const { errorDetails, isTestRun, executionStepId } = props

packages/frontend/src/config/urls.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,4 @@ export const STATUS_LINK = 'https://status.plumber.gov.sg/'
8383
export const SGID_CHECK_ELIGIBILITY_URL =
8484
'https://docs.id.gov.sg/faq-users#as-a-government-officer-why-am-i-not-able-to-login-to-my-work-tool-using-sgid'
8585
export const TEMPLATES_FORM_LINK = 'https://go.gov.sg/request-template'
86+
export const SUPPORT_FORM_LINK = 'https://go.gov.sg/plumber-support'

0 commit comments

Comments
 (0)