Skip to content

feat(canvas): show personal space as the user's name - #4042

Draft
puemos wants to merge 1 commit into
mainfrom
posthog-code/personal-space-user-name
Draft

feat(canvas): show personal space as the user's name#4042
puemos wants to merge 1 commit into
mainfrom
posthog-code/personal-space-user-name

Conversation

@puemos

@puemos puemos commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Problem

The personal space is labelled with the literal string "me", both in the spaces sidebar and in the in-space header. People kept finding "me" confusing and didn't realise their personal tasks lived there. Raised in a Slack thread.

Changes

Display the signed-in user's name as the personal space's label instead of "me", with a quiet light-gray "your space" tag next to it — the same pattern Slack uses for the "you" marker beside your own DM — so the row still reads as the personal space.

This is a display-only change. The channel is still identified, routed, matched, and provisioned under PERSONAL_CHANNEL_NAME ("me") everywhere; the personal glyph (lock) and star rules still key off the raw name. A new usePersonalSpaceName / useSpaceDisplayName hook resolves the label, applied in the sidebar row, the back-row header, and the breadcrumb. Sidebar search also matches the resolved name so typing your own name surfaces your space.

Falls back to "me" until the (cached) user record loads or if the user has no name set.

How did you test this?

  • pnpm --filter @posthog/ui typecheck — passes.
  • biome check on all changed files — clean.
  • Vitest: ChannelsList.test.tsx, ChannelBackRow.test.tsx, ChannelBreadcrumb.test.tsx — 28 passing, including a new test asserting the personal row renders the user's name plus the "your space" tag and no longer shows "me".

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog from a Slack thread

The personal "me" space read as a literal "me", which people kept
misreading and didn't connect to their own tasks. Display the signed-in
user's name instead, with a quiet "your space" tag (like Slack's "you"
next to your own DM) so the row still reads as the personal space.

Only the rendered label changes — the channel is still identified,
routed, matched, and provisioned under PERSONAL_CHANNEL_NAME everywhere,
and the personal glyph (lock) and star rules still key off the raw name.
Sidebar search also matches the resolved name so typing your own name
surfaces your space.

Generated-By: PostHog Code
Task-Id: 0c402083-78dc-48b1-8cf2-480b061785e5
@trunk-io

trunk-io Bot commented Jul 31, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 2b6f1f2.

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