Skip to content

Commit b3edc7e

Browse files
committed
feat(ajustes): tarjetas webapp-shell + Mi sesion + fixes
- Apariencia: previews de tema con tokens reales (scope .light/.dark), fuera THEME_SWATCHES hex; densidad comoda/compacta; reducir animaciones - Mi sesion (patron easyzfs): Cambiar mi contrasena (despliega form) + Cerrar sesion; absorbe la tarjeta Seguridad y el logout suelto - Instalar PWA: oculta si el navegador no lo soporta; estados instalada/instalable/ios; Acerca de con version desde package.json - Usuarios: borrado con confirmacion inline en dos pasos (fuera window.confirm) - fix(precios): los campos nunca se persistian (Guardar hacia update({})); ahora persisten en blur - login: navigator.credentials.store(PasswordCredential) tras login OK para que el navegador ofrezca guardar la credencial - HeliosToaster global (fuera de Ajustes e Historico) - verificado Playwright: Mi sesion, densidad, PWA oculta, version build, borrado inline — TODO OK
1 parent c2c7994 commit b3edc7e

9 files changed

Lines changed: 297 additions & 123 deletions

File tree

‎app/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "my-app",
2+
"name": "helios",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.2.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

‎app/src/i18n/locales/en/translation.json‎

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"autoconsumo": "Self-consumption",
1919
"charging": "Charging",
2020
"discharging": "Discharging",
21-
"idle": "Idle"
21+
"idle": "Idle",
22+
"confirm": "Confirm"
2223
},
2324
"nav": {
2425
"dashboard": "Today",
@@ -296,7 +297,8 @@
296297
"appShort": "App",
297298
"acerca": "About",
298299
"seguridad": "Security",
299-
"conexionDatos": "Connection & data"
300+
"conexionDatos": "Connection & data",
301+
"sesion": "My session"
300302
},
301303
"theme": {
302304
"autoNote": "In Auto mode, the interface uses the light theme between sunrise (06:50) and sunset (21:40).",
@@ -360,10 +362,11 @@
360362
"step3": "Done: shortcut with its own icon",
361363
"install": "Install app",
362364
"unavailable": "Your browser will offer installation from its menu when available.",
363-
"iconAlt": "Helios app icon"
365+
"iconAlt": "Helios app icon",
366+
"installed": "Installed"
364367
},
365368
"footer": {
366-
"version": "Helios v0.1 · Home solar monitor",
369+
"version": "Helios v{{version}} · Home solar monitor",
367370
"local": "Local data via Home Assistant · No cloud, no accounts",
368371
"made": "Made with ☀ at home"
369372
},
@@ -378,8 +381,15 @@
378381
"confirm": "Repeat password",
379382
"mismatch": "Passwords do not match",
380383
"submit": "Change password",
381-
"changed": "Password updated"
382-
}
384+
"changed": "Password updated",
385+
"change": "Change my password"
386+
},
387+
"density": {
388+
"title": "Density",
389+
"comfortable": "Comfortable",
390+
"compact": "Compact"
391+
},
392+
"reduceMotion": "Reduce animations"
383393
},
384394
"footer": {
385395
"line1": "Helios · Solar Monitor — local data via Home Assistant",

‎app/src/i18n/locales/es/translation.json‎

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"autoconsumo": "Autoconsumo",
1919
"charging": "Cargando",
2020
"discharging": "Descargando",
21-
"idle": "En reposo"
21+
"idle": "En reposo",
22+
"confirm": "Confirmar"
2223
},
2324
"nav": {
2425
"dashboard": "Hoy",
@@ -296,7 +297,8 @@
296297
"appShort": "App",
297298
"acerca": "Acerca de",
298299
"seguridad": "Seguridad",
299-
"conexionDatos": "Conexión y datos"
300+
"conexionDatos": "Conexión y datos",
301+
"sesion": "Mi sesión"
300302
},
301303
"theme": {
302304
"autoNote": "En modo Auto, la interfaz usa el tema claro entre el amanecer (06:50) y el atardecer (21:40).",
@@ -360,10 +362,11 @@
360362
"step3": "Listo: acceso directo con icono propio",
361363
"install": "Instalar app",
362364
"unavailable": "Tu navegador ofrecerá la instalación desde su menú cuando esté disponible.",
363-
"iconAlt": "Icono de la app Helios"
365+
"iconAlt": "Icono de la app Helios",
366+
"installed": "Instalada"
364367
},
365368
"footer": {
366-
"version": "Helios v0.1 · Monitor solar doméstico",
369+
"version": "Helios v{{version}} · Monitor solar doméstico",
367370
"local": "Datos locales vía Home Assistant · Sin nube, sin cuentas",
368371
"made": "Hecho con ☀ en casa"
369372
},
@@ -378,8 +381,15 @@
378381
"confirm": "Repite la contraseña",
379382
"mismatch": "Las contraseñas no coinciden",
380383
"submit": "Cambiar contraseña",
381-
"changed": "Contraseña actualizada"
382-
}
384+
"changed": "Contraseña actualizada",
385+
"change": "Cambiar mi contraseña"
386+
},
387+
"density": {
388+
"title": "Densidad",
389+
"comfortable": "Cómoda",
390+
"compact": "Compacta"
391+
},
392+
"reduceMotion": "Reducir animaciones"
383393
},
384394
"footer": {
385395
"line1": "Helios · Monitor Solar — datos locales vía Home Assistant",

‎app/src/i18n/locales/zh-CN/translation.json‎

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"autoconsumo": "自用",
1919
"charging": "充电中",
2020
"discharging": "放电中",
21-
"idle": "待机"
21+
"idle": "待机",
22+
"confirm": "确认"
2223
},
2324
"nav": {
2425
"dashboard": "今日",
@@ -294,7 +295,8 @@
294295
"appShort": "应用",
295296
"acerca": "关于",
296297
"seguridad": "安全",
297-
"conexionDatos": "连接与数据"
298+
"conexionDatos": "连接与数据",
299+
"sesion": "我的会话"
298300
},
299301
"theme": {
300302
"autoNote": "自动模式下,界面在日出(06:50)和日落(21:40)之间使用浅色主题。",
@@ -358,10 +360,11 @@
358360
"step3": "完成:带有专属图标的快捷方式",
359361
"install": "安装应用",
360362
"unavailable": "您的浏览器会在可用时从菜单中提供安装选项。",
361-
"iconAlt": "Helios 应用图标"
363+
"iconAlt": "Helios 应用图标",
364+
"installed": "已安装"
362365
},
363366
"footer": {
364-
"version": "Helios v0.1 · 家庭太阳能监控",
367+
"version": "Helios v{{version}} · 家庭太阳能监控",
365368
"local": "通过 Home Assistant 本地获取数据 · 无云端,无账号",
366369
"made": "在家用 ☀ 制作"
367370
},
@@ -376,8 +379,15 @@
376379
"confirm": "重复密码",
377380
"mismatch": "两次输入的密码不一致",
378381
"submit": "更改密码",
379-
"changed": "密码已更新"
380-
}
382+
"changed": "密码已更新",
383+
"change": "修改我的密码"
384+
},
385+
"density": {
386+
"title": "密度",
387+
"comfortable": "舒适",
388+
"compact": "紧凑"
389+
},
390+
"reduceMotion": "减少动画"
381391
},
382392
"footer": {
383393
"line1": "Helios · 太阳能监控 — 通过 Home Assistant 本地获取数据",

‎app/src/index.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
@tailwind utilities;
44

55
@layer base {
6-
:root {
6+
/* .light permite forzar el tema claro en previews dentro de páginas oscuras */
7+
:root,
8+
.light {
79
/* ── Tokens canónicos webapp-shell (RGB triplets, claro) ──
810
Sufijo -rgb: los nombres sin sufijo están ocupados por los
911
legacy hex (gráficas SVG) y los HSL de shadcn. */

0 commit comments

Comments
 (0)