Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,7 @@ func (api *api) GetInfo(ctx context.Context) (*InfoResponse, error) {
info.OAuthRedirect = !api.cfg.GetEnv().IsDefaultClientId()
info.Version = version.Tag
info.EnableAdvancedSetup = api.cfg.GetEnv().EnableAdvancedSetup
info.HideUpdateBanner = api.cfg.GetEnv().HideUpdateBanner
info.LdkVssEnabled = ldkVssEnabled == "true"
info.VssSupported = backendType == config.LDKBackendType && api.cfg.GetEnv().LDKVssUrl != ""
info.AutoUnlockPasswordEnabled = autoUnlockPassword != ""
Expand Down
1 change: 1 addition & 0 deletions api/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ type InfoResponse struct {
Relays []InfoResponseRelay `json:"relays"`
NodeAlias string `json:"nodeAlias"`
MempoolUrl string `json:"mempoolUrl"`
HideUpdateBanner bool `json:"hideUpdateBanner"`
}

type UpdateSettingsRequest struct {
Expand Down
1 change: 1 addition & 0 deletions config/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type AppConfig struct {
AutoUnlockPassword string `envconfig:"AUTO_UNLOCK_PASSWORD"`
LogDBQueries bool `envconfig:"LOG_DB_QUERIES" default:"false"`
BoltzApi string `envconfig:"BOLTZ_API" default:"https://api.boltz.exchange"`
HideUpdateBanner bool `envconfig:"HIDE_UPDATE_BANNER" default:"false"`
}

func (c *AppConfig) IsDefaultClientId() bool {
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/home/widgets/WhatsNewWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ export function WhatsNewWidget() {
const { data: info } = useInfo();
const { data: albyInfo } = useAlbyInfo();

if (!info || !albyInfo || !albyInfo.hub.latestReleaseNotes) {
if (
!info ||
!albyInfo ||
!albyInfo.hub.latestReleaseNotes ||
info.hideUpdateBanner
) {
return null;
}

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/hooks/useBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export function useBanner() {
const isDismissedRef = React.useRef(false);

React.useEffect(() => {
if (!info || !albyInfo || isDismissedRef.current) {
if (!info || !albyInfo || info.hideUpdateBanner || isDismissedRef.current) {
return;
}

// vss migration (alby cloud only)
// TODO: remove after 2026-01-01
// TODO: remove after 2026-08-01
const vssMigrationRequired =
info.oauthRedirect &&
!!albyMe?.subscription.plan_code.includes("buzz") &&
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export interface InfoResponse {
nodeAlias: string;
mempoolUrl: string;
bitcoinDisplayFormat: BitcoinDisplayFormat;
hideUpdateBanner: boolean;
}

export type BitcoinDisplayFormat = "sats" | "bip177";
Expand Down
Loading