Skip to content

fix(config): pre-select stored display_levels when reopening settings #145

fix(config): pre-select stored display_levels when reopening settings

fix(config): pre-select stored display_levels when reopening settings #145

GitHub Actions / Frontend Test Results succeeded Jul 13, 2026 in 0s

All 110 tests pass in 0s

110 tests  ±0   110 ✅ ±0   0s ⏱️ ±0s
  4 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit df07b08. ± Comparison against earlier commit 53185c1.

Annotations

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Frontend Test Results

110 tests found

There are 110 tests, see "Raw output" for the full list of tests.
Raw output
test/eink-dashboard-card.test.ts ‑ buildHeaderText > falls back to default when name is empty
test/eink-dashboard-card.test.ts ‑ buildHeaderText > returns the device name
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns false for custom with webhooks
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns false for trmnl_og
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns false for trmnl_x
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns true for custom without webhooks
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns true for kindle_4 regardless of webhooks
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns true for kindle_oasis regardless of webhooks
test/eink-dashboard-card.test.ts ‑ shouldShowCopyUrl > returns true for kindle_pw4
test/eink-dashboard-editor.test.ts ‑ Invert condition panel (tile widgets) > appears for tile widgets
test/eink-dashboard-editor.test.ts ‑ Invert condition panel (tile widgets) > clearing invert conditions to an empty array deletes the key
test/eink-dashboard-editor.test.ts ‑ Invert condition panel (tile widgets) > does not appear for non-tile widgets
test/eink-dashboard-editor.test.ts ‑ Invert condition panel (tile widgets) > ha-form edit on a tile preserves invert_condition and visibility
test/eink-dashboard-editor.test.ts ‑ Invert condition panel (tile widgets) > value-changed on the invert editor writes invert_condition
test/eink-dashboard-editor.test.ts ‑ Invert condition panel (tile widgets) > visibility panel still appears alongside Invert for tiles
test/eink-dashboard-editor.test.ts ‑ LABELS > covers common field names
test/eink-dashboard-editor.test.ts ‑ LABELS > covers separator-specific field names
test/eink-dashboard-editor.test.ts ‑ SCHEMAS > has a schema builder for all 13 widget types
test/eink-dashboard-editor.test.ts ‑ SCHEMAS > position fields respect display dimensions as max
test/eink-dashboard-editor.test.ts ‑ SCHEMAS > waste_schedule entity field uses domain filter 'sensor'
test/eink-dashboard-editor.test.ts ‑ SCHEMAS > weather entity field uses domain filter 'weather'
test/eink-dashboard-editor.test.ts ‑ SCHEMAS > weather humidity_entity field uses domain filter 'sensor'
test/eink-dashboard-editor.test.ts ‑ SCHEMAS > weather temperature_entity field uses domain filter 'sensor'
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > all expandable sections have a title and mdi: icon
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > all expandable sections have flatten: true
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > content section is expanded by default
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > device_battery appearance section contains color
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > device_battery content section contains layout selector
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > entities schema puts entities field inside content
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > every schema has an identity section with label and description
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > every schema uses expandable sections
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > heading content section contains heading field
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > heading layout section contains x, y, w
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > identity and secondary sections do not start expanded
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > separator has no appearance section
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > waste_schedule entity field is inside content section
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > weather appearance section contains font_size
test/eink-dashboard-editor.test.ts ‑ SCHEMAS form grouping > weather entity field is inside content section
test/eink-dashboard-editor.test.ts ‑ Visibility field > Widget type accepts a visibility array of conditions
test/eink-dashboard-editor.test.ts ‑ Visibility field > Widget type accepts visibility: undefined
test/eink-dashboard-editor.test.ts ‑ WIDGET_TYPES > each entry has a label and defaults with matching type field
test/eink-dashboard-editor.test.ts ‑ WIDGET_TYPES > each entry has a non-empty description string
test/eink-dashboard-editor.test.ts ‑ WIDGET_TYPES > each entry has an icon in mdi: format
test/eink-dashboard-editor.test.ts ‑ WIDGET_TYPES > has all 13 widget types
test/eink-dashboard-editor.test.ts ‑ add-widget integration > appends a widget when a type is selected from the picker
test/eink-dashboard-editor.test.ts ‑ getSummary > defaults to horizontal line at Y:0 for separator with no fields
test/eink-dashboard-editor.test.ts ‑ getSummary > includes title in entities summary when present
test/eink-dashboard-editor.test.ts ‑ getSummary > returns '(no entity)' for entity widget with no entity
test/eink-dashboard-editor.test.ts ‑ getSummary > returns '(no entity)' for graph with no entity
test/eink-dashboard-editor.test.ts ‑ getSummary > returns '(no entity)' for sensor widget with no entity
test/eink-dashboard-editor.test.ts ‑ getSummary > returns '(no entity)' for weather widget with no entity
test/eink-dashboard-editor.test.ts ‑ getSummary > returns direction+style summary for separator
test/eink-dashboard-editor.test.ts ‑ getSummary > returns entity count for entities widget
test/eink-dashboard-editor.test.ts ‑ getSummary > returns entity for entity widget
test/eink-dashboard-editor.test.ts ‑ getSummary > returns entity for sensor widget
test/eink-dashboard-editor.test.ts ‑ getSummary > returns entity for single-entity graph
test/eink-dashboard-editor.test.ts ‑ getSummary > returns entity for weather widget
test/eink-dashboard-editor.test.ts ‑ getSummary > returns entity_2 as base when entity is absent in graph
test/eink-dashboard-editor.test.ts ‑ getSummary > returns primary entity with count suffix for multi-entity graph
test/eink-dashboard-editor.test.ts ‑ getSummary > returns static text for device_battery widget
test/eink-dashboard-editor.test.ts ‑ getSummary > returns vertical bar summary for separator
test/eink-dashboard-editor.test.ts ‑ getSummary > shows three-entity graph summary with +2 suffix
test/eink-dashboard-editor.test.ts ‑ loadHaComponents > does not throw when HA elements are absent
test/eink-widget-picker.test.ts ‑ eink-widget-picker close button > fires 'closed' event when the X button is clicked
test/eink-widget-picker.test.ts ‑ eink-widget-picker close button > hides the overlay after close
test/eink-widget-picker.test.ts ‑ eink-widget-picker open() > each card carries its widget type in data-type
test/eink-widget-picker.test.ts ‑ eink-widget-picker open() > each card shows the widget label and description
test/eink-widget-picker.test.ts ‑ eink-widget-picker open() > makes the overlay visible after open()
test/eink-widget-picker.test.ts ‑ eink-widget-picker open() > renders one card per widget type passed to open()
test/eink-widget-picker.test.ts ‑ eink-widget-picker registration > registers as a custom element
test/eink-widget-picker.test.ts ‑ eink-widget-picker selection > closes the overlay after a card is picked
test/eink-widget-picker.test.ts ‑ eink-widget-picker selection > fires 'type-selected' with the correct type when a card is clicked
test/resize-math.test.ts ‑ applyCornerResize > moving edges snap to grid; derived dimensions hold the fixed edge
test/resize-math.test.ts ‑ applyCornerResize > ne: dragging down (dy>0) moves top edge down and shrinks height
test/resize-math.test.ts ‑ applyCornerResize > ne: dragging up (dy<0) moves top edge up and grows height
test/resize-math.test.ts ‑ applyCornerResize > ne: y clamps at 0 on extreme upward drag
test/resize-math.test.ts ‑ applyCornerResize > nw: dragging inward shrinks width and height, moves x and y
test/resize-math.test.ts ‑ applyCornerResize > se: clamps height at display bottom boundary
test/resize-math.test.ts ‑ applyCornerResize > se: clamps to minDim on inward drag
test/resize-math.test.ts ‑ applyCornerResize > se: clamps width at display right boundary
test/resize-math.test.ts ‑ applyCornerResize > se: expanding drag increases width and height
test/resize-math.test.ts ‑ applyCornerResize > sw: clamps x at 0
test/resize-math.test.ts ‑ applyCornerResize > sw: dragging left (dx<0) expands width and moves x left
test/resize-math.test.ts ‑ applyEdgeResize > e: clamps width at displayWidth
test/resize-math.test.ts ‑ applyEdgeResize > e: clamps width at minDim
test/resize-math.test.ts ‑ applyEdgeResize > e: expanding drag increases width
test/resize-math.test.ts ‑ applyEdgeResize > e: result snaps to grid
test/resize-math.test.ts ‑ applyEdgeResize > w: clamps to keep minDim between left and fixed right edge
test/resize-math.test.ts ‑ applyEdgeResize > w: clamps x at 0
test/resize-math.test.ts ‑ applyEdgeResize > w: dragging right narrows widget and moves x forward
test/resize-math.test.ts ‑ applyEdgeResize > w: result snaps to grid
test/resize-math.test.ts ‑ snap > snaps 0 to 0
test/resize-math.test.ts ‑ snap > snaps 12 to 16 (rounds half up)
test/resize-math.test.ts ‑ snap > snaps 12.1 to 16
test/resize-math.test.ts ‑ snap > snaps 16 to 16
test/resize-math.test.ts ‑ snap > snaps 3 down to 0
test/resize-math.test.ts ‑ snap > snaps 4 up to 8
test/resize-math.test.ts ‑ snap > snaps negative -4 near zero
test/resize-math.test.ts ‑ snap > snaps negative -5 to -8
test/resize-math.test.ts ‑ snapToEdges > falls back to grid snap when beyond threshold
test/resize-math.test.ts ‑ snapToEdges > handles zero-dimension candidate (wrapper absent from DOM)
test/resize-math.test.ts ‑ snapToEdges > picks the closest edge when multiple targets overlap
test/resize-math.test.ts ‑ snapToEdges > respects a custom threshold parameter
test/resize-math.test.ts ‑ snapToEdges > returns grid snap when there are no targets
test/resize-math.test.ts ‑ snapToEdges > snaps Y axis independently of X
test/resize-math.test.ts ‑ snapToEdges > snaps left edge to target left edge (alignment)
test/resize-math.test.ts ‑ snapToEdges > snaps left edge to target right edge (abutment)
test/resize-math.test.ts ‑ snapToEdges > snaps right edge to target left edge (abutment)
test/resize-math.test.ts ‑ snapToEdges > snaps right edge to target right edge (alignment)
test/resize-math.test.ts ‑ snapToEdges > snaps when candidate edge exactly matches target edge