···55 * the relationship is clear.
66 */
77export const ACTIVE_UPDATE_ID = ID
88+99+/**
1010+ * Toggle to enable or disable the policy update overlay feature e.g. once an
1111+ * update has run its course, set this to false. For new updates, set this to
1212+ * true and change `ACTIVE_UPDATE_ID` to the new update ID.
1313+ */
1414+export const POLICY_UPDATE_IS_ENABLED = false
+10-2
src/components/PolicyUpdateOverlay/context.tsx
···77} from 'react'
8899import {useSession} from '#/state/session'
1010+import {POLICY_UPDATE_IS_ENABLED} from '#/components/PolicyUpdateOverlay/config'
1011import {Provider as PortalProvider} from '#/components/PolicyUpdateOverlay/Portal'
1112import {
1213 type PolicyUpdateState,
···4546 const {hasSession} = useSession()
4647 const [isReadyToShowOverlay, setIsReadyToShowOverlay] = useState(false)
4748 const state = usePolicyUpdateState({
4848- // only enable the policy update overlay in non-test environments
4949- enabled: isReadyToShowOverlay && hasSession && ENV !== 'e2e',
4949+ enabled:
5050+ // if the feature is enabled
5151+ POLICY_UPDATE_IS_ENABLED &&
5252+ // once shell has rendered
5353+ isReadyToShowOverlay &&
5454+ // only once logged in
5555+ hasSession &&
5656+ // only enabled in non-test environments
5757+ ENV !== 'e2e',
5058 })
51595260 const ctx = useMemo(