Petar Petrov and GitHub
f42a5012a9
Accept hostnames and localize validation messages in the HTTP config form ( #53511 )
...
Accept hostnames in HTTP config listen addresses and localize number validation
2026-08-05 12:52:52 +02:00
bbd26ce5a9
Improve messaging and error handling http config ( #53126 )
...
Co-authored-by: Stefan Agner <stefan@agner.ch >
2026-07-17 14:38:25 +02:00
Franck Nijhof and GitHub
e227bbe9a2
Add tests for isTimestamp string utility ( #52622 )
2026-06-14 21:49:46 +02:00
Franck Nijhof and GitHub
ce0e6a7665
Cache Intl.NumberFormat instances in formatNumber ( #52583 )
...
formatNumberToParts, the engine behind formatNumber, built a new
Intl.NumberFormat on every call. It is invoked for essentially every
numeric state render, and constructing an Intl.NumberFormat is
comparatively expensive.
Cache the formatters in a Map keyed by (locale, options). Unlike the
single-entry memoizeOne used for the date formatters, the number format
options are derived per value, so a multi-entry cache is needed to avoid
thrashing. The number of distinct combinations is small and bounded in
practice. Output is unchanged.
2026-06-13 17:01:33 +02:00
Wendelin and GitHub
3f1b7ce391
Add automation item comments ( #52090 )
...
* Add automation comments
* Line wrap
* Review
* Add truncateWithEllipsis with tests
* Review
2026-05-21 13:50:51 +03:00
Kevin Lakotko and GitHub
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 and GitHub
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
Paul Bottein and GitHub
20d357fb13
Add tests for get duplicates function ( #24994 )
2025-04-11 08:47:42 +02:00
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
Caius-Bonus and GitHub
c48b620e03
Fix inconsistencies in slugify between frontend and core implementation ( #18297 )
2023-10-23 08:37:56 +00:00
Bram Kragten and GitHub
780de42e4b
Allow to show times in the UI in the timezone of the server ( #16799 )
2023-06-13 12:12:13 +02:00
Christoph Wen, B.Sc and GitHub
2ad6253b72
Add setting to localize numeric dates independent from language ( #15770 ) ( #16489 )
2023-05-30 19:39:27 +00:00
Jesse Moody and GitHub
24f1677809
Fix can not typo ( #15830 )
2023-03-16 16:18:31 +01:00
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
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
Josh McCarty and GitHub
66ed1b18be
Format numeric entities with integer value and step as integer instead of float ( #14112 )
2022-10-26 13:27:14 +02:00
Paul Bottein and GitHub
907466d060
Add first weekday option in profile ( #13991 )
2022-10-10 16:58:27 +02:00
Zack Barett and GitHub
ce77ddf365
Revert #10991 ( #12618 )
2022-05-07 02:48:57 +00:00
Johann Vanackere and GitHub
8da73d49d7
Terms based entities search ( #10991 )
2022-04-26 19:39:58 -05:00
Philip Allgaier and GitHub
0c038398aa
Fix various slugify() issues + add tests ( #10383 )
2021-10-25 16:26:38 +02:00
1bccbd4173
Use browser default time and number formatting with polyfills if needed ( #9481 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-09-29 23:34:52 +00:00