Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove code for finished experiment #21018

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions frontend/src/lib/components/Support/SupportForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { IconBug, IconInfo, IconQuestion } from '@posthog/icons'
import {
LemonBanner,
LemonInput,
LemonSegmentedButton,
LemonSegmentedButtonOption,
Expand All @@ -16,7 +15,6 @@ import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonFileInput } from 'lib/lemon-ui/LemonFileInput/LemonFileInput'
import { LemonSelect } from 'lib/lemon-ui/LemonSelect/LemonSelect'
import { LemonTextArea } from 'lib/lemon-ui/LemonTextArea/LemonTextArea'
import posthog from 'posthog-js'
import { useEffect, useRef } from 'react'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { userLogic } from 'scenes/userLogic'
Expand Down Expand Up @@ -97,40 +95,6 @@ export function SupportForm(): JSX.Element | null {
<LemonField name="target_area" label="Topic">
<LemonSelect fullWidth options={TARGET_AREA_TO_NAME} />
</LemonField>
{posthog.getFeatureFlag('show-troubleshooting-docs-in-support-form') === 'test-replay-banner' &&
sendSupportRequest.target_area === 'session_replay' && (
<LemonBanner type="info">
<>
We're pretty proud of our docs. Check out these helpful links:
<ul>
<li>
<Link target="_blank" to="https://posthog.com/docs/session-replay/troubleshooting">
Session replay troubleshooting
</Link>
</li>
<li>
<Link
target="_blank"
to="https://posthog.com/docs/session-replay/how-to-control-which-sessions-you-record"
>
How to control which sessions you record
</Link>
</li>
</ul>
</>
</LemonBanner>
)}
{posthog.getFeatureFlag('show-troubleshooting-docs-in-support-form') === 'test-replay-banner' &&
sendSupportRequest.target_area === 'toolbar' && (
<LemonBanner type="info">
<>
We're pretty proud of our docs.{' '}
<Link target="_blank" to="https://posthog.com/docs/toolbar#troubleshooting-and-faq">
Check out this troubleshooting guide
</Link>
</>
</LemonBanner>
)}
<LemonField
name="message"
label={sendSupportRequest.kind ? SUPPORT_TICKET_KIND_TO_PROMPT[sendSupportRequest.kind] : 'Content'}
Expand Down
Loading