Skip to content

Update ePDS URL to certified.one + login fixes - #9

Merged
holkexyz merged 3 commits into
mainfrom
staging
Mar 11, 2026
Merged

Update ePDS URL to certified.one + login fixes#9
holkexyz merged 3 commits into
mainfrom
staging

Conversation

@holkexyz

@holkexyz holkexyz commented Mar 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Update ePDS URL from epds1.test.certified.app to certified.one across all source files, env example, and docs
  • Fix OTP login screen readability: white background + navy brand color in OAuth client metadata
  • Seed empty profile records on sign-in for app.certified and app.bsky collections via callback handler

Vercel env vars (NEXT_PUBLIC_PDS_URL) already updated for both Preview and Production.

Summary by CodeRabbit

  • New Features

    • Added automatic profile initialization on sign-in to ensure user profile records are created.
  • Configuration

    • Updated default PDS URL from test environment to production endpoint across the application.
  • Style

    • Updated OAuth client metadata colors for improved branding consistency.
  • Documentation

    • Updated example environment variables and code documentation to reflect production configuration.

@vercel

vercel Bot commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
certified-app Ready Ready Preview, Comment Mar 11, 2026 6:12pm

Request Review

@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: a4e593c2-dad2-4de7-a763-8954e1d7253a

📥 Commits

Reviewing files that changed from the base of the PR and between 4aa3dbf and 27f1fb7.

📒 Files selected for processing (8)
  • .env.local.example
  • AGENTS.md
  • src/app/.well-known/oauth-client-metadata/route.ts
  • src/app/api/auth/callback-handler/route.ts
  • src/components/dashboard/username-card.tsx
  • src/hooks/use-profile.ts
  • src/lib/atproto/profile.ts
  • src/lib/auth/oauth-client.ts

📝 Walkthrough

Walkthrough

This pull request updates the default PDS URL from https://epds1.test.certified.app to https://certified.one across configuration files, documentation, and source code. Additionally, OAuth client metadata colors are adjusted, and a post-sign-in profile seeding mechanism is introduced to ensure profile records exist after authentication.

Changes

Cohort / File(s) Summary
Configuration and Documentation
.env.local.example, AGENTS.md
Updated example PDS URL environment variable from https://epds1.test.certified.app to https://certified.one.
PDS URL Migration
src/components/dashboard/username-card.tsx, src/hooks/use-profile.ts, src/lib/auth/oauth-client.ts, src/lib/atproto/profile.ts
Migrated default PDS URL constant and fallback hostname from https://epds1.test.certified.app to https://certified.one across utility functions and auth configuration. JSDoc examples also updated.
OAuth Client Styling
src/app/.well-known/oauth-client-metadata/route.ts
Updated ePDS OAuth metadata colors: brand_color changed from #60A1E2 to #0F2544, and background_color changed from #0F2544 to #FFFFFF.
Post-Sign-In Profile Seeding
src/app/api/auth/callback-handler/route.ts
Added best-effort profile record initialization after sign-in. Introduces PROFILE_COLLECTIONS configuration and ensureProfileRecords() helper that iterates collections, checks for existing self records via getRecord(), and creates missing ones with putRecord(). Errors are silently caught and ignored.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A certified hop to the one domain so bright,
From test to production, we're setting things right.
Profile records bloom after each sign-in dance,
While colors shift smartly—branding's advance!
The rabbit approves this migrations' fine fare. 🥕


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

@holkexyz
holkexyz merged commit 951bfd9 into main Mar 11, 2026
3 checks passed
hb-agent pushed a commit that referenced this pull request May 18, 2026
… extractRouteError logSafe

extractRouteError already logs via logSafe (which strips
JWT/DPoP/Authorization material that the atproto SDK occasionally
embeds in err.cause). The three routes also called
`console.error(label, err)` before invoking the helper, which both
duplicated the log line and bypassed the redactSecrets pass —
defeating the very mitigation logSafe exists for.

Replace with a single extractRouteError call carrying a
route-tagged prefix (AGENTS.md §24 #9 convention) so the resulting
log line is greppable.

Affected: /api/groups/[groupDid]/{profile,metadata,upload-blob}

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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