From ecb909281824d4fe9005c448fe113c6a24a03931 Mon Sep 17 00:00:00 2001 From: Ben White Date: Fri, 20 Dec 2024 16:17:16 +0100 Subject: [PATCH] Fixes --- .../panels/activity/SidePanelActivitySubscriptions.tsx | 1 + frontend/src/scenes/actions/ActionHogFunctions.tsx | 1 + .../scenes/data-management/definition/DefinitionView.tsx | 7 ++++--- .../scenes/early-access-features/EarlyAccessFeature.tsx | 1 + .../error-tracking/alerts/ErrorTrackingAlertsScene.tsx | 5 +++-- .../pipeline/hogfunctions/list/LinkedHogFunctions.tsx | 3 +++ .../pipeline/hogfunctions/list/hogFunctionListLogic.tsx | 3 ++- frontend/src/scenes/pipeline/hogfunctions/urls.ts | 3 ++- frontend/src/scenes/surveys/SurveyView.tsx | 1 + frontend/src/scenes/surveys/Surveys.tsx | 1 + frontend/src/types.ts | 6 +++++- 11 files changed, 24 insertions(+), 8 deletions(-) diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivitySubscriptions.tsx b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivitySubscriptions.tsx index d450e2641e1f5..b2d37cafc39bf 100644 --- a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivitySubscriptions.tsx +++ b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivitySubscriptions.tsx @@ -6,6 +6,7 @@ export function SidePanelActivitySubscriptions(): JSX.Element {

Get notified of your team's activity

{isEvent && definition.created_at && ( -
+
First seen
@@ -191,7 +191,7 @@ export function DefinitionView(props: DefinitionLogicProps = {}): JSX.Element {
)} {isEvent && definition.last_seen_at && ( -
+
Last seen
@@ -200,7 +200,7 @@ export function DefinitionView(props: DefinitionLogicProps = {}): JSX.Element { )} {isProperty && ( -
+
Property type
{(definition as PropertyDefinition).property_type ?? '-'}
@@ -218,6 +218,7 @@ export function DefinitionView(props: DefinitionLogicProps = {}): JSX.Element {

Get notified via Slack, webhooks or more whenever this event is captured.

Notifications

Get notified when people opt in or out of your feature.

diff --git a/frontend/src/scenes/pipeline/hogfunctions/list/hogFunctionListLogic.tsx b/frontend/src/scenes/pipeline/hogfunctions/list/hogFunctionListLogic.tsx index 44a20fdb1900e..a23c47ef000e1 100644 --- a/frontend/src/scenes/pipeline/hogfunctions/list/hogFunctionListLogic.tsx +++ b/frontend/src/scenes/pipeline/hogfunctions/list/hogFunctionListLogic.tsx @@ -25,6 +25,7 @@ export type HogFunctionListFilters = { } export type HogFunctionListLogicProps = { + logicKey?: string type: HogFunctionTypeType defaultFilters?: HogFunctionListFilters forceFilters?: HogFunctionListFilters @@ -33,7 +34,7 @@ export type HogFunctionListLogicProps = { export const hogFunctionListLogic = kea([ props({} as HogFunctionListLogicProps), - key((props) => (props.syncFiltersWithUrl ? 'scene' : 'default')), + key((props) => (props.syncFiltersWithUrl ? 'scene' : 'default') + (props.logicKey || props.type)), path((id) => ['scenes', 'pipeline', 'hogFunctionListLogic', id]), connect({ values: [ diff --git a/frontend/src/scenes/pipeline/hogfunctions/urls.ts b/frontend/src/scenes/pipeline/hogfunctions/urls.ts index 7f8448479adee..3847306c811c9 100644 --- a/frontend/src/scenes/pipeline/hogfunctions/urls.ts +++ b/frontend/src/scenes/pipeline/hogfunctions/urls.ts @@ -15,7 +15,8 @@ export function hogFunctionUrl(type: HogFunctionTypeType | PipelineStage, id?: s return id ? urls.messagingProvider(id) : urls.messagingProviders() } else if (type === 'broadcast') { return id ? urls.messagingBroadcast(id) : urls.messagingBroadcasts() - } else if (type === 'error_tracking_alert') { + } else if (type === 'internal_destination') { + // TODO: Fix this somehow return urls.errorTrackingAlerts() } return id diff --git a/frontend/src/scenes/surveys/SurveyView.tsx b/frontend/src/scenes/surveys/SurveyView.tsx index 267879c405c43..f31bac21f2987 100644 --- a/frontend/src/scenes/surveys/SurveyView.tsx +++ b/frontend/src/scenes/surveys/SurveyView.tsx @@ -415,6 +415,7 @@ export function SurveyView({ id }: { id: string }): JSX.Element {

Get notified whenever a survey result is submitted

Get notified whenever a survey result is submitted