Skip to content

Commit 5acabbf

Browse files
committed
1.0 Release Candindate 1 - Migrate reterminal_dashboard to esphome_designer
Rename and reorganize the custom component from reterminal_dashboard to esphome_designer: many files were moved/renamed, old reterminal_dashboard artifacts removed, and numerous new modules added. Adds backend API modules, YAML parser and widget parsers, extensive frontend code and built/dist assets (JS/CSS/images/fonts), tests, and utilities. Cleans up obsolete files (e.g. SIDEBAR_PANEL_SETUP.md) and updates workflows/manifest/README accordingly to reflect the new component name and structure.
1 parent 029211e commit 5acabbf

File tree

544 files changed

+50007
-23214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

544 files changed

+50007
-23214
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ jobs:
3333
uses: actions/checkout@v4
3434
- name: Setup Pages
3535
uses: actions/configure-pages@v4
36-
- name: Create index.html from editor.html
37-
run: cp ./custom_components/reterminal_dashboard/frontend/editor.html ./custom_components/reterminal_dashboard/frontend/index.html
36+
3837
- name: Upload artifact
3938
uses: actions/upload-pages-artifact@v3
4039
with:
4140
# Point to the frontend directory
42-
path: './custom_components/reterminal_dashboard/frontend'
41+
path: './custom_components/esphome_designer/frontend'
4342
- name: Deploy to GitHub Pages
4443
id: deployment
4544
uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'custom_components/reterminal_dashboard/manifest.json'
8+
- 'custom_components/esphome_designer/manifest.json'
99

1010
jobs:
1111
release:
@@ -18,7 +18,7 @@ jobs:
1818
- name: Read version from manifest.json
1919
id: version
2020
run: |
21-
VERSION=$(jq -r .version custom_components/reterminal_dashboard/manifest.json)
21+
VERSION=$(jq -r .version custom_components/esphome_designer/manifest.json)
2222
echo "version=v$VERSION" >> $GITHUB_OUTPUT
2323
2424
- name: Create Release

README.md

Lines changed: 147 additions & 91 deletions
Large diffs are not rendered by default.

SIDEBAR_PANEL_SETUP.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

custom_components/reterminal_dashboard/.sensor_text_props.txt renamed to custom_components/esphome_designer/.sensor_text_props.txt

File renamed without changes.
File renamed without changes.

custom_components/reterminal_dashboard/__init__.py renamed to custom_components/esphome_designer/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
reTerminal Dashboard Designer integration.
2+
ESPHome Designer Designer integration.
33
44
Production-ready scaffold:
55
@@ -21,7 +21,7 @@
2121

2222
from .const import DOMAIN, STORAGE_KEY, STORAGE_VERSION
2323
from .http_api import async_register_http_views
24-
from .panel import ReTerminalDashboardPanelView, ReTerminalDashboardFontView
24+
from .panel import ESPHomeDesignerPanelView, ESPHomeDesignerFontView
2525
from .services import async_register_services, async_unregister_services
2626
from .storage import DashboardStorage
2727
from .models import DashboardState, DeviceConfig, PageConfig, WidgetConfig
@@ -38,7 +38,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
3838
3939
Expected minimal YAML structure:
4040
41-
reterminal_dashboard:
41+
esphome_designer:
4242
devices:
4343
my_reterminal:
4444
name: "Hallway reTerminal"
@@ -162,18 +162,18 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
162162
_LOGGER.info("%s: HTTP API views registered", DOMAIN)
163163

164164
# Register the embedded editor panel backend view
165-
hass.http.register_view(ReTerminalDashboardPanelView(hass))
166-
_LOGGER.info("%s: Panel view registered at /reterminal-dashboard", DOMAIN)
165+
hass.http.register_view(ESPHomeDesignerPanelView(hass))
166+
_LOGGER.info("%s: Panel view registered at /esphome-designer/editor", DOMAIN)
167167

168168
# Register the font view for MDI icons
169-
hass.http.register_view(ReTerminalDashboardFontView(hass))
170-
_LOGGER.info("%s: Font view registered at /reterminal-dashboard/materialdesignicons-webfont.ttf", DOMAIN)
169+
hass.http.register_view(ESPHomeDesignerFontView(hass))
170+
_LOGGER.info("%s: Font view registered at /esphome-designer/editor/materialdesignicons-webfont.ttf", DOMAIN)
171171

172172
# Register static view for frontend assets (CSS/JS)
173173
# This manually serves editor.css and editor.js to avoid issues with register_static_path
174-
from .panel import ReTerminalDashboardStaticView
175-
hass.http.register_view(ReTerminalDashboardStaticView(hass))
176-
_LOGGER.info("%s: Static view registered at /reterminal-dashboard/static/{filename}", DOMAIN)
174+
from .panel import ESPHomeDesignerStaticView
175+
hass.http.register_view(ESPHomeDesignerStaticView(hass))
176+
_LOGGER.info("%s: Static view registered at /esphome-designer/static/{filename}", DOMAIN)
177177

178178
# Register the sidebar panel if enabled
179179
if entry.options.get("show_in_sidebar", True):
@@ -184,9 +184,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
184184
component_name="iframe", # Use iframe panel type to load our view
185185
sidebar_title="ESPHome Designer",
186186
sidebar_icon="mdi:tablet-dashboard",
187-
frontend_url_path="reterminal-dashboard",
188-
config={"url": "/reterminal-dashboard"},
189-
require_admin=True,
187+
frontend_url_path="esphome-designer",
188+
config={"url": "/esphome-designer/editor/index.html"},
189+
require_admin=False,
190190
)
191191
_LOGGER.info("%s: Sidebar panel registered", DOMAIN)
192192
except Exception as e:
@@ -215,7 +215,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
215215
# Remove the sidebar panel
216216
try:
217217
from homeassistant.components import frontend
218-
frontend.async_remove_panel(hass, "reterminal-dashboard")
218+
frontend.async_remove_panel(hass, "esphome-designer")
219219
except Exception:
220220
pass
221221

custom_components/reterminal_dashboard/__pycache__/__init__.cpython-311.pyc renamed to custom_components/esphome_designer/__pycache__/__init__.cpython-311.pyc

10.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)