-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: adjust navbar scenes #24059
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
867910c
add new scene cateogries and rename nav items
EDsCODE 125efad
Update UI snapshots for `chromium` (1)
github-actions[bot] 91bc8e4
Update UI snapshots for `chromium` (1)
github-actions[bot] 4be7a46
Update UI snapshots for `chromium` (1)
github-actions[bot] 93f74b5
reroute
EDsCODE f902f47
Merge branch 'dw-refactor-scenes' of github.com:PostHog/posthog into …
EDsCODE eadfc50
Merge branch 'master' into dw-refactor-scenes
EDsCODE 9576373
Update UI snapshots for `chromium` (1)
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-8.52 KB
(91%)
frontend/__snapshots__/posthog-3000-navigation--navigation-3000--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10.7 KB
(91%)
frontend/__snapshots__/posthog-3000-navigation--navigation-base--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10 KB
(91%)
frontend/__snapshots__/posthog-3000-navigation--navigation-base--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.33 KB
(90%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-activation--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.82 KB
(91%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-activation--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-262 Bytes
(100%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-docs--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-342 Bytes
(100%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-docs--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.36 KB
(90%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-notebooks--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.5 KB
(91%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-notebooks--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11.8 KB
(90%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-settings--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 KB
(91%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-settings--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-518 Bytes
(99%)
...tend/__snapshots__/scenes-app-sidepanels--side-panel-support-no-email--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-672 Bytes
(99%)
...end/__snapshots__/scenes-app-sidepanels--side-panel-support-no-email--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.03 KB
(99%)
...nd/__snapshots__/scenes-app-sidepanels--side-panel-support-with-email--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-958 Bytes
(99%)
...d/__snapshots__/scenes-app-sidepanels--side-panel-support-with-email--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
frontend/src/scenes/data-warehouse/external/dataWarehouseExternalSceneLogic.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { kea } from 'kea' | ||
|
||
import type { dataWarehouseExternalSceneLogicType } from './dataWarehouseExternalSceneLogicType' | ||
|
||
export const dataWarehouseExternalSceneLogic = kea<dataWarehouseExternalSceneLogicType>({ | ||
path: ['scenes', 'data-warehouse', 'external', 'dataWarehouseExternalSceneLogic'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
frontend/src/scenes/data-warehouse/settings/DataWarehouseSettingsScene.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { LemonButton, LemonTabs, Link } from '@posthog/lemon-ui' | ||
import { useValues } from 'kea' | ||
import { router } from 'kea-router' | ||
import { PageHeader } from 'lib/components/PageHeader' | ||
import { SceneExport } from 'scenes/sceneTypes' | ||
import { urls } from 'scenes/urls' | ||
|
||
import { DataWarehouseTab } from '~/types' | ||
|
||
import { DataWarehouseInitialBillingLimitNotice } from '../DataWarehouseInitialBillingLimitNotice' | ||
import { DataWarehouseManagedSourcesTable } from './DataWarehouseManagedSourcesTable' | ||
import { dataWarehouseSceneLogic } from './dataWarehouseSceneLogic' | ||
import { DataWarehouseSelfManagedSourcesTable } from './DataWarehouseSelfManagedSourcesTable' | ||
|
||
export const scene: SceneExport = { | ||
component: DataWarehouseSettingsScene, | ||
logic: dataWarehouseSceneLogic, | ||
} | ||
|
||
const tabToContent: Partial<Record<DataWarehouseTab, JSX.Element>> = { | ||
[DataWarehouseTab.ManagedSources]: <DataWarehouseManagedSourcesTable />, | ||
[DataWarehouseTab.SelfManagedSources]: <DataWarehouseSelfManagedSourcesTable />, | ||
} | ||
|
||
export const humanFriendlyDataWarehouseTabName = (tab: DataWarehouseTab): string => { | ||
switch (tab) { | ||
case DataWarehouseTab.ManagedSources: | ||
return 'Managed sources' | ||
case DataWarehouseTab.SelfManagedSources: | ||
return 'Self-Managed sources' | ||
} | ||
} | ||
|
||
export function DataWarehouseSettingsScene(): JSX.Element { | ||
const { currentTab } = useValues(dataWarehouseSceneLogic) | ||
|
||
return ( | ||
<div> | ||
<PageHeader | ||
buttons={ | ||
<> | ||
<LemonButton | ||
type="primary" | ||
data-attr="new-data-warehouse-easy-link" | ||
key="new-data-warehouse-easy-link" | ||
to={urls.dataWarehouseTable()} | ||
> | ||
Link source | ||
</LemonButton> | ||
</> | ||
} | ||
caption={ | ||
<div> | ||
Explore all your data in PostHog with{' '} | ||
<Link to="https://posthog.com/manual/hogql" target="_blank"> | ||
HogQL | ||
</Link> | ||
. Connect your own tables from S3 to query data from outside PostHog.{' '} | ||
<Link to="https://posthog.com/docs/data/data-warehouse">Learn more</Link> | ||
</div> | ||
} | ||
/> | ||
<DataWarehouseInitialBillingLimitNotice /> | ||
<LemonTabs | ||
activeKey={currentTab} | ||
onChange={(tab) => router.actions.push(urls.dataWarehouseSettings(tab as DataWarehouseTab))} | ||
tabs={Object.entries(tabToContent).map(([tab, content]) => ({ | ||
label: ( | ||
<span className="flex items-center justify-between gap-1"> | ||
{humanFriendlyDataWarehouseTabName(tab as DataWarehouseTab)}{' '} | ||
</span> | ||
), | ||
key: tab, | ||
content: content, | ||
}))} | ||
/> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this works...
"Data export" now includes "Transformations" which are all about how the incoming events are transformed - nothing to do with exporting 🤔
I don't mind the "Events Management" change but I'm really thinking we should stick with
Data pipelines
for now as the overall term for "data in and out". Then we just need to make some UX improvements to that section to have|Overview|Sources|Transformations|Destinations|
Happy to help put that together if we agree its the way forward