Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add beta tag and description to materialization
Browse files Browse the repository at this point in the history
EDsCODE committed Dec 17, 2024
1 parent b8a5b07 commit 763d649
Showing 1 changed file with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LemonButton, Tooltip } from '@posthog/lemon-ui'
import { LemonButton, LemonTag, Tooltip } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { LemonTable } from 'lib/lemon-ui/LemonTable'
import { humanFriendlyDetailedTime } from 'lib/utils'
@@ -18,7 +18,10 @@ export function InfoTab({ codeEditorKey }: InfoTabProps): JSX.Element {
return (
<div className="flex flex-col flex-1 m-4 gap-4">
<div>
<h3>Materialization</h3>
<div className="flex flex-row items-center gap-2">
<h3 className="mb-0">Materialization</h3>
<LemonTag type="warning">BETA</LemonTag>
</div>
<div>
{isEditingMaterializedView ? (
<div>
@@ -38,13 +41,19 @@ export function InfoTab({ codeEditorKey }: InfoTabProps): JSX.Element {
</LemonButton>
</div>
) : (
<LemonButton
onClick={() => editingView && runDataWarehouseSavedQuery(editingView.id)}
type="primary"
disabledReason={editingView ? undefined : 'You must save the view first'}
>
Materialize
</LemonButton>
<div>
<p>
Materialized views are a way to pre-compute data in your data warehouse. This allows you
to run queries faster and more efficiently.
</p>
<LemonButton
onClick={() => editingView && runDataWarehouseSavedQuery(editingView.id)}
type="primary"
disabledReason={editingView ? undefined : 'You must save the view first'}
>
Materialize
</LemonButton>
</div>
)}
</div>
</div>

0 comments on commit 763d649

Please sign in to comment.