Skip to content

Board Warnings

WARN-BODY-HEADING-NO-TITLE: Text opens with a heading but the board has no title

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

Text opens with the markdown heading {heading!r} and this board has no `title:`, so the heading renders as prose rather than a section title.

Fix: Set title: {heading} and delete the heading line from the text; section titles belong on the board, not in the markdown. If this text isn't a new section, it shouldn't be its own row: merge it into the text before it.

Fires when a board or rows: item has no title: and its text: opens with a markdown heading at any level. A prose row is a section, and a section's title is the board's title:: it renders above the columns at the title size and spacing, where a markdown heading renders inside the prose. Headings further down a block stay in the markdown. A cols: or grid: cell is not checked, because its opening heading titles the card beside its neighbors, and neither is a tab pane's own text, which opens under its tab label. Heading detection uses the same markdown parser that renders the text, so a fenced code block opening with a # comment is not mistaken for a heading. Emitted by compile/validate/board_warnings.py.

WARN-DEFAULTS-FILE-GIVEN-AS-BOARD: A defaults file was given to dct render

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

{path} holds defaults for the boards beside it; skipped.

Fix: Nothing to fix when a glob picked it up. To see its effect, render a board in the same directory.

Fired when a path given to dct render is a meta.yml or meta.yaml file. That file holds defaults the boards in its directory inherit, and has nothing of its own to draw. A glob like charts/*.yml picks it up alongside the boards, so it is skipped and the boards render.

WARN-DOUBLE-HEADER: Board title is repeated by a heading at the top of the body

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

Board title {title!r} is followed immediately by a level-{level} markdown heading {heading!r}; the board renders both, so the dashboard headers itself twice.

Fix: Delete the heading line from the body; title: already renders as the board header. If you would rather keep the heading, drop title: instead and let it be the header.

Fires when a board sets title: and the first block of its body markdown is a heading that either is level 1 (a document has one document title) or repeats the board title. The board prints the board title as its header and the markdown heading directly beneath it. A heading further down the body, or a lower-level heading with different text (## Overview under title: Sales), is ordinary section structure and does not fire. Heading detection uses the same markdown parser that renders the text, so a fenced code block opening with a # comment is not mistaken for a heading. Checked on the board itself, not on nested boards; a section card pairing its title with a styled body heading is a deliberate pattern. Emitted by compile/validate/board_warnings.py.

WARN-HTML-POLICY-CAPPED: Board html_policy downgraded by deployment ceiling

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

Board requested html_policy={requested!r} but the {ceiling_source} ceiling is {ceiling!r}; effective policy is {effective!r}. Raw HTML in this board will be treated as {effective!r}.

Fix: Either lower the board's html_policy: to {effective!r} to match what is actually rendered, or raise the deployment ceiling (DCT_HTML_POLICY_CEILING or html_policy_ceiling in dbt_charts.yml) if the deployment operator permits it.

Fires when a board's authored html_policy is above the effective deployment ceiling (set by DCT_HTML_POLICY_CEILING env var or html_policy_ceiling in dbt_charts.yml). The board compiles successfully but the policy is downgraded at normalize time; this warning makes the downgrade visible so the author knows their html_policy setting is not being honored. Emitted by compile/compiler.py.

WARN-LOW-TEXT-CONTRAST: Text ink has too little contrast against its background

  • Level: warning
  • Domain: render
  • Suppressible: yes

Message template:

{element} is painted {ink} on {background} -- {ratio:.1f}:1 contrast, below the {floor:.1f}:1 floor for {size} text.

Fix: Set {key} to a color with more contrast against {background}.

Fires when a text block's heading or body ink clears less than the WCAG 2.1 AA contrast ratio (4.5:1, or 3:1 under WCAG's own large-text exception) against the opaque background it paints on. The common case is a row's own default ink left unchanged after authoring a style.background on that row; the fix names the key that governs that element's ink today (style.title.font.color for a heading, style.font.color for body text). The engine never repaints -- the color pair is still painted exactly as written.

WARN-RESTATED-FORMAT: Authored format equals the query's declared format

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

`{path}: {value}` is already {source}; remove it.

Fix: Delete {path}. Keep a key only to override a different inherited or inferred value.

Fires when a chart or table column names the same format its query already declares for that column in formats:. Emitted by compile/restated.py.

WARN-RESTATED-INFERRED: Authored value equals the one the engine infers

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

`{path}: {value}` is already {source}; remove it.

Fix: Delete {path}. Keep a key only to override a different inherited or inferred value.

Fires when an authored value equals what the engine would infer without it: a variable's input type, label or schema default, a table header derived from the column name, a source: the enclosing board already sets, or an options.static list that is every value of the column the variable filters. Emitted by compile/restated.py.

WARN-RESTATED-STYLE: Authored style equals the value it inherits

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

`{path}: {value}` is already {source}; remove it.

Fix: Delete {path}. Keep a key only to override a different inherited or inferred value.

Fires when an authored style value equals the value the same key resolves to without it. That value comes from the cascade: shipped defaults, theme, extends:, meta.yml, parent boards, or the board's style for the chart type. Comparison is exact, leaf by leaf, on unresolved values, so 8 against 8.5, or a color token against its hex, never warns. Emitted by compile/restated.py.

WARN-RETIRED-IGNORE-CODE: Ignore list names a retired warning code

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

{source}: {code} no longer exists and suppresses nothing

Fix: Remove it from the ignore list.

Fired when dct render --ignore-warning, a chart's warnings_ignore or a query's ignore names a warning code an earlier release shipped and a later one removed. The code can no longer fire, so the entry is dead weight rather than a typo, and the render proceeds.

WARN-SCHEMA-MIGRATED: Board YAML uses retired syntax

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

{message}

Fix: Run dct migrate to rewrite the file, or update the YAML by hand where the message says dct migrate cannot.

Fired when a board, meta.yml, or extends: file uses syntax from an older dbt charts release. The board is migrated in memory and still renders, but the file on disk is stale. When migration could not finish, the message says so, and errors reported alongside it may name retired syntax.

WARN-SINGLE-CHART-REDUNDANT-TITLE: Single-chart board has both a board title and a chart title

  • Level: warning
  • Domain: compile
  • Suppressible: yes

Message template:

Board title {title!r} sits above a single chart that carries its own title {chart_title!r}; two headers for one chart.

Fix: Remove the board's title: and keep the chart's title:.

Fires when a board's whole content is one chart and both the board and the chart carry a title, so the board stacks two headers over a single piece of content. A one-chart board is headed by its chart, so the board's title: is the one to remove. Does not fire when only one of the two is titled, when the board holds more than one chart, or when body prose sits between the two titles. KPI and callout charts are excluded: a KPI labels itself with label: and a callout's title is a prose lead-in, so neither stacks a chart header under the board's. Checked on the board itself, not on nested section boards. Emitted by compile/validate/board_warnings.py.

WARN-VARIABLE-BUTTONS-OVERFLOW: A variable's button row is wider than its slot

  • Level: warning
  • Domain: render
  • Suppressible: yes

Message template:

Variable {variable!r} draws as a button row {needed:.0f}px wide, but only {available:.0f}px is available; it is drawn as a dropdown instead.

Fix: Set style.variables.overflow: wrap to flow the buttons onto further rows, shorten the option labels, or give the button row a wider slot.

Fires when an input: radio variable, or a daterange under style.variables.presets_display: buttons, has buttons that together are wider than the space the board gives its controls. The control is never dropped or clipped: by default it draws as the dropdown form of the same variable. style.variables.overflow: wrap is the opt-in that lets the button row flow onto further rows instead.