Skip to content

Commit d2db328

Browse files
committed
Release 3.3.0-beta5: unified template migration, row/column visibility templates, bar custom ticks, cheatsheet in panels
Made-with: Cursor
1 parent 8d0f1bf commit d2db328

72 files changed

Lines changed: 74815 additions & 71640 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/debug-info.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Ultra Card Debug Info
2-
// Version: 3.3.0-beta4
3-
// Build Date: 2026-04-12T15:27:49.156Z
2+
// Version: 3.3.0-beta5
3+
// Build Date: 2026-04-13T15:22:10.424Z
44
// Build Mode: production

dist/ultra-card.js

Lines changed: 34081 additions & 34155 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Ultra Card Version
3-
* v3.3.0-beta4
3+
* v3.3.0-beta5
44
*
55
* This file is auto-generated from src/version.ts
66
* DO NOT MODIFY DIRECTLY
@@ -13,6 +13,6 @@ function setVersion(value) {
1313
}
1414

1515
// Set default version (will be overridden by card)
16-
setVersion('3.3.0-beta4');
16+
setVersion('3.3.0-beta5');
1717

1818
export { version, setVersion };

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ultra-card",
3-
"version": "3.3.0-beta4",
3+
"version": "3.3.0-beta5",
44
"description": "Ultra Card - A modular card builder for Home Assistant",
55
"main": "dist/ultra-card.js",
66
"scripts": {

src/cards/ultra-card.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ export class UltraCard extends LitElement {
204204
const rowAny = row as any;
205205
if ((row.display_conditions?.length ?? 0) > 0) return true;
206206
if (rowAny.template_mode && rowAny.template) return true;
207+
if (rowAny.unified_template_mode && String(rowAny.unified_template || '').trim()) return true;
207208
return !!row.columns?.some(col => {
208209
const colAny = col as any;
209210
if ((col.display_conditions?.length ?? 0) > 0) return true;
210211
if (colAny.template_mode && colAny.template) return true;
212+
if (colAny.unified_template_mode && String(colAny.unified_template || '').trim()) return true;
211213
return col.modules?.some(mod => (mod.display_conditions?.length ?? 0) > 0);
212214
});
213215
});
@@ -1077,6 +1079,7 @@ export class UltraCard extends LitElement {
10771079

10781080
return {
10791081
type: 'custom:ultra-card',
1082+
_config_version: 2,
10801083
card_background: 'var(--card-background-color, var(--ha-card-background, white))',
10811084
card_border_radius: 12,
10821085
card_border_color: 'var(--divider-color)',
@@ -1657,7 +1660,7 @@ export class UltraCard extends LitElement {
16571660
// logicService already has hass from the card's hass setter
16581661

16591662
// Check row display conditions (handles both template_mode and regular conditions)
1660-
const shouldShow = logicService.evaluateRowVisibility(row);
1663+
const shouldShow = logicService.evaluateRowVisibility(row, this.config);
16611664

16621665
// Also check global design logic properties if they exist
16631666
const rowWithDesign = row as any;
@@ -1966,7 +1969,7 @@ export class UltraCard extends LitElement {
19661969

19671970
private _renderColumn(column: CardColumn, ctx: RenderContext, colIndex: number): TemplateResult {
19681971
// Check column display conditions (handles both template_mode and regular conditions)
1969-
const shouldShow = logicService.evaluateColumnVisibility(column);
1972+
const shouldShow = logicService.evaluateColumnVisibility(column, this.config);
19701973

19711974
// Also check global design logic properties if they exist
19721975
const columnWithDesign = column as any;

0 commit comments

Comments
 (0)