nwhitehouse fixes the greeting that ignored your name

A small change so the app stops greeting users by their email prefix when they've actually set a display name.

chat-uipersonas

nwhitehouse spotted a quirk in the welcome screen: the personalised greeting got locked in the instant the page loaded, before the user's profile had finished loading. The result was an awkward hello built from the email address rather than the name the user chose.

The fix lets the greeting catch up. It still settles on a single greeting style per visit (no flickering as you read), but now waits for the real display name to arrive and slots it in. One screen, no data migration, nothing else touched.

So what Worth a look for anyone running a Mike fork who's noticed users greeted by a half-email instead of their actual name.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from nwhitehouse/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
3fd35b4e [bug-004] Greeting picks up displayName once profile loads Nick Whitehouse 2026-05-04 ↗ GitHub
commit body
The InitialView greeting was being baked at mount via
`useState(() => getRandomGreeting(username))`, so if the user profile was
still loading at that moment, `username` fell back to the email-split
("nick.whitehouse") and stayed that way for the whole mount even after
displayName ("Nick") arrived.

Fix: pick the template index once at mount (so the greeting doesn't
reshuffle on re-render), but substitute the name at render-time so it
updates when displayName loads. Adds two helpers to greetings.ts:
pickGreetingIndex() + renderGreeting(index, name).

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

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-113.md from inside the repo you want the changes in.

⬇ Download capture-thread-113.md