Skip to content

fix(auth): improve auth UI#20

Merged
steipete merged 10 commits into
openclaw:mainfrom
salmonumbrella:fix/auth-ui-improvements
Dec 31, 2025
Merged

fix(auth): improve auth UI#20
steipete merged 10 commits into
openclaw:mainfrom
salmonumbrella:fix/auth-ui-improvements

Conversation

@salmonumbrella

Copy link
Copy Markdown
Contributor
  • Consolidate success templates into one file with conditional rendering (deleted success_new.html)
  • Add countdown timer showing seconds until auto-close, injected via Go template
  • Make post-success wait cancellable via Ctrl+C for better user experience
  • Add gog auth login as alias for gog auth manage with documentation
  • Deduplicate GitHub icon SVG via CSS mask technique
  • Update url to point to create Google Auth readme

salmonumbrella and others added 10 commits December 28, 2025 16:33
Replace blocking time.Sleep with select statement using time.After
and ctx.Done() so the 30-second post-success display period can be
interrupted by context cancellation (Ctrl+C).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace duplicate newAuthLoginCmd() with Cobra alias on newAuthManageCmd().
Both commands had identical RunE logic calling googleauth.StartManageServer.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add the same 30-second countdown JavaScript that exists in success.html
to success_new.html for consistency. The countdown shows "Closing in X
seconds..." and updates to "You can close this window." when complete.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…constant

Add a named constant for the 30-second display delay after OAuth success.
This keeps the Go code and HTML templates in sync, with comments in the
HTML pointing to the authoritative constant definition in oauth_flow.go.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace inline SVG icons with a reusable `.icon-github` CSS class
that uses mask-image with a data URI. Each template now includes
a comment noting the other files to update if the icon changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Merge success_new.html content/layout into success.html
- Add animated gradient orbs from original success.html
- Use Go template conditionals to handle both cases:
  - With email/services (account manager flow)
  - Without email (simple OAuth flow)
- Delete redundant success_new.html
- Rename renderSuccessPageNew to renderSuccessPageWithDetails
- Update tests to cover both template modes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…irement

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extract inline select block into waitPostSuccess function and add
unit tests verifying context cancellation behavior for Ctrl+C support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@steipete

Copy link
Copy Markdown
Collaborator

Thank you, appreciate the help and cleanup!

@steipete steipete merged commit 35951f7 into openclaw:main Dec 31, 2025
3 checks passed
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