Skip to content

Commit

Permalink
chore: Remove old prompts work (#20229)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Feb 12, 2024
1 parent 764159c commit f691f1e
Show file tree
Hide file tree
Showing 21 changed files with 13 additions and 1,543 deletions.
2 changes: 0 additions & 2 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ beforeEach(() => {
Cypress.env('POSTHOG_PROPERTY_CURRENT_TEST_FULL_TITLE', Cypress.currentTest.titlePath.join(' > '))
Cypress.env('POSTHOG_PROPERTY_GITHUB_ACTION_RUN_URL', process.env.GITHUB_ACTION_RUN_URL)

cy.intercept('api/prompts/my_prompts/', { sequences: [], state: {} })

cy.intercept('https://app.posthog.com/decide/*', (req) =>
req.reply(
decideResponse({
Expand Down
17 changes: 0 additions & 17 deletions frontend/src/lib/components/HelpButton/HelpButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ import {
IconBugReport,
IconFeedback,
IconHelpOutline,
IconMessages,
IconQuestionAnswer,
IconSupport,
} from 'lib/lemon-ui/icons'
import { LemonMenu } from 'lib/lemon-ui/LemonMenu'
import { DefaultAction, inAppPromptLogic } from 'lib/logic/inAppPrompt/inAppPromptLogic'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'

Expand Down Expand Up @@ -83,9 +81,6 @@ export function HelpButton({
const { reportHelpButtonUsed } = useActions(eventUsageLogic)
const { isHelpVisible } = useValues(helpButtonLogic({ key: customKey }))
const { toggleHelp, hideHelp } = useActions(helpButtonLogic({ key: customKey }))
const { validProductTourSequences } = useValues(inAppPromptLogic)
const { runFirstValidSequence, promptAction } = useActions(inAppPromptLogic)
const { isPromptVisible } = useValues(inAppPromptLogic)
const { openSupportForm } = useActions(supportLogic)
const { isCloudOrDev } = useValues(preflightLogic)

Expand Down Expand Up @@ -152,18 +147,6 @@ export function HelpButton({
to: `https://posthog.com/docs${HELP_UTM_TAGS}`,
targetBlank: true,
},
validProductTourSequences.length > 0 && {
label: isPromptVisible ? 'Stop tutorial' : 'Explain this page',
icon: <IconMessages />,
onClick: () => {
if (isPromptVisible) {
promptAction(DefaultAction.SKIP)
} else {
runFirstValidSequence({ runDismissedOrCompleted: true })
}
hideHelp()
},
},
],
},
]}
Expand Down
77 changes: 0 additions & 77 deletions frontend/src/lib/logic/inAppPrompt/inAppPromptEventCaptureLogic.ts

This file was deleted.

Loading

0 comments on commit f691f1e

Please sign in to comment.