diff --git a/cypress/e2e/auth.cy.ts b/cypress/e2e/auth.cy.ts index dd514f1121c23..5355f3011b12e 100644 --- a/cypress/e2e/auth.cy.ts +++ b/cypress/e2e/auth.cy.ts @@ -84,7 +84,7 @@ describe('Auth', () => { cy.visit('/signup') cy.location('pathname').should('eq', '/project/1') }) - + it('Logout in another tab results in logout in the current tab too', () => { cy.window().then(async (win) => { // Hit /logout *in the background* by using fetch() diff --git a/cypress/productAnalytics/index.ts b/cypress/productAnalytics/index.ts index cf94691bf657b..b523a4e970efb 100644 --- a/cypress/productAnalytics/index.ts +++ b/cypress/productAnalytics/index.ts @@ -209,14 +209,14 @@ export const dashboard = { cy.get('[data-attr="prop-val-0"]').click({ force: true }) cy.get('.PropertyFilterButton').should('have.length', 1) }, - addPropertyFilter(type: string = "Browser", value: string = "Chrome"): void { + addPropertyFilter(type: string = 'Browser', value: string = 'Chrome'): void { cy.get('.PropertyFilterButton').should('have.length', 0) cy.get('[data-attr="property-filter-0"]').click() - cy.get('[data-attr="taxonomic-filter-searchfield"]').click().type("Browser").wait(1000) + cy.get('[data-attr="taxonomic-filter-searchfield"]').click().type('Browser').wait(1000) cy.get('[data-attr="prop-filter-event_properties-0"]').click({ force: true }) cy.get('.ant-select-selector').type(value) cy.get('.ant-select-item-option-content').click({ force: true }) - } + }, } export function createInsight(insightName: string): void { diff --git a/frontend/__snapshots__/scenes-app-insights--user-paths-edit--light--webkit.png b/frontend/__snapshots__/scenes-app-insights--user-paths-edit--light--webkit.png index 93d52b7379a03..b7e136c7058b1 100644 Binary files a/frontend/__snapshots__/scenes-app-insights--user-paths-edit--light--webkit.png and b/frontend/__snapshots__/scenes-app-insights--user-paths-edit--light--webkit.png differ diff --git a/frontend/src/scenes/data-warehouse/ViewLinkModal.tsx b/frontend/src/scenes/data-warehouse/ViewLinkModal.tsx index b34b566b7411e..548c9c5695ef1 100644 --- a/frontend/src/scenes/data-warehouse/ViewLinkModal.tsx +++ b/frontend/src/scenes/data-warehouse/ViewLinkModal.tsx @@ -1,11 +1,21 @@ import './ViewLinkModal.scss' import { IconTrash } from '@posthog/icons' -import { LemonButton, LemonDivider, LemonInput, LemonModal, LemonSelect, LemonTag } from '@posthog/lemon-ui' +import { + LemonButton, + LemonDivider, + LemonDropdown, + LemonInput, + LemonModal, + LemonSelect, + LemonTag, +} from '@posthog/lemon-ui' import { useActions, useValues } from 'kea' import { Field, Form } from 'kea-forms' import { CodeSnippet, Language } from 'lib/components/CodeSnippet' +import { HogQLEditor } from 'lib/components/HogQLEditor/HogQLEditor' import { IconSwapHoriz } from 'lib/lemon-ui/icons' +import { useState } from 'react' import { viewLinkLogic } from 'scenes/data-warehouse/viewLinkLogic' import { DatabaseSchemaQueryResponseField } from '~/queries/schema' @@ -44,8 +54,19 @@ export function ViewLinkForm(): JSX.Element { error, fieldName, isNewJoin, + selectedSourceKey, + selectedJoiningKey, + sourceIsUsingHogQLExpression, + joiningIsUsingHogQLExpression, } = useValues(viewLinkLogic) - const { selectJoiningTable, toggleJoinTableModal, selectSourceTable, setFieldName } = useActions(viewLinkLogic) + const { + selectJoiningTable, + toggleJoinTableModal, + selectSourceTable, + setFieldName, + selectSourceKey, + selectJoiningKey, + } = useActions(viewLinkLogic) return (