-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data-warehouse): modeling ui (#24587)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
044d633
commit 4262e6e
Showing
37 changed files
with
1,004 additions
and
16 deletions.
There are no files selected for viewing
Binary file modified
BIN
-99 Bytes
(100%)
frontend/__snapshots__/posthog-3000-navigation--navigation-3000--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
+273 Bytes
(100%)
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
+477 Bytes
(100%)
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
+1.08 KB
(100%)
frontend/__snapshots__/scenes-app-insights--user-paths-edit--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
+59 Bytes
(100%)
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
+46 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
+57 Bytes
(100%)
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
-94 Bytes
(100%)
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
-100 Bytes
(100%)
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
+43 Bytes
(100%)
...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
-1.36 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
-1.25 KB
(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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3444,6 +3444,9 @@ | |
"hogql_value": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { useValues } from 'kea' | ||
import { ViewLinkModal } from 'scenes/data-warehouse/ViewLinkModal' | ||
import { SceneExport } from 'scenes/sceneTypes' | ||
|
||
import { dataModelSceneLogic } from './dataModelSceneLogic' | ||
import NodeCanvasWithTable from './NodeCanvasWithTable' | ||
|
||
export const scene: SceneExport = { | ||
component: DataModelScene, | ||
logic: dataModelSceneLogic, | ||
} | ||
|
||
export function DataModelScene(): JSX.Element { | ||
const { simplifiedPersonFields, joinedFieldsAsNodes, allNodes } = useValues(dataModelSceneLogic) | ||
|
||
return ( | ||
<> | ||
<NodeCanvasWithTable | ||
nodes={allNodes} | ||
fixedFields={simplifiedPersonFields} | ||
joinedFields={joinedFieldsAsNodes} | ||
tableName="persons" | ||
/> | ||
<ViewLinkModal /> | ||
</> | ||
) | ||
} |
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,20 @@ | ||
interface NodeProps { | ||
pref: (el: HTMLDivElement | null) => void | ||
width?: string | ||
height?: string | ||
className?: string | ||
children: React.ReactNode | ||
} | ||
|
||
function GenericNode({ pref, className = '', children }: NodeProps): JSX.Element { | ||
return ( | ||
<div | ||
ref={pref} | ||
className={`flex max-w-[200px] px-4 py-3 justify-center items-center space-between gap-1 bg-bg-3000 border border-black border-2 rounded-lg truncate ${className}`} | ||
> | ||
{children} | ||
</div> | ||
) | ||
} | ||
|
||
export default GenericNode |
Oops, something went wrong.