Skip to content

feat(auth): Make region picker prominent on sign-in#2090

Merged
joshsny merged 3 commits intomainfrom
posthog-code/region-prominent-and-oauth-fix
May 8, 2026
Merged

feat(auth): Make region picker prominent on sign-in#2090
joshsny merged 3 commits intomainfrom
posthog-code/region-prominent-and-oauth-fix

Conversation

@Twixes
Copy link
Copy Markdown
Member

@Twixes Twixes commented May 7, 2026

Problem

The EU vs. US Cloud region choice was buried behind a tiny "change" link rendered below the sign-in button. EU customers missed it incredibly easily, signed into US Cloud by accident, and ended up looking at an error.
Screenshot 2026-05-08 at 09 31 06@2x

Changes

This PR replaces the link with a side-by-side "US Cloud / EU Cloud" picker rendered above the sign-in button.

The "local dev" region remains accessible too, only in dev.

Screenshot 2026-05-08 at 09 25 17@2x

Created with PostHog Code

Surface a side-by-side US Cloud / EU Cloud chooser above the sign-in
button so non-technical users can no longer miss the region choice.
Previously the region was buried behind a small "change" link, which
caused EU customers to silently log into US Cloud and land on an empty
project. The selected region is now also echoed on the sign-in button
itself for an extra confirmation cue.

Generated-By: PostHog Code
Task-Id: d739b1d2-b053-45ec-967b-5521802d275b
@Twixes Twixes changed the title feat(auth): make region picker prominent on sign-in feat(auth): Make region picker prominent on sign-in May 8, 2026
@Twixes Twixes requested a review from a team May 8, 2026 07:32
@Twixes Twixes marked this pull request as ready for review May 8, 2026 07:33
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 8, 2026

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
apps/code/src/renderer/features/auth/components/OAuthControls.tsx:56
The template literal here adds no value — there is no interpolation, so a plain string is simpler and more consistent with the `"Cancel"` branch on the same line. This violates the "no superfluous parts" simplicity rule.

```suggestion
        {isPending ? "Cancel" : "Sign in / sign up with PostHog"}
```

Reviews (1): Last reviewed commit: "Clean up" | Re-trigger Greptile

Comment thread apps/code/src/renderer/features/auth/components/OAuthControls.tsx Outdated
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 8, 2026

Reviews (2): Last reviewed commit: "Update apps/code/src/renderer/features/a..." | Re-trigger Greptile

Copy link
Copy Markdown
Contributor

@joshsny joshsny left a comment

Choose a reason for hiding this comment

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

much nicer

@joshsny joshsny merged commit 983701d into main May 8, 2026
15 checks passed
@joshsny joshsny deleted the posthog-code/region-prominent-and-oauth-fix branch May 8, 2026 09: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.

2 participants