Skip to content

Commit

Permalink
Create visual editors for decluttering cards and templates.
Browse files Browse the repository at this point in the history
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...?
  • Loading branch information
j9brown committed Mar 16, 2024
1 parent 5bb09ff commit 51a54b9
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 67 deletions.
Loading

0 comments on commit 51a54b9

Please sign in to comment.