Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix: issues with compose ticket (#58870)

Alex V36c89ea8d09d
diff --git a/frontend/src/layout/GlobalModals.tsx b/frontend/src/layout/GlobalModals.tsx
index e7def43028be..51654f0bd759 100644
--- a/frontend/src/layout/GlobalModals.tsx
+++ b/frontend/src/layout/GlobalModals.tsx
@@ -20,6 +20,7 @@ import { InviteModal } from 'scenes/settings/organization/InviteModal'
import { PreviewingCustomCssModal } from 'scenes/themes/PreviewingCustomCssModal'
import { MaybeWelcomeDialog } from 'scenes/welcome/WelcomeDialog'
+import { ComposeTicketModal } from 'products/conversations/frontend/components/ComposeTicket'
import { LogsViewerModal } from 'products/logs/frontend/components/LogsViewer/LogsViewerModal'
import type { globalModalsLogicType } from './GlobalModalsType'
@@ -87,6 +88,7 @@ export function GlobalModals(): JSX.Element {
{superpowersEnabled && <SuperpowersModal />}
<ConfigurePinnedTabsModal isOpen={isConfigurePinnedTabsModalOpen} onClose={hideConfigurePinnedTabsModal} />
<MaybeWelcomeDialog />
+ <ComposeTicketModal />
</>
)
}
diff --git a/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx b/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx
index c3e268538fd5..1b2edfcba553 100644
--- a/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx
+++ b/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx
@@ -12,7 +12,6 @@ import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
import { composeTicketLogic } from './composeTicketLogic'
-import { ComposeTicketModal } from './ComposeTicketModal'
interface ComposeTicketButtonProps {
size?: LemonButtonProps['size']
@@ -85,7 +84,6 @@ export function ComposeTicketButton({
{iconOnly ? null : 'New ticket'}
</LemonButton>
</Popover>
- <ComposeTicketModal />
</>
)
}
diff --git a/products/conversations/frontend/components/ComposeTicket/composeTicketLogic.ts b/products/conversations/frontend/components/ComposeTicket/composeTicketLogic.ts
index e043bd308c04..29727623ea36 100644
--- a/products/conversations/frontend/components/ComposeTicket/composeTicketLogic.ts
+++ b/products/conversations/frontend/components/ComposeTicket/composeTicketLogic.ts
@@ -36,6 +36,7 @@ export const composeTicketLogic = kea<composeTicketLogicType>([
'',
{
setRecipientEmail: (_, { email }) => email,
+ openComposeModal: () => '',
resetForm: () => '',
},
],
@@ -43,6 +44,7 @@ export const composeTicketLogic = kea<composeTicketLogicType>([
'',
{
setRecipientDistinctId: (_, { distinctId }) => distinctId,
+ openComposeModal: () => '',
resetForm: () => '',
},
],
@@ -50,6 +52,7 @@ export const composeTicketLogic = kea<composeTicketLogicType>([
'',
{
setEmailSubject: (_, { subject }) => subject,
+ openComposeModal: () => '',
resetForm: () => '',
},
],
@@ -57,6 +60,7 @@ export const composeTicketLogic = kea<composeTicketLogicType>([
'',
{
setEmailConfigId: (_, { configId }) => configId,
+ openComposeModal: () => '',
resetForm: () => '',
},
],
@@ -65,6 +69,7 @@ export const composeTicketLogic = kea<composeTicketLogicType>([
{
submitCompose: () => true,
submitComposeFinished: () => false,
+ openComposeModal: () => false,
resetForm: () => false,
},
],