Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

trunk-merge/pr-3888/6c8243e2-56a3-422b-ae5f-5465879c3f34 - #3907

Closed
trunk-io[bot] wants to merge 6 commits into
mainfrom
trunk-merge/pr-3888/6c8243e2-56a3-422b-ae5f-5465879c3f34
Closed

trunk-merge/pr-3888/6c8243e2-56a3-422b-ae5f-5465879c3f34#3907
trunk-io[bot] wants to merge 6 commits into
mainfrom
trunk-merge/pr-3888/6c8243e2-56a3-422b-ae5f-5465879c3f34

Conversation

@trunk-io

@trunk-io trunk-io Bot commented Jul 29, 2026

Copy link
Copy Markdown
Trunk Merge Pull Request Banner

This pull request was created and is being managed by Trunk Merge.

This pull request is based on the main branch at SHA 1b12f3c98478d58ce4237611ca675b0d9f902994.

See more details here.

When CI completes, this pull request will be closed automatically.

Pull Requests Being Tested

This pull request is testing the changes from pull request 3888.

puemos and others added 6 commits July 28, 2026 18:30
Generated-By: PostHog Code
Task-Id: d8debcda-8a0a-4287-a5aa-ee0f5f6ce8d9
isOwnedBy now compares the stable authorUuid uniformly for both canvases
and tasks, instead of a separate authorUser branch for tasks. authorUser
becomes a display-only field; display-name matching stays as a fallback for
rows with no creator uuid. Removes the canvas/task ownership asymmetry with
no behavior or UI change.

Generated-By: PostHog Code
Task-Id: e9aaba50-9b88-43d5-8a62-dd7adf4c76f1
Deciding ownership of the private #me space by display-name equality could
leak canvases between two users who share a name. Ownership now requires a
stable creator uuid match; items without one fail closed. authorName stays
for display only. Adds a regression test that a name match alone never grants
ownership.

Generated-By: PostHog Code
Task-Id: e9aaba50-9b88-43d5-8a62-dd7adf4c76f1
The personal-channel hook test relied on name-based ownership, which no
longer grants membership; give the viewer's canvas a matching creator uuid.

Generated-By: PostHog Code
Task-Id: e9aaba50-9b88-43d5-8a62-dd7adf4c76f1
Addresses review feedback on uuid-only ownership:

- filterChannelItems: an item with no creator uuid (the backend sends
  created_by: null once a creator is deleted) is unknown, not "someone
  else", so exclude it from both the "me" and "others" buckets.
- Drop the now-unused ChannelItemOwner.name; isOwnedBy was its only
  reader, so nothing can rewire name matching by accident.
- Gate #me on meUuid alone, since a display name never established
  identity. No behavior change, but the condition no longer encodes the
  premise this PR removed.
- Cover the created_by: null mapping at the service level, which is the
  fail-closed path.

Generated-By: PostHog Code
Task-Id: e9aaba50-9b88-43d5-8a62-dd7adf4c76f1
@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit b21c0f0.

@trunk-io trunk-io Bot closed this Jul 29, 2026
@trunk-io
trunk-io Bot deleted the trunk-merge/pr-3888/6c8243e2-56a3-422b-ae5f-5465879c3f34 branch July 29, 2026 05:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant