Skip to content

Third inconsistent logo cyan swirl svg search bar - #273

Merged
Kingvic300 merged 5 commits into
Txio-labs:mainfrom
Bigmehelen:third-inconsistent-logo-cyan-swirl-SVG-search-bar
Jul 26, 2026
Merged

Third inconsistent logo cyan swirl svg search bar#273
Kingvic300 merged 5 commits into
Txio-labs:mainfrom
Bigmehelen:third-inconsistent-logo-cyan-swirl-SVG-search-bar

Conversation

@Bigmehelen

Copy link
Copy Markdown
Contributor

closed #252

Summary

This PR implements GitHub OAuth account linking functionality and refines the workspace header layout.

Backend

  • Added GitHubAccount struct and github_account field to the User model in backend/api/src/model/user.rs
  • Added update_user_github_account method to AuthService in backend/api/src/services/auth_service.rs
  • Updated github_callback handler in backend/api/src/api/handlers/auth_handler.rs to link GitHub accounts after first OAuth authentication
  • Added github_unlink endpoint in auth_handler.rs to allow users to disconnect their GitHub account
  • Registered the github_unlink route in backend/api/src/api/routers/auth_router.rs

Frontend

  • Added "Unlink GitHub" button in frontend/src/features/ProfilePage.tsx under the GitHub connection field
  • Added account linking section in frontend/src/features/SignInPage.tsx for GitHub OAuth flow
  • Added account linking section in frontend/src/features/GetStartedPage.tsx for GitHub OAuth flow
  • Streamlined the workspace header in frontend/src/components/Layout.tsx to reduce dead space:
    • Reduced header padding and gaps for a tighter layout
    • Made the search bar more compact (w-48 instead of w-64)
    • Reduced logo and icon sizes for better visual balance
    • Narrowed the network selector dropdown

Key Changes

File Change
backend/api/src/model/user.rs Added GitHubAccount struct and github_account field
backend/api/src/services/auth_service.rs Added update_user_github_account method
backend/api/src/api/handlers/auth_handler.rs Added GitHub account linking in callback and github_unlink handler
backend/api/src/api/routers/auth_router.rs Registered /auth/github/unlink POST route
frontend/src/features/ProfilePage.tsx Added Unlink GitHub button and connection UI
frontend/src/components/Layout.tsx Streamlined header spacing and sizing

- Add GitHubAccount struct to user model
- Add has_link_to_user_github_account method to auth service
- Update GitHub OAuth callback to link accounts on first use
- Add github_unlink endpoint for disconnecting
- Update frontend profile page with unlink button
- Streamline workspace header to eliminate dead space
- Document GitHub OAuth account linking implementation
- Document frontend header refinement changes
- Update environment variables and notes
- Add follow-up items for future work
@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Bigmehelen is attempting to deploy a commit to the oladimejivictor611-5012's projects Team on Vercel.

A member of the Team first needs to authorize it.

# Conflicts:
#	backend/api/src/api/handlers/auth_handler.rs
#	backend/api/src/api/routers/auth_router.rs
#	backend/api/src/model/user.rs
#	backend/api/src/services/auth_service.rs
#	frontend/src/components/Layout.tsx
#	frontend/src/features/ProfilePage.tsx
@Kingvic300
Kingvic300 merged commit 7f8dc62 into Txio-labs:main Jul 26, 2026
5 of 9 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.

Workspace header: third inconsistent logo (cyan swirl SVG) + search bar leaves dead space

2 participants