Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20231025.0 #18395

Merged
merged 186 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
774c7e2
Update dependency @material/web to v1.0.0 (#18070)
renovate[bot] Oct 3, 2023
014f9b8
Update dependency magic-string to v0.30.4 (#18089)
renovate[bot] Oct 4, 2023
8e1e42c
Bump postcss from 8.4.30 to 8.4.31 (#18110)
dependabot[bot] Oct 4, 2023
d2d7184
Update CodeMirror (#18096)
renovate[bot] Oct 4, 2023
c25447d
Update vaadinWebComponents monorepo to v24.1.10 (#18092)
renovate[bot] Oct 4, 2023
242b018
Make the "icon next/prev" series load faster (#18087)
KTibow Oct 4, 2023
32bc8bd
Preserve ancillary fields in a repeat action when modifying the form …
karwosts Oct 4, 2023
d7f1e9d
Do not clear alias when editing automation action, condition or trigg…
piitaya Oct 5, 2023
0489d89
Use restart dialog confirmation for quick command (#18113)
piitaya Oct 5, 2023
e1a71fb
Add translations for restore backup dialogs (#18112)
piitaya Oct 5, 2023
c106a0a
Hide tooltip after clicking on a chart to display more info (cosmetic…
k3a Oct 5, 2023
48593ee
fix setting wake word to first option everytime (#18121)
bramkragten Oct 5, 2023
f43171f
Fix class field for ha-icon-next/prev (#18118)
steverep Oct 5, 2023
0c32d1e
Set border-radius to 0 for img in thread panel (#18124)
piitaya Oct 5, 2023
4a4d9a0
Load Intl locale data in parallel (#18120)
steverep Oct 5, 2023
91ec43b
Update dependency @codemirror/view to v6.21.1 (#18125)
renovate[bot] Oct 5, 2023
6e00be6
Bumped version to 20231005.0
piitaya Oct 5, 2023
02bd50c
Update typescript-eslint monorepo to v6.7.4 (#18128)
renovate[bot] Oct 6, 2023
b534ff8
Update dependency @codemirror/view to v6.21.2 (#18132)
renovate[bot] Oct 6, 2023
530208c
Update Yarn to v3.6.4 (#18139)
renovate[bot] Oct 7, 2023
484b166
Update dependency @rollup/plugin-node-resolve to v15.2.2 (#18156)
renovate[bot] Oct 8, 2023
9d2a443
Update dependency @rollup/plugin-babel to v6.0.4 (#18153)
renovate[bot] Oct 8, 2023
7a8139b
Update dependency @rollup/plugin-json to v6.0.1 (#18155)
renovate[bot] Oct 8, 2023
c14a6d5
Update dependency @rollup/plugin-replace to v5.0.3 (#18157)
renovate[bot] Oct 8, 2023
334be93
Update dependency @rollup/plugin-commonjs to v25.0.5 (#18154)
renovate[bot] Oct 8, 2023
7fdbc9d
Update dependency sinon to v16.1.0 (#18158)
renovate[bot] Oct 8, 2023
36219e1
Update dependency marked to v9.1.0 (#18148)
renovate[bot] Oct 8, 2023
a60a721
Bump home-assistant/wheels from 2023.10.1 to 2023.10.4 (#18162)
dependabot[bot] Oct 9, 2023
d7760c4
Expose history replace in action editor (#17740)
breakthestatic Oct 9, 2023
7861d81
Add translations for voice assistant debug page (#17843)
spacegaier Oct 9, 2023
db9b16e
Change help link in statistics pickers in energy dashboard (#18138)
karwosts Oct 9, 2023
bfeee61
more-info: make long states "multilined" (#17649)
ildar170975 Oct 9, 2023
811ebde
Add per-set theme coloring to remainder of energy dashboard (#17826)
karwosts Oct 9, 2023
220b479
Update developer-tools-state.js: fix alignment for ha-tips (#17608)
ildar170975 Oct 9, 2023
352e721
Update state-badge.ts: change border-radius for media_player (#18066)
ildar170975 Oct 9, 2023
5b7ef94
Make it possible to clear an optional select (#18047)
bramkragten Oct 9, 2023
bf9e2cd
Move polyfill time zone data out of bundles (#18142)
steverep Oct 9, 2023
63095f1
Replace paper-items in Scene Editor (#18101)
silamon Oct 9, 2023
ae35fd1
Fix handling of negative zero in number selectors (#17127)
karwosts Oct 9, 2023
a3532a4
Add before offset to sun condition description (#18152)
mib1185 Oct 9, 2023
cc01e8d
Update dependency core-js to v3.33.0 (#18119)
renovate[bot] Oct 9, 2023
294df39
Remove test language from production (really) (#18137)
steverep Oct 9, 2023
5a6d6dc
Fix period selector in statistic card (#18131)
karwosts Oct 9, 2023
86c014b
Add screen condition to conditional card. (#18041)
piitaya Oct 9, 2023
4a5b67e
Add 'max devices' config to Energy Devices Graph (#17553)
thomaskonrad Oct 9, 2023
eae3c13
Localize durations using Intl.NumberFormat (#18067)
silamon Oct 9, 2023
d3fd279
Separate outline color (#18109)
KTibow Oct 9, 2023
659db10
Update CodeMirror (#18166)
renovate[bot] Oct 9, 2023
a453325
Update dependency vis-network to v9.1.7 (#18167)
renovate[bot] Oct 9, 2023
7e630d0
Update dependency eslint to v8.51.0 (#18172)
renovate[bot] Oct 10, 2023
b3f1783
Say "log in" instead of "login" on the authorize page (#18175)
KTibow Oct 10, 2023
8f1a6ef
Improve password show/hide buttons (#18176)
KTibow Oct 10, 2023
51f8d91
Fix user name in config page (#18187)
piitaya Oct 11, 2023
84e743c
Update dependency @mdi/svg to v7.3.67 (#18186)
renovate[bot] Oct 11, 2023
8c3a7de
Update dependency @mdi/js to v7.3.67 (#18185)
renovate[bot] Oct 11, 2023
095d171
Tile card current temperature for climate entity (#18143)
fustom Oct 11, 2023
479a625
Update url on tab reorder (#18169)
pierosavi Oct 11, 2023
ceaceaf
Move select clearing to ha-select (#18190)
bramkragten Oct 11, 2023
4293192
Use progress button when adding/updating mount (#18182)
bramkragten Oct 11, 2023
6c3b748
Update dependency @rollup/plugin-node-resolve to v15.2.3 (#18193)
renovate[bot] Oct 11, 2023
79f3759
Create webpack bundle stats for Relative CI (#18178)
steverep Oct 12, 2023
c5056eb
Allow Multiple Entities for Numeric State Trigger (#18064)
silamon Oct 12, 2023
51a6376
Fix RelativeCI format issues (#18194)
silamon Oct 12, 2023
9f05a96
Fix RelativeCI input issues (#18196)
silamon Oct 12, 2023
6bdeb45
Update vaadinWebComponents monorepo to v24.1.11 (#18195)
renovate[bot] Oct 12, 2023
6686da1
Fix for RTL languages - Profile panel + weather forecast card (#18191)
tzagim Oct 12, 2023
2c743b7
Update relative-ci.yaml (#18197)
bramkragten Oct 12, 2023
6d1e923
Voice assistant dev: fix wake word continue (#18181)
bramkragten Oct 12, 2023
4c94ac5
CountrySelector (#18035)
gjohansson-ST Oct 12, 2023
f8966a2
Slug not needed for reactive ci (#18200)
bramkragten Oct 12, 2023
6071757
Add date range picker to energy period selector (#14337)
TillFleisch Oct 12, 2023
1b220ab
run on all branches
bramkragten Oct 12, 2023
a10ec1f
Update typescript-eslint monorepo to v6.7.5 (#18203)
renovate[bot] Oct 12, 2023
15c67fe
Improve state and name display on state-card-display (#18207)
piitaya Oct 13, 2023
08d8b43
Update dependency @types/js-yaml to v4.0.7 (#18212)
renovate[bot] Oct 14, 2023
faa4455
Update dependency @bundle-stats/plugin-webpack-filter to v4.7.7 (#18220)
renovate[bot] Oct 14, 2023
ce33cf7
Update dependency @codemirror/autocomplete to v6.10.1 (#18218)
renovate[bot] Oct 15, 2023
4253feb
Update dependency marked to v9.1.1 (#18224)
renovate[bot] Oct 15, 2023
37ef444
Update babel monorepo to v7.23.2 (#18223)
renovate[bot] Oct 15, 2023
4ea8f59
Update dependency @codemirror/state to v6.3.0 (#18228)
renovate[bot] Oct 15, 2023
88d14cd
Update dependency magic-string to v0.30.5 (#18238)
renovate[bot] Oct 15, 2023
02d9786
Fix lokalise translation upload (#18221)
silamon Oct 16, 2023
4b885cb
Remove narrow from strategies (#18201)
bramkragten Oct 16, 2023
628c2c3
Bump relative-ci/agent-action from 2.1.8 to 2.1.10 (#18252)
dependabot[bot] Oct 16, 2023
a0f1b7f
Update dependency @codemirror/autocomplete to v6.10.2 (#18253)
renovate[bot] Oct 16, 2023
434b959
Remove SystemJS loader from Webpack builds (#18249)
steverep Oct 16, 2023
62d21be
Replace polymer paper-slider (#18168)
silamon Oct 16, 2023
c3a9682
An alias editor and overflow menu for choose options (#18183)
karwosts Oct 16, 2023
b6fe0cf
Replace internal material/web usages (#18219)
silamon Oct 16, 2023
7ee91ca
Update vaadinWebComponents monorepo to v24.2.0 (#18255)
renovate[bot] Oct 16, 2023
a08185a
Migrate developer state tools to LitElement (#18134)
silamon Oct 16, 2023
3b2f6d7
Minify ha-style/Roboto and load asynchronously (#18226)
steverep Oct 16, 2023
d88831b
Enable CORS for legacy bundle loading (#18248)
steverep Oct 16, 2023
ffb7469
Update dependency webpack to v5.89.0 (#18260)
renovate[bot] Oct 17, 2023
4c7c04b
Update dependency marked to v9.1.2 (#18259)
renovate[bot] Oct 17, 2023
b2cb0d8
Fixes alarm dialog inputmode for code input (#18263)
joshmcrty Oct 17, 2023
f98c076
Fix "No visual editor support for action: " (#18271)
KTibow Oct 18, 2023
f432528
Update dependency lint-staged to v15 (#18267)
renovate[bot] Oct 18, 2023
ad68782
Typo automation (#18266)
jonaslang1 Oct 18, 2023
b2bc529
Update dependency @rollup/plugin-commonjs to v25.0.7 (#18279)
renovate[bot] Oct 18, 2023
8f3fea5
Update dependency vis-network to v9.1.8 (#18281)
renovate[bot] Oct 18, 2023
24c37f5
Update dependency @rollup/plugin-replace to v5.0.4 (#18280)
renovate[bot] Oct 18, 2023
feb3718
Fix yarn lock file (#18283)
steverep Oct 18, 2023
49f88a9
Add multi-path icon support and path attributes (#18189)
sisimomo Oct 19, 2023
02a212a
Load and set Polymer settings asynchronously (#18278)
steverep Oct 19, 2023
3526ba3
Remove unused imports from ZHA card and alias editor (#18282)
steverep Oct 19, 2023
60ec4d3
Fix some minor inconsistencies/duplications (#18071)
KTibow Oct 19, 2023
7eb92be
Update formatjs monorepo (#18285)
renovate[bot] Oct 20, 2023
5e933e8
Update typescript-eslint monorepo to v6.8.0 (#18292)
renovate[bot] Oct 20, 2023
16766f8
Wrap dict attributes (#18290)
joshmcrty Oct 20, 2023
ce11301
Fix initial theming (#18296)
bramkragten Oct 20, 2023
4af0ecb
Update dependency @types/babel__plugin-transform-runtime to v7.9.4 (#…
renovate[bot] Oct 21, 2023
c14e333
Update dependency @types/chromecast-caf-sender to v1.0.7 (#18303)
renovate[bot] Oct 21, 2023
79b2fa9
Update dependency @types/chromecast-caf-receiver to v6.0.11 (#18302)
renovate[bot] Oct 21, 2023
17df761
Update dependency @types/esprima to v4.0.5 (#18304)
renovate[bot] Oct 21, 2023
96fbd8a
Don't round statistic values before plotting (#18312)
karwosts Oct 21, 2023
d992b2d
Fix missing range labels in date-range-picker (#18274)
karwosts Oct 21, 2023
7be8a79
Update dependency @types/leaflet-draw to v1.0.9 (#18311)
renovate[bot] Oct 21, 2023
f115e40
Update dependency @types/html-minifier-terser to v7.0.1 (#18308)
renovate[bot] Oct 21, 2023
c484910
Update dependency @codemirror/state to v6.3.1 (#18307)
renovate[bot] Oct 21, 2023
0ffe0f3
Update dependency @types/leaflet to v1.9.7 (#18310)
renovate[bot] Oct 21, 2023
2a5f809
Update dependency @types/luxon to v3.3.3 (#18315)
renovate[bot] Oct 21, 2023
b452265
Update dependency @types/js-yaml to v4.0.8 (#18309)
renovate[bot] Oct 21, 2023
3fa7001
Update dependency @types/mocha to v10.0.3 (#18316)
renovate[bot] Oct 21, 2023
b521be6
Update dependency @types/serve-handler to v6.1.3 (#18318)
renovate[bot] Oct 21, 2023
f72ab94
Update dependency @types/qrcode to v1.5.4 (#18317)
renovate[bot] Oct 21, 2023
e4a67dd
Update dependency @types/sortablejs to v1.15.4 (#18319)
renovate[bot] Oct 21, 2023
d0f5b0e
Update dependency @types/tar to v6.1.7 (#18320)
renovate[bot] Oct 21, 2023
a03d3f7
Update dependency @types/ua-parser-js to v0.7.38 (#18321)
renovate[bot] Oct 22, 2023
f15a65f
Update dependency sinon to v16.1.1 (#18322)
renovate[bot] Oct 22, 2023
11d62ce
Lock file maintenance (#18284)
renovate[bot] Oct 22, 2023
9d87a66
Update dependency lint-staged to v15.0.2 (#18326)
renovate[bot] Oct 22, 2023
71edbd6
Update dependency sinon to v16.1.3 (#18325)
renovate[bot] Oct 22, 2023
db8287d
Bump actions/checkout from 4.1.0 to 4.1.1 (#18337)
dependabot[bot] Oct 23, 2023
1247a5c
Bump home-assistant/wheels from 2023.10.4 to 2023.10.5 (#18338)
dependabot[bot] Oct 23, 2023
03a21d5
Only calculate opening direction when we are opening the datepicker (…
bramkragten Oct 23, 2023
768344c
Fix double load of lovelace resources (#18332)
bdraco Oct 23, 2023
b24e99c
Fix oscillating handler in more info fan card (#18305) (#18306)
caibinqing Oct 23, 2023
77e05de
Remove ondemand methods for CodeMirror and SortableJS (#18336)
steverep Oct 23, 2023
c48b620
Fix inconsistencies in `slugify` between frontend and core implementa…
Caius-Bonus Oct 23, 2023
c6be4d6
Improve warning messages in conditional card (#18272)
piitaya Oct 23, 2023
aeaf091
Use sensor device class for graph and precision (#18099)
piitaya Oct 23, 2023
4354ad3
Move condition editor into its own file (#18340)
piitaya Oct 23, 2023
eedb42b
Add user condition to conditional card (#18265)
piitaya Oct 23, 2023
9bafbdd
Allow multiple states in conditional card (#18273)
piitaya Oct 23, 2023
58625d2
Update dependency core-js to v3.33.1 (#18339)
renovate[bot] Oct 23, 2023
65112b3
Update dependency @material/web to v1.0.1 (#18335)
renovate[bot] Oct 23, 2023
6cae11f
Update statistics chart to respect entity display precision, fix prec…
karwosts Oct 23, 2023
463a324
Add two pane view to calendar panel (#18286)
bramkragten Oct 23, 2023
fdddc18
Add numeric state condition for conditional card (#18288)
piitaya Oct 23, 2023
82a464f
Add translation to numeric condition card
piitaya Oct 23, 2023
0ff5bff
Make time condition translatable (#18298)
silamon Oct 23, 2023
53b8d1b
Update dependency sinon to v17 (#18346)
renovate[bot] Oct 23, 2023
2b9540f
Add support for todo component (#18289)
bramkragten Oct 23, 2023
eb4afed
Update dependency eslint to v8.52.0 (#18370)
renovate[bot] Oct 24, 2023
c9f5d16
Rename status code string for To-do List NEEDS-ACTION status (#18373)
allenporter Oct 24, 2023
6ffc062
Add support for state content customization in tile card (#18180)
piitaya Oct 24, 2023
1fdf609
Rename safe mode to recovery mode (#18374)
emontnemery Oct 24, 2023
191250a
Fix complex attribute display in devtools (#18371)
karwosts Oct 24, 2023
18827db
Add bottom padding to code editor (#18368)
joshmcrty Oct 24, 2023
32edbd7
Remove js-yaml resource proxy (#18369)
steverep Oct 24, 2023
be1624f
Convert shopping list card editor to ha-form (#18376)
bramkragten Oct 24, 2023
c0dfc9f
Performance tweaks in energy dashboard (#18379)
bramkragten Oct 24, 2023
ccba7a7
Add button to create local calendar in calendar panel (#18377)
bramkragten Oct 24, 2023
2b67731
Add resize observer to full calendar, fix missing styles (#18381)
bramkragten Oct 24, 2023
b12e498
Subscribe to the issue registry as early as possible (#18384)
bdraco Oct 24, 2023
8efc081
Rename shopping-list-card to todo-list-card (#18378)
bramkragten Oct 24, 2023
c840f1c
Redesign about page (#18383)
piitaya Oct 24, 2023
8350d71
Add restart in safe mode in restart dialog (#18375)
piitaya Oct 24, 2023
eb35eb3
Disable dashboard resources in safe mode (#18382)
piitaya Oct 24, 2023
6751764
Add safe mode theme and alert dialog
bramkragten Oct 24, 2023
10bcaad
center icons in restart dialog
bramkragten Oct 24, 2023
3e6ab8b
Chart updates to improve stability, possible fix for infinite loop (#…
karwosts Oct 24, 2023
1cb238e
Fixes for todo card (#18388)
bramkragten Oct 24, 2023
d8d16c4
Add Z-Wave controller hard reset device action (certification req) (#…
raman325 Oct 24, 2023
d94f7c9
Restart dialog description: consistently use indicative form (#18385)
c0ffeeca7 Oct 24, 2023
33e0c69
Use expansion panel for dashboard conditions (#18380)
piitaya Oct 24, 2023
464ecff
Fix a crash in trace graph generation for if/else (#18390)
karwosts Oct 24, 2023
7ce7cbb
Add serial number to the device info card (#18386)
jpbede Oct 25, 2023
80112bb
Add Fields to Script UI (#18250)
karwosts Oct 25, 2023
01f51f3
Cache brand images (#17840)
steverep Oct 25, 2023
f6fddbc
Add create todo list button (#18387)
bramkragten Oct 25, 2023
a745539
fix height issue calendar, make default on mobile list (#18394)
bramkragten Oct 25, 2023
399f121
Bumped version to 20231025.0
bramkragten Oct 25, 2023
402d443
Add mac and bluetooth address to the device info card (#18392)
jpbede Oct 25, 2023
d2caed2
Merge branch 'master' into dev
bramkragten Oct 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cast_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
ref: dev

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
ref: master

Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Setup Node
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Setup Node
uses: actions/[email protected]
with:
Expand All @@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Setup Node
uses: actions/[email protected]
with:
Expand All @@ -85,13 +85,19 @@ jobs:
run: ./node_modules/.bin/gulp build-app
env:
IS_TEST: "true"
- name: Upload bundle stats
uses: actions/[email protected]
with:
name: frontend-bundle-stats
path: build/stats/*.json
if-no-files-found: error
supervisor:
name: Build supervisor
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Setup Node
uses: actions/[email protected]
with:
Expand All @@ -103,3 +109,9 @@ jobs:
run: ./node_modules/.bin/gulp build-hassio
env:
IS_TEST: "true"
- name: Upload bundle stats
uses: actions/[email protected]
with:
name: supervisor-bundle-stats
path: build/stats/*.json
if-no-files-found: error
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/demo_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
ref: dev

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
ref: master

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/design_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Setup Node
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/design_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
if: github.repository == 'home-assistant/frontend' && contains(github.event.pull_request.labels.*.name, 'needs design preview')
steps:
- name: Check out files from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Setup Node
uses: actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
contents: write
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -57,14 +57,14 @@ jobs:
run: tar -czvf translations.tar.gz translations

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: wheels
path: dist/home_assistant_frontend*.whl
if-no-files-found: error

- name: Upload translations
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: translations
path: translations.tar.gz
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/relative-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: RelativeCI

on:
workflow_run:
workflows: [CI]
types:
- completed

jobs:
upload:
name: Upload stats
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
bundle: [frontend, supervisor]
build: [modern, legacy]
runs-on: ubuntu-latest
steps:
- name: Send bundle stats and build information to RelativeCI
uses: relative-ci/[email protected]
with:
key: ${{ secrets[format('RELATIVE_CI_KEY_{0}_{1}', matrix.bundle, matrix.build)] }}
token: ${{ github.token }}
artifactName: ${{ format('{0}-bundle-stats', matrix.bundle) }}
webpackStatsFile: ${{ format('{0}-{1}.json', matrix.bundle, matrix.build) }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
contents: write # Required to upload release assets
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Verify version
uses: home-assistant/actions/helpers/verify-version@master
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
echo "home-assistant-frontend==$version" > ./requirements.txt

- name: Build wheels
uses: home-assistant/[email protected].1
uses: home-assistant/[email protected].5
with:
abi: cp311
tag: musllinux_1_2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/translations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Upload Translations
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ src/cast/dev_const.ts

# Home Assistant config
/config/

# Jetbrains
/.idea/
262 changes: 131 additions & 131 deletions .yarn/releases/yarn-3.6.3.cjs → .yarn/releases/yarn-3.6.4.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.6.3.cjs
yarnPath: .yarn/releases/yarn-3.6.4.cjs
6 changes: 3 additions & 3 deletions build-scripts/bundle.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild, isTestBuild }) => ({
"@babel/preset-env",
{
useBuiltIns: latestBuild ? false : "entry",
corejs: latestBuild ? false : { version: "3.32", proposals: true },
corejs: latestBuild ? false : { version: "3.33", proposals: true },
bugfixes: true,
shippedProposals: true,
},
Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild, isTestBuild }) => ({
sourceMaps: !isTestBuild,
});

const nameSuffix = (latestBuild) => (latestBuild ? "-latest" : "-es5");
const nameSuffix = (latestBuild) => (latestBuild ? "-modern" : "-legacy");

const outputPath = (outputRoot, latestBuild) =>
path.resolve(outputRoot, latestBuild ? "frontend_latest" : "frontend_es5");
Expand Down Expand Up @@ -183,7 +183,7 @@ const publicPath = (latestBuild, root = "") =>
module.exports.config = {
app({ isProdBuild, latestBuild, isStatsBuild, isTestBuild, isWDS }) {
return {
name: "app" + nameSuffix(latestBuild),
name: "frontend" + nameSuffix(latestBuild),
entry: {
service_worker: "./src/entrypoints/service_worker.ts",
app: "./src/entrypoints/app.ts",
Expand Down
4 changes: 4 additions & 0 deletions build-scripts/gulp/gather-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fs from "fs-extra";
import gulp from "gulp";
import path from "path";
import paths from "../paths.cjs";
import env from "../env.cjs";

const npmPath = (...parts) =>
path.resolve(paths.polymer_dir, "node_modules", ...parts);
Expand Down Expand Up @@ -62,6 +63,9 @@ function copyPolyfills(staticDir) {
}

function copyLoaderJS(staticDir) {
if (!env.useRollup()) {
return;
}
const staticPath = genStaticPath(staticDir);
copyFileDir(npmPath("systemjs/dist/s.min.js"), staticPath("js"));
copyFileDir(npmPath("systemjs/dist/s.min.js.map"), staticPath("js"));
Expand Down
67 changes: 40 additions & 27 deletions build-scripts/gulp/locale-data.js
Original file line number Diff line number Diff line change
@@ -1,69 +1,82 @@
import { deleteSync } from "del";
import { mkdir, readFile, writeFile } from "fs/promises";
import gulp from "gulp";
import path from "path";
import { join, resolve } from "node:path";
import paths from "../paths.cjs";

const outDir = path.join(paths.build_dir, "locale-data");
const formatjsDir = join(paths.polymer_dir, "node_modules", "@formatjs");
const outDir = join(paths.build_dir, "locale-data");

const INTL_PACKAGES = {
"intl-relativetimeformat": "RelativeTimeFormat",
const INTL_POLYFILLS = {
"intl-datetimeformat": "DateTimeFormat",
"intl-numberformat": "NumberFormat",
"intl-displaynames": "DisplayNames",
"intl-listformat": "ListFormat",
"intl-numberformat": "NumberFormat",
"intl-relativetimeformat": "RelativeTimeFormat",
};

const convertToJSON = async (pkg, lang) => {
const convertToJSON = async (
pkg,
lang,
subDir = "locale-data",
addFunc = "__addLocaleData",
skipMissing = true
) => {
let localeData;
try {
localeData = await readFile(
path.resolve(
paths.polymer_dir,
`node_modules/@formatjs/${pkg}/locale-data/${lang}.js`
),
join(formatjsDir, pkg, subDir, `${lang}.js`),
"utf-8"
);
} catch (e) {
// Ignore if language is missing (i.e. not supported by @formatjs)
if (e.code === "ENOENT") {
if (e.code === "ENOENT" && skipMissing) {
console.warn(`Skipped missing data for language ${lang} from ${pkg}`);
return;
} else {
throw e;
}
throw e;
}
// Convert to JSON
const className = INTL_PACKAGES[pkg];
localeData = localeData
.replace(
new RegExp(
`\\/\\*\\s*@generated\\s*\\*\\/\\s*\\/\\/\\s*prettier-ignore\\s*if\\s*\\(Intl\\.${className}\\s*&&\\s*typeof\\s*Intl\\.${className}\\.__addLocaleData\\s*===\\s*'function'\\)\\s*{\\s*Intl\\.${className}\\.__addLocaleData\\(`,
"im"
),
""
)
.replace(/\)\s*}/im, "");
const obj = INTL_POLYFILLS[pkg];
const dataRegex = new RegExp(
`Intl\\.${obj}\\.${addFunc}\\((?<data>.*)\\)`,
"s"
);
localeData = localeData.match(dataRegex)?.groups?.data;
if (!localeData) {
throw Error(`Failed to extract data for language ${lang} from ${pkg}`);
}
// Parse to validate JSON, then stringify to minify
localeData = JSON.stringify(JSON.parse(localeData));
await writeFile(path.join(outDir, `${pkg}/${lang}.json`), localeData);
await writeFile(join(outDir, `${pkg}/${lang}.json`), localeData);
};

gulp.task("clean-locale-data", async () => deleteSync([outDir]));

gulp.task("create-locale-data", async () => {
const translationMeta = JSON.parse(
await readFile(
path.resolve(paths.translations_src, "translationMetadata.json"),
resolve(paths.translations_src, "translationMetadata.json"),
"utf-8"
)
);
const conversions = [];
for (const pkg of Object.keys(INTL_PACKAGES)) {
await mkdir(path.join(outDir, pkg), { recursive: true });
for (const pkg of Object.keys(INTL_POLYFILLS)) {
// eslint-disable-next-line no-await-in-loop
await mkdir(join(outDir, pkg), { recursive: true });
for (const lang of Object.keys(translationMeta)) {
conversions.push(convertToJSON(pkg, lang));
}
}
conversions.push(
convertToJSON(
"intl-datetimeformat",
"add-all-tz",
".",
"__addTZData",
false
)
);
await Promise.all(conversions);
});

Expand Down
Loading
Loading