Skip to content
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

Add support for lifecycle pills in expandable component #5588

Merged
merged 7 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dbt Cloud can connect with a variety of data platform providers including:
- [AlloyDB](/docs/cloud/connect-data-platform/connect-redshift-postgresql-alloydb)
- [Amazon Redshift](/docs/cloud/connect-data-platform/connect-redshift-postgresql-alloydb)
- [Apache Spark](/docs/cloud/connect-data-platform/connect-apache-spark)
- [Azure Synapse Analytics](/docs/cloud/connect-data-platform/connect-azure-synapse-analytics) <Lifecycle status='public preview' />
- [Azure Synapse Analytics](/docs/cloud/connect-data-platform/connect-azure-synapse-analytics) <Lifecycle status="preview" />
- [Databricks](/docs/cloud/connect-data-platform/connect-databricks)
- [Google BigQuery](/docs/cloud/connect-data-platform/connect-bigquery)
- [Microsoft Fabric](/docs/cloud/connect-data-platform/connect-microsoft-fabric)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Configure Azure Synapse Analytics connection."
sidebar_label: "Connect Azure Synapse Analytics"
---

# Connect Azure Synapse Analytics <Lifecycle status='public preview' />
# Connect Azure Synapse Analytics <Lifecycle status="preview" />

## Supported authentication methods
The supported authentication methods are:
Expand Down
16 changes: 5 additions & 11 deletions website/docs/docs/dbt-versions/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ The following features are new or enhanced as part of our [dbt Cloud Launch Show

- **New:** [Unit tests](/docs/build/unit-tests) are now GA in dbt Cloud. Unit tests enable you to test your SQL model logic against a set of static inputs.

- <Expandable alt_header="New: Preview of native support for Azure Synapse Analytics" >
- <Expandable alt_header="New: Native support for Azure Synapse Analytics" lifecycle="preview">

Native support in dbt Cloud for Azure Synapse Analytics is now available in [Public Preview](/docs/dbt-versions/product-lifecycles#dbt-cloud)!
Native support in dbt Cloud for Azure Synapse Analytics is now available as a [preview](/docs/dbt-versions/product-lifecycles#dbt-cloud)!

To learn more, refer to [Connect Azure Synapse Analytics](/docs/cloud/connect-data-platform/connect-azure-synapse-analytics) and [Microsoft Azure Synapse DWH configurations](/reference/resource-configs/azuresynapse-configs).

Expand Down Expand Up @@ -103,9 +103,7 @@ The following features are new or enhanced as part of our [dbt Cloud Launch Show

## April 2024

- <Expandable alt_header="New: Merge jobs" >

<Lifecycle status="beta" />
- <Expandable alt_header="New: Merge jobs" lifecycle="beta" >

You can now set up a continuous deployment (CD) workflow for your projects natively in dbt Cloud. You can now access a beta release of [Merge jobs](/docs/deploy/merge-jobs), which is a new [job type](/docs/deploy/jobs), that enables you to trigger dbt job runs as soon as changes (via Git pull requests) merge into production.

Expand Down Expand Up @@ -156,9 +154,7 @@ The following features are new or enhanced as part of our [dbt Cloud Launch Show

</Expandable>

- <Expandable alt_header="New: Trigger on job completion ">

<Lifecycle status="team,enterprise" />
- <Expandable alt_header="New: Trigger on job completion " lifecycle="team,enterprise" >

Now available for dbt Cloud Team and Enterprise plans is the ability to trigger deploy jobs when other deploy jobs are complete. You can enable this feature [in the UI](/docs/deploy/deploy-jobs) with the **Run when another job finishes** option in the **Triggers** section of your job or with the [Create Job API endpoint](/dbt-cloud/api-v2#/operations/Create%20Job).

Expand All @@ -170,9 +166,7 @@ The following features are new or enhanced as part of our [dbt Cloud Launch Show

</Expandable>

- <Expandable alt_header="New: Keep on latest version ">

<Lifecycle status='beta' />
- <Expandable alt_header="New: Keep on latest version " lifecycle="beta">

_Now available in the dbt version dropdown in dbt Cloud &mdash; starting with select customers, rolling out to wider availability through February and March._

Expand Down
4 changes: 2 additions & 2 deletions website/snippets/_cloud-cli-flag.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:::info Public preview functionality
:::info Preview functionality

The dbt Cloud CLI is currently in [public preview](/docs/dbt-versions/product-lifecycles#dbt-cloud). Share feedback or request features you'd like to see on the [dbt community Slack](https://getdbt.slack.com/archives/C05M77P54FL).
A [preview](/docs/dbt-versions/product-lifecycles#dbt-cloud) of the dbt Cloud CLI is currently available. Share feedback or request features you'd like to see on the [dbt community Slack](https://getdbt.slack.com/archives/C05M77P54FL).

:::
5 changes: 3 additions & 2 deletions website/src/components/expandable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import React, { useState, useEffect } from 'react';
import styles from './styles.module.css';
import Lifecycle from '../lifeCycle';

function slugify(text) {
return text.toString().toLowerCase()
Expand All @@ -14,7 +15,7 @@ function slugify(text) {
.replace(/-+$/, ''); // trim - from the end
}

function Expandable({ children, alt_header = null }) {
function Expandable({ children, alt_header = null, lifecycle }) {
if (!alt_header) { return null; }
const [isOn, setOn] = useState(false);
const anchorId = slugify(alt_header);
Expand Down Expand Up @@ -74,7 +75,7 @@ useEffect(() => {
<span className={`${styles.toggle} ${isOn ? styles.toggleDown : styles.toggleRight}`}></span>
&nbsp;
<span className={styles.headerText}>
{alt_header}
{alt_header}<Lifecycle status={lifecycle} />
</span>
Comment on lines 77 to 79
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

<span onClick={handleCopyClick} className={styles.copyIcon}></span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/lifeCycle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const statusColors = {
new: '#047377',
beta: '#047377',
ga: '#047377',
'public preview': '#047377',
preview: '#047377',
};

const fontColors = {
Expand Down
Loading