Skip to content

feat(web): widen a person to a project or the server from their People row - #764

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/people-row-widen
Oct 28, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/people-row-widen

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

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:

  • Make ‹level› on project ▸, a submenu of every project they don't already reach at that level;
  • Make ‹level› on whole server…

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 setLevel command 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 is widenTargets in people.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.

Before After
A thread Viewer's row menu before after
The project submenu new after
Widening a thread Collaborator to the whole server: the confirmation with the trust statement (the test person is named "Blair Collaborator") new after

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.

  • Full run on 8d4e5ee8a5, before the rebase:
    • A thread Viewer widened to the project: no writing warning, and their open tab gained the project's threads without re-pairing.
    • A thread Collaborator widened to the whole server: the trust warning showed. A real Claude Haiku 5.5 turn they sent afterwards wrote a file in the test repo.
    • A person holding Viewer on the server and Collaborator on a thread was offered Collaborator on the project and the server.
    • Cancel changed nothing. Removing the new project level, and lowering then removing the server level, each took the access away from their open tab.
    • An Owner and the first owner see no widen items, and nor does someone already holding the server at their highest level.
    • A device paired without Manage access sees the items disabled.
  • Head 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.
  • Not exercised: more than one project in the submenu, because the test rig provides one project. Desktop, mobile (which doesn't share yet) and relay or tunnel connections were not run either; this change is web-only and doesn't touch connections.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: none edited
  • Upstream product: no change to what upstream's product does
  • Surfaces: entry points, clients, providers, contracts, reverse states, connection modes (see AGENTS.md)
  • Docs: definitions under docs/j5/product/ and user docs rewritten where this changes them

Built by Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 28, 2026 2:44am UTC

Request Review

…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]>
@Jacksondr5
Jacksondr5 force-pushed the j5code/people-row-widen branch from 8d4e5ee to 38c383a Compare October 28, 2026 02:43
Jacksondr5 added a commit that referenced this pull request Oct 28, 2026
@Jacksondr5
Jacksondr5 marked this pull request as ready for review October 28, 2026 02:53
@Jacksondr5
Jacksondr5 enabled auto-merge (squash) October 28, 2026 02:57
@github-actions github-actions Bot added size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list. labels Oct 28, 2026
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between db53393 and 38c383a.

Files selected for processing: 5
  • apps/web/src/j5/sharing/PeoplePage.tsx
  • apps/web/src/j5/sharing/people.logic.test.ts
  • apps/web/src/j5/sharing/people.logic.ts
  • docs/j5/product/features/people-and-access.md
  • docs/j5/user/people-and-sharing.md

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Walkthrough

The change adds logic to identify projects and server scopes that a person can reach at their highest held access level. The People page offers actions to widen access to those scopes, with confirmation before applying the change.

Changes: People access widening

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: Normal

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: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: adding project and server widening actions from a person’s People row.
Description check Passed 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, altho…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

@Jacksondr5
Jacksondr5 merged commit 409c33f into j5/main Oct 28, 2026
36 of 38 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/people-row-widen branch October 28, 2026 03:11
Jacksondr5 added a commit that referenced this pull request Oct 30, 2026
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]>
Jacksondr5 added a commit that referenced this pull request Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 38c383a8 Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant