Commit Graph

402 Commits

Author SHA1 Message Date
renovate[bot] cb0bc762b1
Update dependency prettier to v3 (#17215)
* Update dependency prettier to v3

* Update config and remove .prettierignore

* Reformat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2023-07-14 17:40:17 +00:00
Bram Kragten 3390dda7be
Fix integration card design gallery (#17167) 2023-07-05 15:22:22 +02:00
Bram Kragten 8bd09edec0
Fix automation translations + gallery (#17166) 2023-07-05 13:27:38 +02:00
Bram Kragten 87aad75cc7
Add UI for conversation trigger (#17037) 2023-06-27 10:58:27 +02:00
Paul Bottein 1dfd859a2d
Circular slider improvements (#17008) 2023-06-26 11:49:11 +02:00
Paul Bottein e9961b93f9
Add circular slider (#16981)
* WIP Create round slider

* Fix interaction on iOS

* Add dual and simple gauge

* Add events

* Rename events

* Use low and high

* Improve dual slider selection

* Add min and max

* Rename component

* Prevents setting a high value lower than low and vice versa

* Add keyboard support

* Fix typings

* Use html

* Update current indicator

* Improve doc

* Fix keyboard focus after mouse interaction

* Don't fallback to value
2023-06-21 15:01:45 +00:00
RoboMagus 9b35c06eef
Add persistent_notification trigger (#16967)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-21 11:55:55 +02:00
Joakim Sørensen 5aa6ffe2e4
Map GitHub block quotes to our ha-alert component (#16757) 2023-06-21 11:35:02 +02:00
Christoph Wen, B.Sc 922e95b895
Fix time and date-time 12h formats (#16692) (#16805)
* Fix time and date-time 12h formats  (#16692)

- am/pm check possible for other languages
- adjusted date format gallery page for consistency
- added gallery pages for date-time and time formats

* Fix typo in am/pm check (#16692)
2023-06-20 12:52:53 +02:00
Franck Nijhof 8abb58ae7d
Add preheating HVAC action to climate (#16922) 2023-06-19 13:36:19 +02:00
Bram Kragten 197638b282
Fix date demo in gallery (#16894) 2023-06-13 15:27:21 +00: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
Christoph Wen, B.Sc 2ad6253b72
Add setting to localize numeric dates independent from language (#15770) (#16489) 2023-05-30 19:39:27 +00:00
Bram Kragten dde27c3524
Support entity reg id in device automations (#15387) 2023-05-24 14:37:45 +02:00
Paul Bottein e9d9d89d79
New color picker for HS and color temp (#16549)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-05-23 14:45:23 +02:00
Trevor North e8521c59eb
Add sensor device class volatile_organic_compounds_parts (#16576)
Add support for volatile_organic_compounds_parts
2023-05-22 08:42:15 +00:00
Bram Kragten 4e5a18d272
Remove polymer types, cleanups (#16385)
* Remove polymer types, cleanups

* Delete updated.ts
2023-05-04 15:24:24 +00:00
Johan Frick e0c4b85ef1
Fix options typo for ha-form in gallery (#16305) 2023-04-25 19:59:58 +00:00
Steve Repsher aac28efd32
Streamline HTML generation and consolidate templates (#16117) 2023-04-20 11:10:12 +02:00
Steve Repsher 1f1898fa46
Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
Paul Bottein 27098c5f3f
Create control select component (#15819) 2023-03-17 16:16:51 +01:00
Steve Repsher 9ce4563dd4
Prefer nothing over empty templates (#15633) 2023-02-28 11:02:47 +01:00
Bram Kragten f69ae84cc6
Use entity registry display api (#15549) 2023-02-23 16:30:13 +01:00
Yosi Levy 658ce80801
Rtl fixes feb23 (#15487) 2023-02-20 18:16:03 +01:00
Paul Bottein bef586efb3
Rename bar components to control components (#15508)
* Rename ha-bar-slider to ha-control-slider

* Rename ha-bar-switch to ha-control-switch

* Rename ha-bar-button to ha-control-button

* Update tile features
2023-02-20 17:34:37 +01:00
Paul Bottein cabbbcf9f3
Convert tile button into more generic button (#15485)
* Add button group component

* Add focus style

* Use new component in tile card
2023-02-20 16:25:53 +01:00
Yosi Levy a13e2af17a
Various RTL fixes (#15446) 2023-02-14 13:02:45 +01: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
Paul Bottein 7e92d62936
Add tile card to gallery (#15394) 2023-02-08 11:29:16 +01:00
Bram Kragten d2886b1ea7
Add aliases to areas (#15198)
* Add aliases to areas

* rename

* Update dialog-aliases.ts
2023-01-25 16:55:58 +01: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
Bram Kragten fe87466351
Add link to aliases in cloud config entity settings (#14959) 2023-01-02 20:42:31 +01:00
Gia Ferrari 5c2fcd7f9b
Add alt attribute to various images (#14405)
* ha-config-area-page: Add alt tag for area-picture

* dialog-tag-detail: Add alt tag for generated QR code image.

* ha-config-hardware: Blank alt tag for hardware pic, info already elsewhere

* dialog-energy-solar-settings: Blank alt tag for brand icon.

* ha-energy-grid-settings: Blank alt tag for co2signal brand icon.

* Add a few more appropriately-blank alt texts.

* ha-config-device-page: Logo alt text set to name of device domain.

* ha-config-repairs: Logo alt text set to name of issue domain.

* hui-picture-card(-editor): Alternate Text via config (blank default)

* hui-picture-entity-card(-editor): Alternate Text via config (blank default)

* ha-long-lived-access-token-dialog: Alt text for QR code.

* hui-picture-header-footer: Support alt text via optional property.

* A few more blank alt attributes.

* ha-tile-image: Support alt tag (but it is blank in current usage).

* prod cla-bot

* Lint. Fix whitespace.

* Add missing alt text properties to TS types.

* Fix my silly typo in picture-entity-card-editor's SCHEMA (+ minor reformat)

* Add alt_text to Picture(Entity)CardConfig TypeScript types.

* Format with prettier.

* Revise alt text for tag QR

* Revise alt text for token QR

* Revise alternate to alternative

* Add alt to logo in gallery

* Add alt text to crop image

* Use ifDefined for tile image alt

* Change area picture alt to area name

* Remove entry from entities config struct

* Revert altText changes for Picture Entity Card (to revisit in future PR)

See:
https://github.com/home-assistant/frontend/pull/14405#discussion_r1032735871

* Revert changes to hui-image and picture entity editor

Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2022-12-29 01:16:05 +00:00
Paul Bottein 2575d35f2c
Add aliases dialog to entity registry settings (#14860) 2022-12-27 21:36:08 +01:00
Paul Bottein b18160d987
Use CSS colors for tile components (#14770)
* Do not use rgb colors for tile components

* Fixes gallery

* Change tile color

* Do not use rgb colors in tile button
2022-12-15 11:27:45 +01:00
Philip Allgaier b4d6fc3c20
Handle "idle" state of alert entity (#14779) 2022-12-14 19:08:08 +01:00
Philip Allgaier 175a388822
Add sun domain to gallery entity states (#14742) 2022-12-14 11:43:49 +01:00
Paul Bottein b82d6fd35f
Fix climate hvac action color (#14747) 2022-12-13 16:49:12 +01:00
Joakim Sørensen f83544dd38
Add action for design preview (#14721)
* Add action for design preview

* Remove netlify_build_gallery
2022-12-12 16:23:11 +01:00
Bram Kragten 4ea19a6041
Add daily gallery build action (#14640)
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
2022-12-08 14:41:51 +00:00
Philip Allgaier feddbdba96
More "state_color" variants for gallery + wording tweaks (#14641) 2022-12-08 14:05:09 +00:00
Paul Bottein f1393e5f00
Clean up colors code and add all missing domains (#14597) 2022-12-07 14:47:54 +01:00
Paul Bottein e6f2e8058b
Color adjustments for entity state (#14557) 2022-12-06 17:45:24 +01:00
Paul Bottein dfc461ce05
Add support for entity translation key (#14482) 2022-12-01 12:53:44 +01:00
Philip Allgaier 684f6db4df
Gallery: Added switch and gauge component pages + CSS vars (#14479) 2022-11-30 22:22:02 +01:00
Paul Bottein e43f3b193e
Rename indicator property and add show-handle property for ha bar slider (#14466) 2022-11-30 21:18:27 +01:00
Paul Bottein bfd96944f9
Add switch bar (#14429)
* Add basic swich support

* Add color and reversed state

* Fix slotted icon

* Update gallery/src/pages/components/ha-bar-switch.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-11-28 16:58:18 +01:00
Paul Bottein aec0eb3c78
Improve state colors and add documentation for entity state (#14437)
* Add documentation for entity icons and colors

* Add domains

* Add domains

* improve colors

* Add fan color

* Change fan to cyan

* color rules adjustments
2022-11-28 14:37:07 +01:00
Franck Nijhof a9d44fcb61
Add Text entity (#14447) 2022-11-24 21:23:50 +01:00
Bram Kragten 0aae285236
Rename disabled attribute on integration card (#14268) 2022-11-07 14:45:02 +01:00
Paul Bottein 55467666f7
Add slider bar (#14094)
* Add slider bar

* a11y feedbacks

* allow undefined values

* rename variable

* Add end style

* Add vertical slider

* Allow theming

* Improve theming

* Improve colors

* fix properties

* stepped value for aria value

* use vertical instead of orientation

* Improve a11y

* force role slider
2022-10-24 09:25:26 +02:00
Matthias de Baat 9b19b6f203
Remove confusing header image (#14070)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-10-13 09:30:37 +00:00
Joakim Sørensen 08279f35cf
Ignore progress if no progress (#14024) 2022-10-10 16:21:46 +02:00
Franck Nijhof 176d8567f4
Add condition description for trigger condition (#13941) 2022-10-02 17:39:15 +02:00
Bram Kragten 0b76183acd
Show non-editable automations in UI (#13900) 2022-09-29 12:11:29 -04:00
Meow 894258d7b8
fixed duplicate unit_of_measurement (#13884) 2022-09-28 10:53:25 +02:00
Paul Bottein cc76a6c5ed
Add unique_id to entity registry (#13886) 2022-09-27 15:39:14 +02:00
Paul Bottein 81b21f874b
Improve cover entity definition (#13750) 2022-09-15 12:31:36 +02:00
Bram Kragten ea319d55ef
Allow to disable a select option (#13618) 2022-09-15 12:00:00 +02:00
Paul Bottein 8c03bbdccc
Improve light entity definition (#13744) 2022-09-15 11:58:36 +02:00
Matthias de Baat 3c289deb21
Add remove, delete, add and create guidelines (#13593)
Co-authored-by: Philip Allgaier <philip.allgaier@gmx.de>
2022-09-05 18:28:54 +02:00
chpego a57d7813e7
typo dialogs (#13598) 2022-09-05 15:55:48 +00:00
Bram Kragten 430e671901
unique-id -> id (#13552) 2022-09-01 11:51:38 -04:00
Matthias de Baat d661450121
Typo on dialogs page (#13555) 2022-09-01 10:36:56 -05:00
Bram Kragten d041bd9fd3
use device and area names in service call description (#13532) 2022-08-31 15:30:44 +00:00
Matthias de Baat 93debac19a
Add dialogs guidelines (#13526)
* Add dialogs guidelines

* Updated the Buttons and X-icon text
2022-08-31 11:00:19 -04:00
Bram Kragten e976f9c119
Simplify action descriptions (#13529) 2022-08-31 12:48:28 +00:00
Paulus Schoutsen 80e7993923
Move restored entity warning up and use ha-alert (#13477) 2022-08-25 13:09:31 +02:00
Zack Barett 807bb10199
Add some Trigger Descriptions (#13460)
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-08-24 09:18:50 +00:00
Franck Nijhof ed82ae9f68
Add config entry selector (#13432)
* Add config entry selector

* Let backend filter by integration

* Add to gallery

* Adjust translation

* Fix imports

* Rename in gallery as well

* Fix typo in localize key

* Prettier
2022-08-23 18:26:15 -04:00
Paulus Schoutsen 2475f6bd41
Glue percent sign (#13458) 2022-08-23 15:45:08 +00:00
Zack Barett f5b44656cf
Update a few Condition Descriptions (#13404)
* Update a few Describe-conditions

* Update to multiple states
2022-08-23 10:12:55 -04:00
Franck Nijhof 8b13a9ff2e
Add attribute support to state selector (#13420) 2022-08-20 09:24:11 -05:00
Franck Nijhof d2a19e04ef
Add state selector (#13411) 2022-08-19 09:20:13 -04:00
Paulus Schoutsen f3d92ba0e0
Fix Gallery menu expansion (#13408) 2022-08-18 23:32:56 -04:00
Paulus Schoutsen 47b820d28f
Collapse automation/script editor sections by default (#13390) 2022-08-18 14:04:35 +00:00
Paulus Schoutsen 12e57dfcae
Allow testing describe functionality in the gallery (#13398) 2022-08-17 13:20:35 -05:00
Sven Serlier 62dd7111ce
Update design.home-assistant.io (#13240)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-07-20 08:24:52 +00:00
Paulus Schoutsen 729e2f5248
Use entity name in device info page (#13165)
* Use entity name in device info page

* Adjust to new format

* Use latest API

* Fix types

* Fix CI?

Co-authored-by: Zack <zackbarett@hey.com>
2022-07-11 19:07:07 -07:00
imgbot[bot] 9a3b4d6df2
[ImgBot] Optimize images (#12985)
*Total -- 298.28kb -> 241.37kb (19.08%)

/gallery/public/images/logo-with-text.png -- 66.64kb -> 46.13kb (30.79%)
/gallery/public/images/clearspace.png -- 43.46kb -> 31.99kb (26.39%)
/gallery/public/images/using-our-logo.png -- 32.47kb -> 24.92kb (23.24%)
/gallery/public/images/logo-variants.png -- 34.86kb -> 26.78kb (23.18%)
/gallery/public/images/logo.png -- 27.30kb -> 21.50kb (21.25%)
/gallery/public/images/sunflowers.jpg -- 93.54kb -> 90.05kb (3.73%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2022-06-20 14:27:18 +02:00
Thomas Lovén e3d394eb32
Change service_data to just data (#12628) 2022-05-24 10:49:07 -05:00
J. Nick Koston 4c982b3323
Switch logbook calls to use the new websocket (#12665) 2022-05-11 22:28:18 -05:00
Bram Kragten 3b6b4d7664
Add descriptions for actions (#12541)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-02 15:06:55 +00:00
Bram Kragten 011467ece0
Add actions to design gallery (#12518)
* Add actions to design gallery

* Update describe-action.ts
2022-04-29 20:51:44 +02:00
Franck Nijhof 8c97aee1fe
Add parallel automation/script action (#12491) 2022-04-28 15:09:03 -05:00
Paulus Schoutsen 3e188d1f87
Add shorthand condition to the gallery (#12400) 2022-04-25 10:00:28 +02:00
Joakim Sørensen ee7aa54ab4
Add entity search tip to dev-tools set state (#12355) 2022-04-21 21:06:35 -05:00
Franck Nijhof 6fd4cda534
Add Template selector (#12348) 2022-04-18 11:17:44 -05:00
Joakim Sørensen a124ec0717
Always render title field (#12319) 2022-04-13 07:20:00 -05:00
Paulus Schoutsen 59595aabde
Add helpers to all selectors (#12230) 2022-04-05 15:26:52 -05:00
Joakim Sørensen 62f227da83
Use installed_version for update entities (#12194) 2022-04-01 19:28:39 +02:00
Joakim Sørensen 8baa0b2a9b
Hide skip when auto_update is true for updates (#12184) 2022-04-01 14:37:47 +02:00
Joakim Sørensen edc15940a2
Add icon to add-on picker (#12174) 2022-03-31 15:16:19 +02:00
Zack Barett 9444228907
List Selector (#12099)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-03-30 09:14:39 -07:00
Bram Kragten 062f21aa91
Add options to selectors gallery (#12156) 2022-03-30 12:34:37 +00:00
Zack Barett 7ab54ee5ce
Update Pickers and selectors with required (#12151)
* Update Pickers and selectors with required

* Use native * for device and entity
2022-03-30 06:48:56 -05:00
Joakim Sørensen cfc1999a28
Allow ha-alert to be used in our markdown render (#12153) 2022-03-30 11:22:36 +02:00
Joakim Sørensen 7ca28469b7
Fix theme settings on design page (#12154) 2022-03-30 11:21:00 +02:00
Joakim Sørensen e263b57296
Fetch release notes for update entities that provides it (#12148)
* Fetch release notes for update entities that provides it

* lint
2022-03-30 07:22:12 +02:00
Zack Barett ca22ec6340
Add selector initial values (#12142) 2022-03-28 10:38:58 -07:00