feat: add HIDE_UPDATE_BANNER environment variable#2050
feat: add HIDE_UPDATE_BANNER environment variable#2050joelklabo wants to merge 1 commit intogetAlby:masterfrom
Conversation
Closes getAlby#2048 Add a `HIDE_UPDATE_BANNER` environment variable that suppresses the new version update banner. This is useful for managed deployments like Start9 that handle their own update notifications. When set to `true`, the frontend banner hook returns early with `showBanner: false`, skipping both the version check and the VSS migration banner. Changes: - config/models.go: Add `HideUpdateBanner` to `AppConfig` - api/models.go: Add `HideUpdateBanner` to `InfoResponse` - api/api.go: Populate `HideUpdateBanner` from env config - frontend/src/types.ts: Add `hideUpdateBanner` to `InfoResponse` - frontend/src/hooks/useBanner.tsx: Check flag before computing banner state - .env.example: Document the new variable Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThis change introduces an environment variable Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing in favor of #2051 which has a cleaner implementation on a separate branch. |
Summary
Closes #2048
Adds a
HIDE_UPDATE_BANNERenvironment variable that suppresses the new version update banner. Useful for managed deployments like Start9 that provide their own update notifications.Changes
config/models.go: AddHideUpdateBanner booltoAppConfig(HIDE_UPDATE_BANNERenv var, defaults tofalse)api/models.go: AddHideUpdateBannerfield toInfoResponseapi/api.go: Populate from env config inGetInfo()frontend/src/types.ts: AddhideUpdateBannertoInfoResponseinterfacefrontend/src/hooks/useBanner.tsx: Early return withshowBanner: falsewhen flag is set.env.example: Document the new variableTest plan
Summary by CodeRabbit
Release Notes