feat(web): prepare the fluxer.com domain migration (#2952)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-25 13:43:34 +02:00
1 parent e62ae77643
commit 6730a242db
223 files changed
+13412 -2669

No files matched your search

@@ -73,6 +73,11 @@ const INVITES_DISABLED_NAGBAR_DESCRIPTOR = msg({
message: 'Invites disabled nagbar',
comment: 'Developer control label for the invites-disabled banner.',
});
const DOMAIN_MOVED_NAGBAR_DESCRIPTOR = msg({
message: 'Domain moved nagbar',
comment:
'Developer or debug surface, keep terse and technical. Label in the developer Nagbar controls panel for the banner telling installed web apps that the app has moved to a new domain.',
});
const GUILD_MFA_REQUIREMENT_NAGBAR_DESCRIPTOR = msg({
message: 'Community MFA requirement nagbar',
comment: 'Developer control label for the community MFA requirement banner.',
@@ -409,4 +414,16 @@ export const getNagbarControls = (): Array<NagbarControlDefinition> => [
forceShowDisabled: (state) => state.forceGuildMfaRequirement,
forceHideDisabled: (state) => state.forceHideGuildMfaRequirement,
},
{
key: 'forceDomainMoved',
label: DOMAIN_MOVED_NAGBAR_DESCRIPTOR,
forceKey: 'forceDomainMoved',
forceHideKey: 'forceHideDomainMoved',
resetKeys: ['forceDomainMoved'],
status: (state) =>
state.forceDomainMoved ? FORCE_ENABLED : state.forceHideDomainMoved ? FORCE_DISABLED : USING_ACTUAL_STATE,
useActualDisabled: (state) => !state.forceDomainMoved && !state.forceHideDomainMoved,
forceShowDisabled: (state) => state.forceDomainMoved,
forceHideDisabled: (state) => state.forceHideDomainMoved,
},
];