From 466260397e595835fefed7a8d80aa0da7aa46e0e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 14:38:58 +0000 Subject: [PATCH] Revert technical example placeholders to hardcoded values Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com> --- frontend/src/components/AddSmartPlugModal.tsx | 20 +++++------ frontend/src/i18n/locales/de.ts | 33 ++--------------- frontend/src/i18n/locales/en.ts | 33 ++--------------- frontend/src/i18n/locales/ja.ts | 35 ++----------------- .../{index-BA-rHKiq.js => index-QQNcmTSY.js} | 4 +-- static/index.html | 2 +- 6 files changed, 20 insertions(+), 107 deletions(-) rename static/assets/{index-BA-rHKiq.js => index-QQNcmTSY.js} (86%) diff --git a/frontend/src/components/AddSmartPlugModal.tsx b/frontend/src/components/AddSmartPlugModal.tsx index 4f2821661..257cdeed9 100644 --- a/frontend/src/components/AddSmartPlugModal.tsx +++ b/frontend/src/components/AddSmartPlugModal.tsx @@ -959,7 +959,7 @@ export function AddSmartPlugModal({ plug, onClose }: AddSmartPlugModalProps) { type="text" value={mqttPowerTopic} onChange={(e) => setMqttPowerTopic(e.target.value)} - placeholder={t('smartPlugs.addSmartPlug.placeholders.mqttPowerTopic')} + placeholder="zigbee2mqtt/shelly-working-room" className="w-full px-3 py-2 bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white placeholder-bambu-gray focus:border-bambu-green focus:outline-none" /> @@ -970,7 +970,7 @@ export function AddSmartPlugModal({ plug, onClose }: AddSmartPlugModalProps) { type="text" value={mqttPowerPath} onChange={(e) => setMqttPowerPath(e.target.value)} - placeholder={t('smartPlugs.addSmartPlug.placeholders.mqttPowerPath')} + placeholder="power_l1" className="w-full px-3 py-2 bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white placeholder-bambu-gray focus:border-bambu-green focus:outline-none" /> @@ -1011,7 +1011,7 @@ export function AddSmartPlugModal({ plug, onClose }: AddSmartPlugModalProps) { type="text" value={mqttEnergyPath} onChange={(e) => setMqttEnergyPath(e.target.value)} - placeholder={t('smartPlugs.addSmartPlug.placeholders.mqttEnergyPath')} + placeholder="energy_l1" className="w-full px-3 py-2 bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white placeholder-bambu-gray focus:border-bambu-green focus:outline-none" /> @@ -1052,7 +1052,7 @@ export function AddSmartPlugModal({ plug, onClose }: AddSmartPlugModalProps) { type="text" value={mqttStatePath} onChange={(e) => setMqttStatePath(e.target.value)} - placeholder={t('smartPlugs.addSmartPlug.placeholders.mqttStatePath')} + placeholder="state_l1" className="w-full px-3 py-2 bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white placeholder-bambu-gray focus:border-bambu-green focus:outline-none" /> @@ -1089,7 +1089,7 @@ export function AddSmartPlugModal({ plug, onClose }: AddSmartPlugModalProps) { setIpAddress(e.target.value); setTestResult(null); }} - placeholder={t('smartPlugs.addSmartPlug.placeholders.ipAddress')} + placeholder="192.168.1.100" className="flex-1 px-3 py-2 bg-bambu-dark border border-bambu-dark-tertiary rounded-lg text-white focus:border-bambu-green focus:outline-none" />