diff --git a/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions--dark.png b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions--dark.png new file mode 100644 index 000000000000..7cebd1e475f8 Binary files /dev/null and b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions--light.png b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions--light.png new file mode 100644 index 000000000000..1e98f9c306c3 Binary files /dev/null and b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions--light.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions-mobile--dark.png b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions-mobile--dark.png new file mode 100644 index 000000000000..7cebd1e475f8 Binary files /dev/null and b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions-mobile--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions-mobile--light.png b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions-mobile--light.png new file mode 100644 index 000000000000..1e98f9c306c3 Binary files /dev/null and b/frontend/__snapshots__/scenes-app-max-ai--thread-with-opened-suggestions-mobile--light.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome--dark.png b/frontend/__snapshots__/scenes-app-max-ai--welcome--dark.png index 20171f25c6e8..426212ae3038 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome--dark.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome--light.png b/frontend/__snapshots__/scenes-app-max-ai--welcome--light.png index 5e35e475837b..faaa3a80a527 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome--light.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome--light.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--dark.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--dark.png index 3fe4a47524a7..d3f498469745 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--dark.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--light.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--light.png index b67a0e9d9857..92f9be50be87 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--light.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-feature-preview-auto-enrolled--light.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--dark.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--dark.png index 74bf41a03cf4..a28e65f3aa33 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--dark.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--light.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--light.png index d64c059bf3a6..b13896abff50 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--light.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-loading-suggestions--light.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--dark.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--dark.png index 24f0c4b3d3d6..a28e65f3aa33 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--dark.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--light.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--light.png index 7cc0c36aa683..b13896abff50 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--light.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-suggestions-available--light.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--dark.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--dark.png index 4d572e50148e..c088b7c81061 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--dark.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--light.png b/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--light.png index 3c20cdbbc788..eac9a87afcd0 100644 Binary files a/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--light.png and b/frontend/__snapshots__/scenes-app-max-ai--welcome-with-latest-conversations--light.png differ diff --git a/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--dark.png b/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--dark.png index e978bc2d20f4..60799f15fcdc 100644 Binary files a/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--dark.png and b/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--light.png b/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--light.png index 1fe513842d56..87ea55f0efb0 100644 Binary files a/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--light.png and b/frontend/__snapshots__/scenes-app-sidepanels--side-panel-max--light.png differ diff --git a/frontend/package.json b/frontend/package.json index d058ff60616f..1c4658c90ec9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -88,9 +88,11 @@ "@posthog/tailwind": "workspace:*", "@radix-ui/react-accordion": "^1.2.2", "@radix-ui/react-context-menu": "^2.2.6", + "@radix-ui/react-dismissable-layer": "^1.1.10", "@radix-ui/react-dropdown-menu": "^2.1.6", "@radix-ui/react-popover": "^1.1.14", "@radix-ui/react-slot": "^1.1.2", + "@radix-ui/react-toggle-group": "^1.1.10", "@react-hook/size": "^2.1.2", "@stripe/react-stripe-js": "^2.8.0", "@stripe/stripe-js": "^4.5.0", diff --git a/frontend/src/scenes/data-warehouse/editor/QueryPane.tsx b/frontend/src/scenes/data-warehouse/editor/QueryPane.tsx index 87b956e07831..62a584d433a8 100644 --- a/frontend/src/scenes/data-warehouse/editor/QueryPane.tsx +++ b/frontend/src/scenes/data-warehouse/editor/QueryPane.tsx @@ -85,7 +85,7 @@ export function QueryPane(props: QueryPaneProps): JSX.Element { }} introOverride={{ headline: 'What data do you want to analyze?', - description: 'On this page, I can help you write and tweak SQL queries.', + description: 'Let me help you quickly write SQL, and tweak it.', }} >
diff --git a/frontend/src/scenes/max/Max.stories.tsx b/frontend/src/scenes/max/Max.stories.tsx index a4788d8497db..50d09cb3bb08 100644 --- a/frontend/src/scenes/max/Max.stories.tsx +++ b/frontend/src/scenes/max/Max.stories.tsx @@ -2,7 +2,6 @@ import { Meta, StoryFn } from '@storybook/react' import { useActions, useValues } from 'kea' import { MOCK_DEFAULT_ORGANIZATION } from 'lib/api.mock' import { useEffect } from 'react' -import { maxSettingsLogic } from 'scenes/settings/environment/maxSettingsLogic' import { twMerge } from 'tailwind-merge' import { mswDecorator, useStorybookMocks } from '~/mocks/browser' @@ -17,7 +16,7 @@ import { } from './__mocks__/chatResponse.mocks' import conversationList from './__mocks__/conversationList.json' import { MaxInstance, MaxInstanceProps } from './Max' -import { maxLogic } from './maxLogic' +import { maxLogic, QUESTION_SUGGESTIONS_DATA } from './maxLogic' import { maxThreadLogic } from './maxThreadLogic' const meta: Meta = { @@ -72,53 +71,6 @@ export const Welcome: StoryFn = () => { return