Skip to content

refactor: move public profiles to /u/[username]#695

Merged
open-agents-bot[bot] merged 2 commits intomainfrom
na/0558789c
Apr 10, 2026
Merged

refactor: move public profiles to /u/[username]#695
open-agents-bot[bot] merged 2 commits intomainfrom
na/0558789c

Conversation

@open-agents-bot
Copy link
Copy Markdown
Contributor

Summary

Relocates public user profiles from /[username] to /u/[username] to avoid routing conflicts, and enables case-insensitive username lookups in the database layer.

Changes

Pages (apps/web/app)

  • Moved public profile page from [username]/page.tsx to u/[username]/page.tsx
  • Added OG metadata route at u/[username]/og/route.tsx
  • Removed public profile handling from generic [username]/page.tsx

Database (apps/web/lib/db/public-usage-profile.ts)

  • Added support for case-insensitive username lookups
  • Refactored query logic to normalize and match usernames regardless of case
  • Enhanced profile retrieval to handle username variations

Settings (apps/web/app/settings/preferences-section.tsx)

  • Updated profile link reference to use new /u/[username] route

Tests (apps/web/lib/db/public-usage-profile.test.ts)

  • Expanded test coverage for case-insensitive username matching
  • Updated existing tests to validate refactored database implementation
  • Added edge cases for mixed-case username lookups

Chat - Built with guidance from Nico Albanese

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

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

Project Deployment Actions Updated (UTC)
open-agents Ready Ready Preview Apr 10, 2026 6:20pm

@open-agents-bot open-agents-bot bot merged commit b1d3def into main Apr 10, 2026
10 checks passed
@open-agents-bot open-agents-bot bot deleted the na/0558789c branch April 10, 2026 18:23
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.

1 participant