Skip to content

Conversation

@raman325
Copy link
Owner

@raman325 raman325 commented Jan 9, 2026

Proposed change

Change the view strategy from flat masonry layout to sections-based grid. Each card is now wrapped in its own section with type: "grid", enabling a responsive grid pattern in Home Assistant's dashboard.

Changes:

  • Added LovelaceSectionConfig interface to type stubs
  • Modified generateView to wrap each card in a section with type: "grid"
  • View now returns type: "sections" instead of default masonry layout
  • Updated all related tests to work with the new sections structure

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionality)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings January 9, 2026 19:15
@github-actions github-actions bot added enhancement New feature or request javascript Pull requests that update javascript code labels Jan 9, 2026
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.14%. Comparing base (561bb49) to head (259729e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #765      +/-   ##
==========================================
- Coverage   93.17%   93.14%   -0.03%     
==========================================
  Files          29       29              
  Lines        2359     2350       -9     
  Branches       77       75       -2     
==========================================
- Hits         2198     2189       -9     
  Misses        161      161              
Flag Coverage Δ
typescript 96.26% <100.00%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@raman325 raman325 force-pushed the feature/view-strategy-sections-grid branch 2 times, most recently from 561cd09 to 531324b Compare January 10, 2026 16:02
@github-actions github-actions bot added the documentation Documentation changes label Jan 10, 2026
Create section strategies that generate cards when HA resolves the view,
allowing deferred data fetching and supporting both new lcm-slot cards
and legacy entities cards via the use_slot_cards option.

- Add LockCodeManagerSlotSectionStrategy for slot sections
- Add LockCodeManagerLockSectionStrategy for lock codes sections
- Simplify generateView to return strategy configs instead of cards
- Remove unused entities parameter from generateView
- Remove unused hass parameter from getSlotMapping

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@raman325 raman325 force-pushed the feature/view-strategy-sections-grid branch from 531324b to 259729e Compare January 10, 2026 16:08
@raman325 raman325 added the minor Dependabot: minor dependency update label Jan 10, 2026
@raman325 raman325 merged commit aee149b into main Jan 10, 2026
14 checks passed
@raman325 raman325 deleted the feature/view-strategy-sections-grid branch January 10, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes enhancement New feature or request javascript Pull requests that update javascript code minor Dependabot: minor dependency update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants