fix: autonomous banner uses hardcoded strings#13159
Conversation
- Move AUTONOMOUS_BANNER_STORAGE_KEY out of component scope to lib/constants/storage.ts to avoid recreating it on every render - Add layout.autonomousBannerMessage, layout.watchLive, and layout.watchLiveMobile keys to locales/en/common.json - Replace hardcoded English banner strings with t() calls Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Copilot <copilot@github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
❌ Post-Merge Verification: failedCommit: |
…r#13159) - Move AUTONOMOUS_BANNER_STORAGE_KEY out of component scope to lib/constants/storage.ts to avoid recreating it on every render - Add layout.autonomousBannerMessage, layout.watchLive, and layout.watchLiveMobile keys to locales/en/common.json - Replace hardcoded English banner strings with t() calls Signed-off-by: Copilot <copilot@github.com> Co-authored-by: Copilot <copilot@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes #13153
Changes
AUTONOMOUS_BANNER_STORAGE_KEYfrom inside the component function tolib/constants/storage.tsasSTORAGE_KEY_AUTONOMOUS_BANNER_DISMISSED— eliminates the per-render string allocationlayout.autonomousBannerMessage,layout.watchLive, andlayout.watchLiveMobilekeys tolocales/en/common.jsont()calls