Skip to content

Add AtUsernamePage coverage and normalize lookups#224

Merged
rabble merged 1 commit intomainfrom
fix/at-username-coverage
Apr 1, 2026
Merged

Add AtUsernamePage coverage and normalize lookups#224
rabble merged 1 commit intomainfrom
fix/at-username-coverage

Conversation

@rabble
Copy link
Copy Markdown
Member

@rabble rabble commented Apr 1, 2026

Summary

  • add direct page-level coverage for the shipped AtUsernamePage flow, including loading, not-found, invalid-pubkey, and injected-subdomain cases
  • normalize @username lookups to lowercase before the client-side NIP-05 request so mixed-case routes use a stable query key and request URL
  • capture the scope in a matching design doc and implementation plan for the follow-up to PR feat: support divine.video/@username profile URLs #219

Test Plan

  • npx vitest run src/pages/AtUsernamePage.test.tsx
  • npm test

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying divine-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 307dad4
Status: ✅  Deploy successful!
Preview URL: https://c2e753bc.divine-web.pages.dev
Branch Preview URL: https://fix-at-username-coverage.divine-web.pages.dev

View logs

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

🚀 Preview Deployment

Property Value
Preview URL https://392b2f3f.divine-web-fm8.pages.dev
Commit 307dad4
Branch fix/at-username-coverage

@rabble rabble merged commit 75293d9 into main Apr 1, 2026
4 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.

1 participant