Skip to content

Feature: Add support for hiding other domains in the Miscellaneous section#344

Open
DigiLive wants to merge 7 commits into
mainfrom
mushroom-strategy-332
Open

Feature: Add support for hiding other domains in the Miscellaneous section#344
DigiLive wants to merge 7 commits into
mainfrom
mushroom-strategy-332

Conversation

@DigiLive

Copy link
Copy Markdown
Owner

Feature Pull Request

Feature Summary

The Miscellaneous section of an Area view, shows card of any other domain than supported by the strategy.

This feature allows the user to list entity-domains to exclude from this section.


Motivation and Context

Resolves #332.

It de-clutters the Miscellaneous section by hiding entities a user doesn't usually control.
E.g. Automations, Scripts, Events, etc.


List of Changes

  • Added support for specifying hidden_domains in the default domain configuration.
  • Updated TypeScript interfaces to accommodate these changes, ensuring type safety and accurate structure representation.

Documentation Updates

  • Added hidden_domains option under the default domain, enabling hiding of specific domains in the 'Miscellaneous' section of an Area view.

Agreements

Please confirm the following by inserting an x between the brackets:

  • My code adheres to the contribution guidelines of the project.
  • My changes generate no new warnings.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.

DigiLive added 4 commits June 15, 2026 07:11
- Improved cache clearing documentation in the FAQ to clarify browser
behavior with Developer Tools and cache disabling.
- Fixed a typo in the installation guide for better accuracy and
  consistency.
- Added support for specifying `hidden_domains` in the `default` domain
  configuration.
  This allows excluding unsupported domains from being displayed while
  improving flexibility in strategy configurations.

- Updated TypeScript interfaces to accommodate these changes, ensuring
  type safety and accurate structure representation.
- Added `docs:install` script to set up a Python virtual environment and
  install dependencies from `requirements.txt`.
- Updated `docs:serve` and `docs:serve-versioned` scripts to activate
  the virtual environment before running `mkdocs` and `mike`.
- Added `hidden_domains` option under the `default` domain, enabling
  hiding of specific domains in the 'Miscellaneous' section of an Area
  view.
@DigiLive DigiLive added the enhancement New feature or request label Jun 15, 2026
@DigiLive DigiLive requested a review from Copilot June 15, 2026 08:30
@codacy-production

codacy-production Bot commented Jun 15, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new configuration option to hide specific entity domains from the “Miscellaneous” (default) section in an Area view, addressing the need to quickly exclude unsupported domains like automation and script.

Changes:

  • Introduces domains.default.hidden_domains in the strategy configuration types and defaults.
  • Filters entity registry entries based on hidden_domains during Registry initialization.
  • Updates documentation/examples to describe and demonstrate the new option (plus a few unrelated doc/script edits).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/types/strategy/strategy-generics.ts Adds DefaultDomainConfig and wires it into the domains typing.
src/Registry.ts Filters out entities whose domain is listed in domains.default.hidden_domains.
src/configurationDefaults.ts Adds hidden_domains: [] to the default domain config.
package.json Modifies documentation scripts (now Windows-specific) and adds docs:install.
docs/options/domain-options.md Documents hidden_domains under the default domain and updates explanatory text.
docs/getting-started/installation.md Fixes a typo (“browers” → “browsers”).
docs/full-example.md Adds an example showing domains.default.hidden_domains.
docs/faq.md Adjusts guidance for reloading dashboards after manual install.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/types/strategy/strategy-generics.ts Outdated
Comment thread docs/options/domain-options.md Outdated
Comment thread package.json Outdated
DigiLive added 3 commits June 15, 2026 10:43
- Removed Python virtual environment activation from `docs:serve` and
  `docs:serve-versioned` scripts to simplify usage.
- This change assumes the user has the required dependencies installed
  globally, reducing script complexity.
- Changed the `hidden_domains` property in `DefaultDomainConfig` from
  optional to required in `strategy-generics.ts`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for hiding other domains in the Miscellaneous section

2 participants