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

replace callout w component #6709

Merged
merged 10 commits into from
Dec 23, 2024
1 change: 0 additions & 1 deletion website/docs/docs/build/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ dbt Cloud has a number of pre-defined variables built in. Variables are set auto
The following environment variable is set automatically for the dbt Cloud IDE:

- `DBT_CLOUD_GIT_BRANCH` — Provides the development Git branch name in the [dbt Cloud IDE](/docs/cloud/dbt-cloud-ide/develop-in-the-cloud).
- Available in dbt v1.6 and later.
- The variable changes when the branch is changed.
- Doesn't require restarting the IDE after a branch change.
- Currently not available in the [dbt Cloud CLI](/docs/cloud/cloud-cli-installation).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Running with dbt=1.0.0
Found 13 models, 2 tests, 1 archives, 0 analyses, 204 macros, 2 operations....
```

:::info dbt Cloud release tracks
:::note dbt Cloud release tracks
<Snippet path="_config-dbt-version-check" />
Copy link
Contributor

@nataliefiann nataliefiann Dec 23, 2024

Choose a reason for hiding this comment

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

Hiya @mirnawong1

This is more of a question / suggestion. Just thinking of customers who may be visually impaired (this wasn't part of your PR btw) - is it possible to make the background a different colour as the text in the toggle / expandable is quite hard to read.

Kind Regards
Natalie

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea this callout does need tweaking -- currently this is how it looks like in dark mode and i changed the callout from info to note so it's at least visible. but the component actually needs updating so the expandable color changes in dark mode:

Screenshot 2024-12-23 at 15 36 47


:::
2 changes: 1 addition & 1 deletion website/docs/reference/resource-configs/batch_size.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "dbt uses `batch_size` to determine how large batches are when runn
datatype: hour | day | month | year
---

Available in the [dbt Cloud "Latest" release track](/docs/dbt-versions/cloud-release-tracks) and dbt Core v1.9 and higher.
<VersionCallout version="1.9" />

## Definition

Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/resource-configs/begin.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "dbt uses `begin` to determine when a microbatch incremental model
datatype: string
---

Available in the [dbt Cloud "Latest" release track](/docs/dbt-versions/cloud-release-tracks) and dbt Core v1.9 and higher.
<VersionCallout version="1.9" />

## Definition

Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/resource-configs/delimiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ datatype: <string>
default_value: ","
---

Supported in v1.7 and higher.
<VersionCallout version="1.7" />

## Definition

Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/resource-configs/event-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "dbt uses event_time to understand when an event occurred. When def
datatype: string
---

Available in [the dbt Cloud "Latest" release track](/docs/dbt-versions/cloud-release-tracks) and dbt Core v1.9 and higher.
<VersionCallout version="1.9" />

<Tabs>
<TabItem value="model" label="Models">
Expand Down
3 changes: 1 addition & 2 deletions website/docs/reference/resource-configs/hard-deletes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ id: "hard-deletes"
sidebar_label: "hard_deletes"
---

Available from dbt v1.9 or with [dbt Cloud "Latest" release track](/docs/dbt-versions/cloud-release-tracks).

<VersionCallout version="1.9" />

<File name='snapshots/schema.yml'>

Expand Down
3 changes: 1 addition & 2 deletions website/docs/reference/resource-configs/lookback.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ description: "dbt uses `lookback` to detrmine how many 'batches' of `batch_size`
datatype: int
---

Available in the [dbt Cloud "Latest" release track](/docs/dbt-versions/cloud-release-tracks) and dbt Core v1.9 and higher.

<VersionCallout version="1.9" />
## Definition

Set the `lookback` to an integer greater than or equal to zero. The default value is `1`. You can configure `lookback` for a [model](/docs/build/models) in your `dbt_project.yml` file, property YAML file, or config block.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ datatype: model_name
description: "Learn about concurrent_batches in dbt."
---

:::note

Available in dbt Core v1.9+ or the [dbt Cloud "Latest" release tracks](/docs/dbt-versions/cloud-release-tracks).

:::
<VersionCallout version="1.9" />

<Tabs>
<TabItem value="Project file">
Expand Down
5 changes: 1 addition & 4 deletions website/docs/reference/resource-properties/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ resource_types: [models]
datatype: test
---

:::note
<VersionCallout version="1.8" />

This functionality is available in dbt Core v1.8+ and [dbt Cloud release tracks](/docs/dbt-versions/cloud-release-tracks).

:::

Unit tests validate your SQL modeling logic on a small set of static inputs before you materialize your full model in production. They support a test-driven development approach, improving both the efficiency of developers and reliability of code.

Expand Down
2 changes: 1 addition & 1 deletion website/src/components/versionCallout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const VersionCallout = ({ version }) => {
Available from dbt v{version} or with the{' '}
<a href="/docs/dbt-versions/cloud-release-tracks">
dbt Cloud "Latest" release track
</a>{' '}.
</a>{''}.
</span>
</Admonition>
</div>
Expand Down
Loading