Skip to content

Commit 0253313

Browse files
committed
Clearer limited mode reason based on country
1 parent 3dac148 commit 0253313

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

cli/src/components/waiting-room-screen.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ const formatRetryAfter = (ms: number): string => {
7373
}
7474

7575
const PRIVACY_SIGNAL_LABELS: Partial<Record<FreebuffIpPrivacySignal, string>> =
76-
{
77-
anonymous: 'anonymized network',
78-
proxy: 'proxy',
79-
relay: 'relay',
80-
res_proxy: 'residential proxy',
81-
tor: 'Tor',
82-
vpn: 'VPN',
83-
hosting: 'hosting network',
84-
service: 'privacy service',
85-
}
76+
{
77+
anonymous: 'anonymized network',
78+
proxy: 'proxy',
79+
relay: 'relay',
80+
res_proxy: 'residential proxy',
81+
tor: 'Tor',
82+
vpn: 'VPN',
83+
hosting: 'hosting network',
84+
service: 'privacy service',
85+
}
8686

8787
const formatPrivacySignalList = (
8888
signals: FreebuffIpPrivacySignal[] | undefined,
@@ -112,8 +112,8 @@ const getLimitedModeReason = (
112112

113113
const countryCode =
114114
'countryCode' in session &&
115-
session.countryCode &&
116-
session.countryCode !== 'UNKNOWN'
115+
session.countryCode &&
116+
session.countryCode !== 'UNKNOWN'
117117
? session.countryCode
118118
: null
119119

@@ -123,7 +123,7 @@ const getLimitedModeReason = (
123123
session.ipPrivacySignals ?? undefined,
124124
)} detected`
125125
case 'country_not_allowed':
126-
return `outside available countries${countryCode ? ` (${countryCode})` : ''}`
126+
return `based on detected country${countryCode ? `: ${countryCode}` : ''}`
127127
case 'anonymized_or_unknown_country':
128128
case 'missing_client_ip':
129129
case 'unresolved_client_ip':
@@ -404,8 +404,8 @@ export const WaitingRoomScreen: React.FC<WaitingRoomScreenProps> = ({
404404
const selectorMaxHeight = Math.max(
405405
3,
406406
terminalHeight -
407-
reservedChrome -
408-
(isQueued ? queuedTextRows : landingTextRows),
407+
reservedChrome -
408+
(isQueued ? queuedTextRows : landingTextRows),
409409
)
410410
// The limited-tier panel owns its own title/counter, so the only chrome
411411
// around it is the shared frame (no extra prompt rows to subtract).
@@ -416,7 +416,7 @@ export const WaitingRoomScreen: React.FC<WaitingRoomScreenProps> = ({
416416

417417
const delayMs = Math.max(0, premiumResetAtMs - Date.now() + 1_000)
418418
const timer = setTimeout(() => {
419-
refreshFreebuffLandingMetadata().catch(() => {})
419+
refreshFreebuffLandingMetadata().catch(() => { })
420420
}, delayMs)
421421

422422
return () => clearTimeout(timer)

0 commit comments

Comments
 (0)