Skip to content

Harden debug data source controls and localization#44

Merged
Pigbibi merged 1 commit into
mainfrom
codex/release-demo-i18n-20260611
Jun 10, 2026
Merged

Harden debug data source controls and localization#44
Pigbibi merged 1 commit into
mainfrom
codex/release-demo-i18n-20260611

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • sanitize release data source and network environment to remote/prod
  • hide debug data source controls outside allowed debug builds
  • fix marketplace sold-state localization and traditional Chinese Hong Kong/Macau label
  • improve home grid text wrapping for longer localized labels

Verification

  • git diff --check
  • localization key comparison: missing=0 extra=0 duplicates=none

Note: xcodebuild and plutil are unavailable in this Linux environment.

@Pigbibi Pigbibi merged commit 9bad927 into main Jun 10, 2026
2 of 3 checks passed
@Pigbibi Pigbibi deleted the codex/release-demo-i18n-20260611 branch June 10, 2026 19:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 943046a1b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

_ environment: NetworkEnvironment,
isDebug: Bool
) -> NetworkEnvironment {
allowsRuntimeDebugOptions(isDebug: isDebug) ? environment : .prod

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor the configured staging environment

In a build/config that sets GDEIDefaultNetworkEnvironment=staging with runtime debug options disabled (for example Configs/Staging.xcconfig sets staging and GDEI_ALLOW_RUNTIME_DEBUG_OPTIONS = NO), AppRouter passes that selected environment into AppEnvironment, but this ternary replaces every disallowed-debug environment with .prod. That makes staging builds call production APIs instead of the configured staging base URL; mock data should be forced off without discarding the build-selected network environment.

Useful? React with 👍 / 👎.

return "简体中文"
case .traditionalChineseHongKong:
return "繁體中文(香港)"
return "繁體中文(港澳)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Map Macau locales to the new Hong Kong/Macau option

With this option now labelled 港澳, Macau locales still won't select it: language(from:) only maps zh-HK to this case, while zh-Hant-MO is routed by the generic hant branch to Taiwan and zh-MO falls through to simplified Chinese. A device whose preferred language is Macau Traditional Chinese therefore won't get the Hong Kong/Macau localization automatically, so the Macau identifiers need to be added to this branch when broadening the label.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant