Paul Bottein
20d357fb13
Add tests for get duplicates function ( #24994 )
2025-04-11 08:47:42 +02:00
karwosts
9f05f4df50
Short-format numbers in energy-distribution-card ( #24716 )
2025-03-24 12:43:11 +01: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
Bram Kragten
dda7de3301
Fix issues with develop and serve ( #24602 )
...
* fix issues with develop and serve
* fix get image data, use hassUrl
* save picture-upload
* Update bundje.cjs
* Prettier
* Fix profile picture in dev serve mode
* person badge too
---------
Co-authored-by: Wendelin <w@pe8.at>
2025-03-12 16:59:40 +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
Logan Rosen
c7a46ec25b
Improve ESLint config ( #24290 )
...
* Improve ESLint config
2025-02-18 17:30:36 +00:00
Adam Kapos
0256da511d
Fix theme2hex with custom theme colors ( #24282 )
2025-02-18 08:04:46 +01:00
Paul Bottein
3ee3cfa6cb
Add cache for markdown card and markdown element ( #24217 )
...
* Add cache for markdown card and markdown element
* Rename to expiration
* Only use cache logic for markdown card
* Add tests
* Improve tests
2025-02-17 09:01:44 +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
Wendelin
0a28bbdd72
Improve picture select crop error handling ( #23352 )
...
* Improve crop editor error handling
* Add tests for data/image_upload
* Fix tests imports
2024-12-22 15:45:37 +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
karwosts
f617426808
Bake numeric device classes into formatEntityState ( #19878 )
...
* Bake numeric device classes into formatEntityState
* Apply suggestions from code review
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
---------
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-05-24 16:17:23 +02:00
Paul Bottein
d95bf64edf
Add experimental sections view ( #19846 )
2024-02-22 20:51:48 +01:00
Paul Bottein
1cf928b425
Improve Lovelace types ( #18652 )
2023-11-15 11:13:49 +01:00
Caius-Bonus
c48b620e03
Fix inconsistencies in slugify
between frontend and core implementation ( #18297 )
2023-10-23 08:37:56 +00:00
Paul Bottein
6c7efc17c2
Fix more info type test ( #17758 )
2023-08-31 22:37:25 +02:00
Steve Repsher
fa1a6affa7
Use ES modules and dynamic import for Webpack latest builds ( #16849 )
2023-06-13 18:12:44 +02:00
Bram Kragten
780de42e4b
Allow to show times in the UI in the timezone of the server ( #16799 )
2023-06-13 12:12:13 +02:00
Bram Kragten
d914fb0cfc
Revert "Use ES modules and dynamic import for Webpack latest builds (… ( #16679 )
...
Revert "Use ES modules and dynamic import for Webpack latest builds (#16620 )"
This reverts commit 7b350e31dd9a313d1023d2049d9513f58d38e8de.
2023-05-30 17:56:38 -04:00
Christoph Wen, B.Sc
2ad6253b72
Add setting to localize numeric dates independent from language ( #15770 ) ( #16489 )
2023-05-30 19:39:27 +00:00
Steve Repsher
7b350e31dd
Use ES modules and dynamic import for Webpack latest builds ( #16620 )
2023-05-30 18:27:49 +00:00
Steve Repsher
aa3fd70966
Use Babel runtime for helpers and regenerator (33%+ bundle reduction) ( #16466 )
2023-05-08 14:47:53 +02:00
Steve Repsher
1f1898fa46
Make module types explicit and convert some to ESM ( #15964 )
2023-03-30 11:23:43 +02:00
Raman Gupta
a19ff5aef5
Add milliseconds support for duration sensors ( #15895 )
2023-03-26 23:52:18 +02:00
Jesse Moody
24f1677809
Fix can not typo ( #15830 )
2023-03-16 16:18:31 +01:00
Franck Nijhof
0158d7e3e5
Adjust backend translations for entity components ( #15820 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-03-16 13:51:38 +01:00
Paul Bottein
afe1b7ef59
Use display precision for number format none ( #15674 )
...
* Use display precision for number format none
* Update src/common/number/format_number.ts
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
* prettier
* Fix 0 value
---------
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-03-02 10:19:27 +00:00
Erik Montnemery
050ed145bf
Allow overriding a sensor's display precision ( #15363 )
...
* Allow overriding a sensor's display precision
* Update demo + gallery
* Lint
* Fix state not updated in the UI
* Use formatNumber for options
* Feedbacks
* Add default precision and minimumFractionDigits
* Remove useless undefined
---------
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2023-02-08 18:20:58 +01:00
Adam Kapos
5e4b673751
Fix relative time above 22 hours ( #15072 )
...
fixes https://github.com/home-assistant/frontend/issues/14815
fixes undefined
2023-01-24 12:53:57 +00:00
Paul Bottein
d15d339782
Entity state colors theming ( #14831 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-01-23 09:28:38 +01:00
Paul Bottein
dfc461ce05
Add support for entity translation key ( #14482 )
2022-12-01 12:53:44 +01:00
Paul Bottein
40d0455936
Fix common tests ( #14485 )
2022-11-30 19:50:53 +01:00
Josh McCarty
66ed1b18be
Format numeric entities with integer value and step as integer instead of float ( #14112 )
2022-10-26 13:27:14 +02:00