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

Create visual editors for decluttering cards and templates. #78

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Mar 16, 2024

  1. Create visual editors for decluttering cards and templates.

    The new 'custom:decluttering-template' card declares a template. It can
    be placed in any view of the dashboard and it is only visible in edit
    mode. Use the visual editor to conveniently create a template, configure
    the card or element, set variables with their default values, and preview
    the results.
    
    The existing 'custom:decluttering-card' card now searches for templates
    declared by 'custom:decluttering-template' cards in addition to those
    in the traditional decluttering_templates dashboard configuration. Use
    the visual editor to conveniently pick an existing template defined
    elsewhere, set variables, and preview the results.
    
    Fixed possible race conditions when cards are loaded and streamlined
    the logic.
    
    Restored previously set styles when element styles are modified.
    The element styling behavior is curiously undocumented...?
    j9brown committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    51a54b9 View commit details
    Browse the repository at this point in the history
  2. Improve polymorphism, fully support cards, elements, and entity rows.

    Represent each type as an abstract thing instead of pretending they are all
    cards. Choose the correct editor for each type (when one is available).
    
    Decluttering cards can now be safely embedded within entities cards as
    entity row and within picture-elements cards as elements.
    j9brown committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    7e64589 View commit details
    Browse the repository at this point in the history
  3. Update the documentation.

    j9brown committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    6dd9e6a View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Fix card not always showing in preview mode.

    It seems that editMode was recently renamed to preview in the front end:
    home-assistant/frontend#21065
    
    Rearranged the logic to toggle the hidden state to track the state
    of preview as it changes.
    j9brown committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    045eb6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef3228d View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Treat the _config as immutable.

    Might fix an issue with the template editor reported by a user.
    j9brown committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    32db5b2 View commit details
    Browse the repository at this point in the history