Skip to content

feat(accounts): add refreshable browser OAuth link#316

Open
mhughdo wants to merge 4 commits intoSoju06:mainfrom
mhughdo:main
Open

feat(accounts): add refreshable browser OAuth link#316
mhughdo wants to merge 4 commits intoSoju06:mainfrom
mhughdo:main

Conversation

@mhughdo
Copy link
Copy Markdown

@mhughdo mhughdo commented Apr 3, 2026

Summary

  • add a refresh action for the Accounts browser PKCE sign-in flow so operators can mint a new auth link without leaving the dialog
  • update the OAuth dialog cursor affordances for the relevant interactive controls in this flow
  • document the behavior in an OpenSpec change

Why

Browser PKCE authorization links are single-use. Without an in-dialog refresh action, signing in multiple accounts in sequence required backing out and restarting the flow.

Validation

  • bun run test src/features/accounts/components/oauth-dialog.test.tsx
  • bun run lint src/features/accounts/components/oauth-dialog.tsx src/features/accounts/components/oauth-dialog.test.tsx
  • openspec validate --specs

Copilot AI review requested due to automatic review settings April 3, 2026 07:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the Accounts OAuth dialog’s browser (PKCE) flow by adding an in-dialog “refresh link” action so operators can mint a new single-use authorization URL without restarting the flow, and documents the behavior as an OpenSpec change.

Changes:

  • Add a “Refresh link” action to the browser PKCE stage that re-triggers the existing browser OAuth start flow.
  • Update cursor affordances for interactive controls in the OAuth dialog.
  • Add a frontend test covering the refresh action and add OpenSpec change documentation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
openspec/changes/refresh-browser-oauth-link/tasks.md Adds a checklist for the spec/implementation/validation work for this change.
openspec/changes/refresh-browser-oauth-link/specs/frontend-architecture/spec.md Documents the new “Browser OAuth link refresh” scenario in frontend architecture requirements.
openspec/changes/refresh-browser-oauth-link/proposal.md Describes motivation, implementation approach, and impact of the refresh behavior.
frontend/src/features/accounts/components/oauth-dialog.tsx Implements the refresh control and updates cursor styling for relevant UI controls.
frontend/src/features/accounts/components/oauth-dialog.test.tsx Adds a test to verify the refresh action triggers a browser OAuth restart.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mhughdo mhughdo changed the title Add refreshable browser OAuth link feat(accounts): add refreshable browser OAuth link Apr 3, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Soju06
Copy link
Copy Markdown
Owner

Soju06 commented Apr 3, 2026

@codex review

Copy link
Copy Markdown

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

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: 43a6270588

ℹ️ 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".

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.

3 participants