Repository navigation
feat(web): widen a person to a project or the server from their People row - #764
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…e row An Owner raising someone who already reaches a thread or project had to go through the Share dialog. The person's … menu on Settings › People now offers their highest level on each project they don't already reach at it, and on the whole server, with the same confirmation and trust statement the Share dialog shows. Narrower levels stay for the Owner to remove. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8d4e5ee to
38c383a
Compare
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Select widening targets apps/web/src/j5/sharing/people.logic.ts, apps/web/src/j5/sharing/people.logic.test.ts |
widenTargets returns the highest held level and listed projects the person does not already reach at that level. It returns null when the person has no access or already reaches the server at that level. Tests cover these cases. |
Add People-row widening actions apps/web/src/j5/sharing/PeoplePage.tsx, docs/j5/product/features/people-and-access.md, docs/j5/user/people-and-sharing.md |
The People row offers project and server actions when widening targets exist. The actions check management permission and request confirmation before applying a level change. The documentation describes the behavior and notes that existing access remains until removed. |
Priority:
Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Feature
Suggested reviewers: asianham
Merge Risk: 
Minimal · up to 38c38
-
People can be offered wider access at their existing highest level. No merge-blocking risk was identified.
Pre-merge checks: 
4
-
Full details: Description check
-
Explanation
The description covers the problem, implementation, UI evidence, live testing, untested cases, scope, checklist, and documentation impact. It is complete enough to explain and review the change, although it does not include an explicit tracking-issue link.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Brings in from j5/main: - #773 publish the Windows x64 CLI archive and installer - #797 a Collaborator on a thread sees its preview tabs - #662 Fleet: measured ledger and runtime facts - #767 bump J5 Code to 0.0.51 - #769 storage cleanup reads Git 2.56's broken-gitfile message - #765 a shared conversation's note stays off the timeline minimap - #763 a link for one person always names who it is for - #764 widen a person to a project or the server from their People row Adapted to v0.1.3: the minimap's shared-note check lives in J5's minimapMessages.ts; Fleet's keyboard test is a browser test on the browser userEvent, so @testing-library/user-event is not added; Fleet's monitor test follows upstream's awaited-only hold rule; the Windows build pins Node 26.12.1; memo hooks, an em dash, a long comment and an unbudgeted effect from main are fixed for the branch's lint rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
To give someone who already reaches a thread or a project more of the server, an Owner had to open the Share dialog and type the person's name. The person's own row on Settings › People only offered Rename and Remove.
What changed
The … menu on a person's row now offers:
The level is the highest one the person holds, since their devices already hold its permissions. Owner exists only at server scope, so an Owner (or anyone already holding the server at their highest level) is offered nothing. Each choice asks first. The confirmation states what sharing that scope gives away and, when it grants writing, shows the AC37 trust statement, the same as the Share dialog. A narrower level the new one covers is left in place for the Owner to remove.
This is web only. It calls the same
setLevelcommand the Share dialog uses for someone already on the server, so nothing on the server or in the contracts changes. The rule for what to offer iswidenTargetsinpeople.logic.ts, with tests. AC35 in the People and access definition and the user doc describe the new path.Surfaces: Settings › People is the only entry point; the Share dialog stays the other way in. Mobile has no sharing yet (#609), and no agent shares (AC34), so there is no MCP tool. No provider, contract or connection-mode impact. The way back out is the existing level control and remove on the person's expanded row.
UI changes
Settings › People on a person who holds one thread as a Viewer. Before is
j5/main, after is this PR, with the same data.No video: these are menus and a confirmation, with no motion or timing.
Live testing
Pass. A Peer Agent (GPT-6 Astra) ran it on an isolated test server with
--base origin/j5/main. It found no bugs.8d4e5ee8a5, before the rebase:38c383a8e8: this is the same change rebased onto feat(j5): search people in settings #759 (People search). The only conflict was in the imports. Re-tested live on it: the Viewer widen and its removal, no items for someone who holds nothing, and the confirmation. The Haiku turn, mixed levels, Owners and the device without Manage access were not repeated, because the widen code didn't change in the rebase.Checklist
AGENTS.md)docs/j5/product/and user docs rewritten where this changes themBuilt by Claude Opus 5.5 in Claude Code (J5 Code).
🤖 Generated with Claude Code