-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cdp): add new button to CDP Overview page (#26335)
- Loading branch information
Showing
5 changed files
with
64 additions
and
36 deletions.
There are no files selected for viewing
Binary file modified
BIN
-423 Bytes
(99%)
frontend/__snapshots__/filters-taxonomic-filter--actions--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
-15 Bytes
(100%)
frontend/__snapshots__/filters-taxonomic-filter--actions--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
+987 Bytes
(100%)
frontend/__snapshots__/filters-taxonomic-filter--properties--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
+959 Bytes
(100%)
frontend/__snapshots__/filters-taxonomic-filter--properties--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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,80 @@ | ||
import { IconPlusSmall } from '@posthog/icons' | ||
import { Link } from '@posthog/lemon-ui' | ||
import { PageHeader } from 'lib/components/PageHeader' | ||
import { LemonButton } from 'lib/lemon-ui/LemonButton' | ||
import { LemonMenu } from 'lib/lemon-ui/LemonMenu' | ||
import { DataWarehouseManagedSourcesTable } from 'scenes/data-warehouse/settings/DataWarehouseManagedSourcesTable' | ||
import { DataWarehouseSelfManagedSourcesTable } from 'scenes/data-warehouse/settings/DataWarehouseSelfManagedSourcesTable' | ||
import { urls } from 'scenes/urls' | ||
|
||
import { PipelineTab } from '~/types' | ||
import { PipelineStage, PipelineTab } from '~/types' | ||
|
||
import { DestinationsTable } from './destinations/Destinations' | ||
import { TransformationsTable } from './Transformations' | ||
|
||
export function Overview(): JSX.Element { | ||
const menuItems = [ | ||
{ label: 'Source', to: urls.pipelineNodeNew(PipelineStage.Source) }, | ||
{ label: 'Transformation', to: urls.pipelineNodeNew(PipelineStage.Transformation) }, | ||
{ label: 'Destination', to: urls.pipelineNodeNew(PipelineStage.Destination) }, | ||
] | ||
|
||
return ( | ||
<div className="space-y-4"> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Sources)}> | ||
<h2>Managed sources</h2> | ||
</Link> | ||
<div className="space-y-2"> | ||
<DataWarehouseManagedSourcesTable /> | ||
<> | ||
<PageHeader | ||
buttons={ | ||
<div className="shrink-0 flex items-center m-2"> | ||
<LemonMenu items={menuItems}> | ||
<LemonButton | ||
data-attr="new-pipeline-button" | ||
icon={<IconPlusSmall />} | ||
size="small" | ||
type="primary" | ||
> | ||
New | ||
</LemonButton> | ||
</LemonMenu> | ||
</div> | ||
} | ||
/> | ||
<div className="space-y-4"> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Sources)}> | ||
<h2>Managed sources</h2> | ||
</Link> | ||
<div className="space-y-2"> | ||
<DataWarehouseManagedSourcesTable /> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Sources)}> | ||
<h2>Self-managed sources</h2> | ||
</Link> | ||
<div className="space-y-2"> | ||
<DataWarehouseSelfManagedSourcesTable /> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Sources)}> | ||
<h2>Self-managed sources</h2> | ||
</Link> | ||
<div className="space-y-2"> | ||
<DataWarehouseSelfManagedSourcesTable /> | ||
</div> | ||
</div> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Transformations)}> | ||
<h2>Transformations</h2> | ||
</Link> | ||
<p> | ||
Modify and enrich your incoming data. Only active transformations are shown here.{' '} | ||
<Link to={urls.pipeline(PipelineTab.Transformations)}>See all.</Link> | ||
</p> | ||
<TransformationsTable inOverview={true} /> | ||
</div> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Destinations)}> | ||
<h2>Destinations</h2> | ||
</Link> | ||
<p> | ||
Send your data to destinations in real time or with batch exports. Only active Destinations are | ||
shown here. <Link to={urls.pipeline(PipelineTab.Destinations)}>See all.</Link> | ||
</p> | ||
<DestinationsTable /> | ||
</div> | ||
</div> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Transformations)}> | ||
<h2>Transformations</h2> | ||
</Link> | ||
<p> | ||
Modify and enrich your incoming data. Only active transformations are shown here.{' '} | ||
<Link to={urls.pipeline(PipelineTab.Transformations)}>See all.</Link> | ||
</p> | ||
<TransformationsTable inOverview={true} /> | ||
</div> | ||
<div> | ||
<Link to={urls.pipeline(PipelineTab.Destinations)}> | ||
<h2>Destinations</h2> | ||
</Link> | ||
<p> | ||
Send your data to destinations in real time or with batch exports. Only active Destinations are | ||
shown here. <Link to={urls.pipeline(PipelineTab.Destinations)}>See all.</Link> | ||
</p> | ||
<DestinationsTable /> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |