Skip to content

Conversation

@marcinbauer85
Copy link
Member

@marcinbauer85 marcinbauer85 commented Jan 13, 2026

Breaking change

N/A - This is not a breaking change.

Proposed change

Note: This is just an exploration of a new feature drafted with the help of Claude. Please don't treat the code as final.

This PR adds a "Recently selected" section to the automation add element dialog that displays the last 10 targets (areas, devices, entities, or labels) selected by the user. This feature improves workflow efficiency by providing quick access to frequently used targets when creating automations.

The recently selected targets are:

  • Persisted in localStorage for session continuity
  • Displayed with appropriate icons (area, device, entity, label icons)
  • Include a "Clear" button to remove all recent selections
  • Automatically hidden when no recent targets exist

Type of change

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

Example configuration

N/A - This is a UI enhancement that requires no configuration.

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request: N/A

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

marcinbauer85 and others added 8 commits January 7, 2026 09:55
Refactor: Polish automation dialog UI and component styles
…tion-dialog"

This reverts commit c2c4719, reversing
changes made to 49bed5e.
Adds a "Recently selected" section in the automation add element dialog that displays the last 10 targets (areas, devices, entities, or labels) selected by the user. This improves workflow efficiency by providing quick access to frequently used targets.

Features:
- Displays up to 10 most recently selected targets
- Shows targets with appropriate icons (area, device, entity, label)
- Includes a "Clear" button to remove all recent selections
- Persists selections in localStorage for session continuity
- Automatically hides section when no recent targets exist

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@marcinbauer85 marcinbauer85 marked this pull request as draft January 13, 2026 14:25
Adds CSS styling for the empty-note section with improved text color and link styling.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant