···5 * the relationship is clear.
6 */
7export const ACTIVE_UPDATE_ID = ID
0000000
···5 * the relationship is clear.
6 */
7export const ACTIVE_UPDATE_ID = ID
8+9+/**
10+ * Toggle to enable or disable the policy update overlay feature e.g. once an
11+ * update has run its course, set this to false. For new updates, set this to
12+ * true and change `ACTIVE_UPDATE_ID` to the new update ID.
13+ */
14+export const POLICY_UPDATE_IS_ENABLED = false
+10-2
src/components/PolicyUpdateOverlay/context.tsx
···7} from 'react'
89import {useSession} from '#/state/session'
010import {Provider as PortalProvider} from '#/components/PolicyUpdateOverlay/Portal'
11import {
12 type PolicyUpdateState,
···45 const {hasSession} = useSession()
46 const [isReadyToShowOverlay, setIsReadyToShowOverlay] = useState(false)
47 const state = usePolicyUpdateState({
48- // only enable the policy update overlay in non-test environments
49- enabled: isReadyToShowOverlay && hasSession && ENV !== 'e2e',
000000050 })
5152 const ctx = useMemo(
···7} from 'react'
89import {useSession} from '#/state/session'
10+import {POLICY_UPDATE_IS_ENABLED} from '#/components/PolicyUpdateOverlay/config'
11import {Provider as PortalProvider} from '#/components/PolicyUpdateOverlay/Portal'
12import {
13 type PolicyUpdateState,
···46 const {hasSession} = useSession()
47 const [isReadyToShowOverlay, setIsReadyToShowOverlay] = useState(false)
48 const state = usePolicyUpdateState({
49+ enabled:
50+ // if the feature is enabled
51+ POLICY_UPDATE_IS_ENABLED &&
52+ // once shell has rendered
53+ isReadyToShowOverlay &&
54+ // only once logged in
55+ hasSession &&
56+ // only enabled in non-test environments
57+ ENV !== 'e2e',
58 })
5960 const ctx = useMemo(