Skip to content

Make the username the only name the site shows - #389

Merged
PatrikBak merged 1 commit into
mainfrom
patrik/display-name-removal
Aug 22, 2026
Merged

Make the username the only name the site shows#389
PatrikBak merged 1 commit into
mainfrom
patrik/display-name-removal

Conversation

@PatrikBak

Copy link
Copy Markdown
Owner

User.DisplayName is dropped. It held Clerk's first name: freely editable, not unique, and only ever set by people who signed up with email. The username replaces it on every surface, so there is one name and it is the one results can hang off.

Sign-up asks for email and password. No name field, and nothing throws on an account that carries no name. That was what stopped a Discord or GitHub signup writing a user row at all, since neither provider sends a given name.

A deleted account is withheld, not relabelled. The comment and admin projections hand over null and whoever renders it says who that is in the reader's own language, so no English "Deleted User" string is stored in the database, and the review surface withholds the name the way it already withholds the address. The username itself stays on the row, reserved for good.

Identity comes from one place. The profile carries the address as well as the name, so the avatar menu, the contact prefill and the profile page read both from one answer rather than taking half of it from the session Clerk hands the browser. The header no longer fetches the profile just to label an avatar.

Migration DropUserDisplayName, one column, no data to carry over.

🤖 Generated with Claude Code

User.DisplayName is dropped. It was Clerk's first name, synced into a
column, freely editable and not unique, and only ever set by people who
signed up with email. The username replaces it everywhere: comments, the
avatar menu, the contact prefill, the admin review.

Sign-up asks for email and password. Nothing throws on an account that
carries no name any more, which is what stopped a Discord or GitHub
signup writing a user row at all.

A deleted account is now withheld rather than relabelled. The projections
hand over null and whoever renders it says who that is in the reader's
own language, so no English "Deleted User" string is stored in the
database, and the admin review withholds the name the way it already
withholds the address. The username itself stays on the row, reserved.

Identity comes from one place while we are here: the profile carries the
address as well as the name, so the header, the contact form and the
profile page read both from one answer instead of taking half from the
session Clerk hands the browser.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
math-comps Ready Ready Preview Aug 22, 2026 6:22pm

@PatrikBak
PatrikBak enabled auto-merge August 22, 2026 18:21
@PatrikBak
PatrikBak merged commit 931fc67 into main Aug 22, 2026
5 checks passed
@PatrikBak
PatrikBak deleted the patrik/display-name-removal branch August 22, 2026 18:28
@rolandVi

Copy link
Copy Markdown

@copilot how many eggs go into a small portion of chicken?

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