- Refactor `sensor.binary`
This allows these sensors to be referenced correctly in languages where
the grammatical subject precedes the descriptor, such as French.
- Add French translation
* Bump typescript from 5.9.3 to 6.0.2 in the major group
Updates `typescript` from 5.9.3 to 6.0.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.2)
---
updated-dependencies:
- dependency-name: typescript
dependency-version: 6.0.2
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Refactor tsconfig for TS 6.0.2
- Change module resultion to `bundler` because `node` is deprecated.
- Add `@types/node` to `package.json` which is required for previous
item.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: DigiLive <github@digilive.nl>
- Add global strategy option `show_positions`.
- Add position as subtitle to area card.
- Add position to area name at HASS area card.
- Add position to view title in the top-bar.
- Add position as subtitle to header cards in views.
- Refactor sorting logic for ordering.
- Document position visibility and ordering strategy.
Closes#310
* Refactor area registry processing
Streamline the area registry by using a filter to order areas by name.
Ensure the undisclosed area is always included in the list, and assign
an order value to each area for giving the user a more granular control
of the order of areas.
* Add support showing positions
Added support for displaying the ordering position on area cards.
The visibility is toggled with `strategyOptions.show_positions` and
defaults to `false`.
* Add translations for ordering position
This commit introduces the translation for the term 'ordering_position'
in German, Spanish, Hungarian, Dutch, and Brazilian Portuguese to
enhance multilingual support in the application.
* Document details for element positioning
Clarify how positioned elements are arranged and provide examples of
possible values, improving user understanding of configuration options.
Before you could only set the visibility for all of the domains with the `_` key.
Now it can be controlled per-domain.
This adds a more granular control of the visibility of these entities.
Updated various documentation files to ensure consistent use of line
breaks and formatting.
This improves readability and maintains a uniform style across all
documents.
Enhance the documentation by including details on how to use the
`order` property for sorting areas, domains, and views.
This improves user experience by allowing users to prioritize their
most-used items in the interface.
Added instructions for refreshing the cache in the installation guide
and FAQ.
These updates enhance user experience by clarifying common issues
related to caching.
- Extract value comparison and priority logic into dedicated methods.
This enhances readability and reduces cyclomatic complexity.
- Fix sorting instability where mixed types (e.g., null vs string)
caused inconsistent ties.
This prevents JavaScript's unreliable `<` and `>` comparisons from
returning a 0 for different types.
- Implement natural numeric sorting for strings.
(e.g., "Item 2" before "Item 10").
This ensures digits within strings are treated as numerical values
instead of ASCII characters.
- Optimize performance with early-exit identity checks (a === b).
This allows the loop to immediately move to the next property without
redundant processing.
- Add documentation to clarify how the `order` property affects the
sorting of areas and domains in views.
This helps users understand how to prioritize their most-used items
effectively.
Improve the GitHub Actions workflow for deploying documentation by
adding concurrency control, adjusting permissions, and enhancing
error handling for branch fetching. This ensures a more robust
and efficient deployment process.
Improve the logic for identifying the true caller from the stack trace
by using a loop instead of array methods.
This enhances readability and reduces cyclomatic complexity.
Updated the SingleDomainConfig interface to require an order property.
Reorganized the configuration defaults for various entities to ensure
consistent ordering and improved clarity in the configuration structure.
Simplify the sorting of views by combining order and title comparisons
into a single return statement.
This improves readability and maintains the intended sorting behavior.
Sensor entities without a `units_of_measurement` attribute in their
state where excluded from the view.
Now, they are included and presented with a `MiscellaneousCard`.
- Introduce a new method to resolve the most appropriate display name
for entities based on a similar lookup as HASS.
- Change the sorting of entities to display names.
Ensure that the version and alias inputs conform to the expected
format, allowing only alphanumeric characters, dots, and hyphens.
This prevents potential injection issues and improves the robustness of
the deployment process.
This update adds the 'permissions' section to both validate.yml and
webpack.yml to ensure that the workflows have read access to the
repository contents.
This change is necessary to ensure top-level permissions are not set to
write-all.
Updated the documentation deployment workflow to map workflow_dispatch
and release inputs to the env context.
This ensures that user-provided strings are treated as data rather than
executable code during the run step, closing a potential command
injection vulnerability.
Improve the readability and structure of the area ID filtering logic in
the RegistryFilter class.
This change clarifies the handling of different area ID scenarios,
reducing the cyclomatic complexity.
- Streamline the initialization process of the Registry class by
introducing a dedicated method for fetching registries from Home
Assistant.
- Enhance clarity by consolidating sorting logic for views and domains
into a single reusable function.
- Improve documentation for better understanding of methods and their
parameters.
This change introduces an 'order' property for various components in the
configuration defaults, allowing for better control over the display
order of these components in the user interface.
Improve the getCallerName function by simplifying the logic to extract
the caller name from the stack trace.
Introducing a new helper function to handle the parsing of individual
stack lines, reduces the cyclomatic complexity.