Update support links (#977)
* Add the new zendesk feedback form URL * Dont wrap handle or display name in the drawer * Add help link * Tune drawer footer layout * Type fixes * make helpdesk urls more composable for future * fix typo --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
This commit is contained in:
parent
3a6073abb8
commit
d442b1cd4c
4 changed files with 71 additions and 15 deletions
|
@ -79,6 +79,7 @@ interface TrackPropertiesMap {
|
|||
// MENU events
|
||||
'Menu:ItemClicked': {url: string}
|
||||
'Menu:FeedbackClicked': {}
|
||||
'Menu:HelpClicked': {}
|
||||
// MOBILE SHELL events
|
||||
'MobileShell:MyProfileButtonPressed': {}
|
||||
'MobileShell:HomeButtonPressed': {}
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
export const FEEDBACK_FORM_URL =
|
||||
'https://docs.google.com/forms/d/e/1FAIpQLSdavFRXTdB6tRobaFrRR2A1gv3b-IBHwQkBmNZTRpoqmcrPrQ/viewform?usp=sf_link'
|
||||
const HELP_DESK_LANG = 'en-us'
|
||||
export const HELP_DESK_URL = `https://blueskyweb.zendesk.com/hc/${HELP_DESK_LANG}`
|
||||
|
||||
const BASE_FEEDBACK_FORM_URL = `${HELP_DESK_URL}/requests/new`
|
||||
export function FEEDBACK_FORM_URL({
|
||||
email,
|
||||
handle,
|
||||
}: {
|
||||
email?: string
|
||||
handle?: string
|
||||
}): string {
|
||||
let str = BASE_FEEDBACK_FORM_URL
|
||||
if (email) {
|
||||
str += `?tf_anonymous_requester_email=${encodeURIComponent(email)}`
|
||||
if (handle) {
|
||||
str += `&tf_17205412673421=${encodeURIComponent(handle)}`
|
||||
}
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
export const MAX_DISPLAY_NAME = 64
|
||||
export const MAX_DESCRIPTION = 256
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue