Skip to content

refactor(config): Rename country preference key to country#97

Merged
nfebe merged 1 commit into
devfrom
refactor/country-config-key
Jun 28, 2026
Merged

refactor(config): Rename country preference key to country#97
nfebe merged 1 commit into
devfrom
refactor/country-config-key

Conversation

@nfebe

@nfebe nfebe commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

The user country preference now uses the key "country" instead of "default-country". Nothing reads from a non-default country, so the default- prefix was misleading next to the other locale preferences.

The user country preference now uses the key "country" instead of
"default-country". Nothing reads from a non-default country, so the
default- prefix was misleading next to the other locale preferences.
@sourceant

sourceant Bot commented Jun 28, 2026

Copy link
Copy Markdown

Code Review Summary

This PR refactors the configuration key for the country preference from default-country to country to improve clarity and remove misleading prefixes.

🚀 Key Improvements

  • Renamed CONFIGURATION_KEYS.COUNTRY value to country in utils/configurationKeys.ts.

💡 Minor Suggestions

  • Verify if a migration strategy is needed for persisted user settings.

@sourceant sourceant 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.

Review complete. No specific code suggestions were generated. See the overview comment for a summary.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying webui with  Cloudflare Pages  Cloudflare Pages

Latest commit: c4771db
Status: ✅  Deploy successful!
Preview URL: https://97188708.webui-9fh.pages.dev
Branch Preview URL: https://refactor-country-config-key.webui-9fh.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying trakli-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: c4771db
Status: ✅  Deploy successful!
Preview URL: https://7469276c.trakli-dev.pages.dev
Branch Preview URL: https://refactor-country-config-key.trakli-dev.pages.dev

View logs

@nfebe nfebe merged commit e2f11d3 into dev Jun 28, 2026
6 checks passed
@nfebe nfebe deleted the refactor/country-config-key branch June 28, 2026 10:57
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