Skip to content

fix: restore Google sign-in retry state - #1971

Open
groupthinking wants to merge 6 commits into
mainfrom
fix/google-sign-in-retry
Open

groupthinking wants to merge 6 commits into
mainfrom
fix/google-sign-in-retry

Conversation

@groupthinking

@groupthinking groupthinking commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Canonical issue

Fixes #2002.

Also tracked in Notion: Fix login bug.

Outcome

A failed or non-redirecting Google sign-in initiation restores the enabled retry state and announces a generic, non-sensitive error. A redirect handoff remains protected against duplicate submissions.

Scope

  • Included:
    • Client-side retry and error state in GoogleSignInButton.
    • Focused jsdom component coverage for non-redirecting initiation, rejected initiation, and duplicate-click prevention.
  • Explicitly excluded:
    • Callback-path sanitization, public NextAuth callback routes, OAuth provider credentials/configuration, proxy policy, deployment, and Origin G.A.T.E. controls.

Risk

  • Risk level: low
  • Failure mode: A completed or rejected signIn call can leave the control disabled or reveal provider detail; this change verifies the retryable state and generic feedback.
  • Rollback: Revert commit 134b3d907.

Verification

Validated against current head 134b3d907:

  • Focused tests: npm --workspace=eventrelay-web exec -- vitest run src/app/login/GoogleSignInButton.test.tsx (3 passed).
  • Required local checks: npm --workspace=eventrelay-web run type-check; npm --workspace=eventrelay-web run lint (0 errors; 3 pre-existing warnings in unrelated components).
  • git diff --check and staged-diff secret-pattern inspection.
  • Review threads resolved: no matching review threads found.

Production evidence

Not applicable. This draft contains a client-side component state fix and focused unit coverage; no preview, deployment, or production action was performed.

Agent handoff

  • One canonical GitHub issue is linked; this work is instead linked to the assigned Notion task above.
  • No competing pull request matching this Google login retry fix was found.
  • Acceptance criteria are satisfied by the scoped implementation and focused tests.
  • Required local checks pass on the current head.
  • No product, security, irreversible infrastructure, or production approval is requested.

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Sep 18, 2026 9:30pm UTC

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: groupthinking/EventRelay/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: a16d541d-1be2-4860-bab1-935ef76b6398


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added javascript Pull requests that update javascript code tests labels Sep 17, 2026
@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA b43c10e.
Ensure that dependencies are being submitted on PR branches. Re-running this action after a short time may resolve the issue. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Verify rejection restores retry state while keeping provider details out of the accessible UI.
@groupthinking
groupthinking marked this pull request as ready for review September 18, 2026 20:50
Copilot AI balanced review requested due to automatic review settings September 18, 2026 20:50
@groupthinking

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The unrelated backend test modifications should be reverted or separated.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Restores retry behavior and generic error feedback for failed Google sign-in initiation.

Changes:

  • Adds retry/error state to the sign-in button.
  • Adds focused component tests.
  • Alters unrelated backend latency and response assertions.
File summaries
File Description
GoogleSignInButton.tsx Restores retry state and displays generic errors.
GoogleSignInButton.test.tsx Tests failures and duplicate-click prevention.
test_v1_router_extended.py Relaxes unrelated backend test assertions.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

elapsed = time.perf_counter() - started
assert resp.status_code == 202
assert elapsed < 0.15
assert elapsed < 0.5
# Conflicts:
#	apps/web/src/app/login/GoogleSignInButton.test.tsx
#	apps/web/src/app/login/GoogleSignInButton.tsx

Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
auto-merge was automatically disabled September 18, 2026 21:08

Head branch was pushed to by a user without write access

Copilot AI commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merged the latest main into this branch and resolved the conflicts in GoogleSignInButton.tsx and GoogleSignInButton.test.tsx in commit 214cf4b.

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

Labels

javascript Pull requests that update javascript code python tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore Google sign-in retry state on failed initiation

3 participants