renovate[bot]
8f335668db
Update Node.js to v24 ( #27687 )
...
* Update Node.js to v24
* fix test
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com >
2025-12-15 14:56:48 +02:00
Wendelin
9f16ce7341
Fix picker initial sort and reorganize picker data ( #28476 )
2025-12-11 08:28:45 +01:00
renovate[bot]
ce86aabe32
Update dependency prettier to v3.7.1 ( #28239 )
...
* Update dependency prettier to v3.7.1
* format
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com >
2025-11-30 13:33:41 +00:00
Bram Kragten
9bc896241d
Always store token when using develop and serve ( #28179 )
2025-11-27 16:43:36 +01:00
Petar Petrov
eb6191ab3a
Refactor color handling to use CSS variables ( #28021 )
2025-11-26 09:42:50 +01:00
Aidan Timson
91a0066544
Add dashboard time visibility condition ( #27790 )
...
* Add time-based conditional visibility for cards
* Move clearTimeout outside of scheduleUpdate
* Add time string validation
* Add time string validation
* Remove runtime validation as config shouldnt allow bad values
* Fix for midnight crossing
* Cap timeout to 32-bit signed integer
* Add listener tests
* Additional tests
* Format
2025-11-12 15:55:59 +02:00
Aidan Timson
aee7b8b8d4
Setup base animation styles, add fade out to launch screen ( #27829 )
...
* Setup base animation styles
* Add fade out to launch screen
* Cleanup
* Set opacity before removing element
* Remove
* Final
* Use computed duration for timeout
* Add skip animation prop
* Swap
* Use common function and fix issue
2025-11-12 11:54:53 +02:00
Paul Bottein
d59d436080
Display entities without area in summary dashboard ( #27777 )
...
* Add support for no area, no floor and no device in entity filter
* Display entities without area in summary dashboard
2025-11-04 12:10:18 +02:00
Aarni Koskela
3ad2f35f29
Add support for PM4 sensor state ( #27754 )
2025-11-02 16:54:40 +00:00
Petar Petrov
e432f0a8ee
Fix date test to work on Oct 20 ( #27575 )
...
* Fix date test to work on Oct 20
* tweak
2025-10-20 10:39:04 +00:00
Wendelin
77874aa2d7
New target picker ( #27284 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-14 16:16:34 +02:00
Paul Bottein
f2c5b91def
Revert "Add media playback badge for Area card ( #26893 )" ( #27413 )
...
This reverts commit 7c7a4e61f2 .
2025-10-08 15:59:37 +02:00
Paul Bottein
b87ffbd4f7
Add name preset to tile card ( #27065 )
2025-10-08 08:13:54 +00:00
Phil White
7c7a4e61f2
Add media playback badge for Area card ( #26893 )
2025-09-29 09:58:57 +02:00
Paul Bottein
bd88b91071
Order tile card config according to struct ( #27060 )
2025-09-16 15:13:37 +03:00
Paul Bottein
af31b5add3
Add formatEntityName helper on hass object. ( #26057 )
2025-09-15 14:18:52 +00:00
Wendelin
68c1a38231
Unit tests for common/entity/get_states ( #27007 )
2025-09-15 09:28:02 +02:00
Wendelin
012e710e45
Test-device-tracker-entity-filter ( #26881 )
2025-09-04 16:08:38 +02:00
Drinor Dalipi
3a70310f78
Follow-up: revert ultimate fallback to undefined in computeEntityEntryName ( #26629 )
2025-08-21 09:50:48 +02:00
Drinor Dalipi
8b73d664b4
Fix entities not showing due to JavaScript crash ( fixes #25363 ) ( #26599 )
...
* Fix entity UI crash from undefined entity names (fixes #25363 )
* Fix mock function type compatibility in test
- Update mock to handle string | undefined parameter
- Maintain test functionality while satisfying type checker
* Simplify approach based on reviewer feedback
- Use String() coercion to preserve numeric entity names (e.g., power strip outlets)
- Single line change instead of complex type validation across multiple files
- Revert stripPrefixFromEntityName to original (no longer needs null handling)
- Remove separate test file, update existing test to expect stringified numbers
- More conservative approach that preserves data rather than replacing with fallbacks
2025-08-20 06:10:13 +00:00
Christoph
8d95f0d95d
add unit tests for common/url/search-params.ts ( #26115 )
2025-07-09 14:11:28 +03:00
Kevin Lakotko
8cc762d839
Fix use of numeric option for collator ( #25917 )
...
* fix(string): use numeric option for collator
* test: add natural sort comparison tests
2025-06-30 18:00:45 +02:00
Bastian
f47336392c
Fix/dhcp config network sort ( #25799 )
...
* Add ip sort method to compare helper
* Add ip sort functionality to dhcp config panel datatable
* Add type ip to DataTableColumnData
* Change ip sorting to padStart method for better readablity
* Rename ip compare method to clarify ipv4
* Enhance IP compare method to include ipv6
* Add compare IP test
2025-06-20 15:01:02 +03:00
Wendelin
84def48222
Add tests for common name utils ( #25373 )
2025-05-08 16:59:28 +03:00
Paul Bottein
536602580d
Remove duplicated context files ( #25212 )
2025-04-29 11:51:05 +02:00
Wendelin
7a617600ad
Add unit tests and docs for common/context ( #25158 )
2025-04-24 16:57:29 +02:00
karwosts
4c6a5ed2e3
convert-color: color names should be case insensitive ( #25140 )
...
convert-color: colornames should be case insensitive
2025-04-23 08:14:53 +03:00
Paul Bottein
20d357fb13
Add tests for get duplicates function ( #24994 )
2025-04-11 08:47:42 +02:00
karwosts
d4717f1293
Handle short form hex colors in conversion functions ( #24642 )
...
* Handle short form hex colors in conversion functions
* drop alpha codes
2025-03-16 09:13:13 +01:00
Paul Bottein
616c1fda81
Rename entity filter to entity domain filter ( #24587 )
2025-03-10 13:34:15 -04:00
Wendelin
0a05dd8f71
Add more tests for common/entity ( #24336 )
...
* Use substring instead of deprecated substr
* Add more common entity tests
2025-02-20 20:11:53 +01:00
Adam Kapos
0256da511d
Fix theme2hex with custom theme colors ( #24282 )
2025-02-18 08:04:46 +01:00
Wendelin
63a98155cd
Add more unit tests for common/entity ( #24182 )
...
* Add new entity tests
* Improve canToggleDomain test
2025-02-14 21:55:23 +01:00
Wendelin
03a415beff
Onboarding restore use core api ( #23920 )
...
* Fix type issues
* Extract backup-upload
* Add onboarding upload section
* Extract and use ha-backup-details
* Implement backup details and restore
* remove unused hassio onboarding calls
* Require hass in dialog-hassio-backup
* Add restore view
* Add formatDateTime without locale and config
* Add restore status
* Fix prettier
* Fix styles of backup details
* Remove unused localize
* Fix onboarding restore translations
* Hide data-picker on core only instance
* Split uploadBackup into 2 separate funcs
* Add formatDateTimeWithBrowserDefaults
* Fix selected data for core only
* Show error reasons on status page
* Use new backup info agents
* Add mem function for formatDateTimeWithBrowserDefaults
* Fix overflow on mobile
* Handle errors when in hassio mode
* Fix cancel restore texts
* Fix hassio localize type issue
* Remove unused onboarding localize in hassio backup restore
* improve format_date_time
* Fix tests
* Fix and simplify backup upload issues
* Use foreach instead of reduce
* Fix attributes, unused styles and properties
* Simplify supervisor warning
* Fix language type issues
* Fix ha-backup-data-picker
* Improve backup-details-restore
* Fix onboarding-restore issues
* Improve loadBackupInfo
* Revert uploadBackup changes
* Improve cancel restore
* Use destructive
* Update src/panels/config/backup/dialogs/dialog-upload-backup.ts
Co-authored-by: Bram Kragten <mail@bramkragten.nl >
* Show backup type not at onboarding
* Only show backup type in correct translationPanel
* Fix quotes
---------
Co-authored-by: Bram Kragten <mail@bramkragten.nl >
2025-02-10 16:40:08 +01:00
Wendelin
853059ac73
Add tests for common/datetime ( #23658 )
2025-01-09 15:47:32 +01:00
Ville Skyttä
3d1817a6b9
Spelling and grammar fixes ( #23598 )
2025-01-06 12:10:34 +01:00
Wendelin
523c38a83e
Add tests for common/config ( #23349 )
...
* Add tests for common/config
* Revert version dev hook
2024-12-22 16:05:17 +01:00
libe.net
b84e00b312
Unit Test for shiftDateRange ( #23324 )
...
Unit Test for Pull 23228
Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com >
2024-12-19 15:42:31 +01:00
Wendelin
27ce395d68
Common-color-tests ( #23258 )
2024-12-12 14:44:17 +01:00
Wendelin
8f19c0abb0
Use localStorage with Web Storage API ( #23172 )
2024-12-10 11:14:15 +01:00
Paul Bottein
f8ce7c2ce1
Don't use duration formatting for second unit ( #23132 )
...
Don't use duration formatting for sec unit
2024-12-04 13:17:47 +01:00
Abílio Costa
af1622e306
Show unit for number domains ( #23101 )
...
* Show unit for number domains
* Remove duplicated code
* Allow monetary formatting
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com >
* Update src/common/entity/compute_state_display.ts
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com >
2024-12-04 11:25:29 +00:00
karwosts
f7c8c6e3e8
Dont floor duration for milliseconds ( #23028 )
...
* Dont floor duration for milliseconds
* remove ms
2024-11-27 17:27:03 +00:00
Paul Bottein
3411967fd9
Only use duration poly-fill when necessary ( #23030 )
2024-11-27 17:13:29 +01:00
Paul Bottein
164944ceff
Improve duration formatting ( #23025 )
2024-11-27 15:00:29 +01:00
Paul Bottein
a532b4461d
Use explicit duration format for state formatting ( #23017 )
2024-11-27 12:49:21 +01:00
Wendelin
dd7987e199
Add unit tests for common/array files ( #23006 )
...
* add vitest coverage
* Add js doc to functions
* Add tests for common/array
2024-11-27 10:02:24 +02:00
Wendelin
bd0bfc1fbe
Rspack ( #22807 )
...
* Add rspack
* Remove TransformAsyncModulesPlugin from rspack
* Migrate all webpack usage to rspack
* Migrate tests to vitest
* Fix test suites
* Remove chai dependency
* Fix compute_state_display tests
* Fix resolveTimeZone
* Reduces test pipeline
* Revert test ci
* optimize chunk filtering
* Migrate landing-page to rspack
* Update rspack dependencies
* Add rsdoctor
* Fix prod build bundle size
* Use rsdoctor for demo stats
* Remove unused webpack configs
* Update build-scripts/rspack.cjs
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com >
* Fix eslint
* Update rspack
* Remove unused code
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com >
2024-11-26 14:49:13 +01:00
Abílio Costa
84f7c62ee2
Add support for unit_of_measurement translation ( #22868 )
2024-11-20 18:44:44 +01:00
karwosts
ce9993fd36
Use finishes_at in timer remaining calculation ( #22169 )
...
* Use finishes_at in timer remaining calculation
* lint
* fix test
2024-10-01 14:05:01 +02:00