Add load balancer marker for inbound country flag
CI / Backend (build + test) (push) Failing after 1m26s
CI / Frontend (lint + typecheck + build) (push) Successful in 33s

Reserved CountryCode "XX" (Inbound.BalancerCountryCode) marks an inbound
behind a load balancer whose exit country is unknown: the site shows a
Shuffle icon with a tooltip instead of a flag, the bot shows 🔀. Admin can
pick it in the publish dialog. Fits the existing column, no migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mrleo1nidandClaude Opus 5.5 committed 2026-10-17 01:57:30 +03:00
1 parent 81562b5c56
commit e979adca57
9 files changed
+48 -6

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ export const FLAGS: Record<string, FlagComponent> = {
export const COUNTRY_CODES = Object.keys(FLAGS)
/** Зарезервированный код «инбаунд за балансировщиком, страна выхода неизвестна» (см.
* Inbound.BalancerCountryCode на бэкенде) — вместо флага рисуется значок балансира. */
export const BALANCER_COUNTRY_CODE = 'XX'
/** Локализованное имя страны по ISO-коду (Intl), без собственных переводов. */
export function countryName(code: string, language: string): string {
try {