Repository navigation
feat(web): a member shares a thread from the app, with a link for a new person - #592
Merged
Jacksondr5 merged 15 commits intoOct 13, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
added a commit
that referenced
this pull request
Oct 13, 2026
7 of 8 tasks
Jacksondr5
added a commit
that referenced
this pull request
Oct 13, 2026
Jacksondr5
force-pushed
the
j5code/share-ui-1-share-dialog
branch
from
October 13, 2026 04:33
b03dfbb to
76a508c
Compare
7 of 8 tasks
Jacksondr5
force-pushed
the
j5code/share-ui-1-share-dialog
branch
from
October 13, 2026 04:58
c451c26 to
2280047
Compare
Jacksondr5
force-pushed
the
j5code/share-ui-1-share-dialog
branch
from
October 13, 2026 04:59
2280047 to
215be97
Compare
Jacksondr5
added a commit
that referenced
this pull request
Oct 13, 2026
The palette entries are found by their titles, the lifetime select fits its row, and FORK.md case 71 and register D33 record the thread menu's item. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ad menu The root mounts the host that draws sharing's dialogs. FORK.md case 71 and register D33 record the four upstream files that carry a line or two. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's menu icon table gains one entry, so the item lines up with its neighbours. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…her device A reload of the page that made the link loses its address too, so the line says where an address is shown and how to get one here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…it is sent The Share and Join link dialogs send the lifetime picked (1 hour, 24 hours, 7 days, 30 days). A name the contract would refuse gets a plain message, and a name that is someone else's gets one wording. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The page that opens a link can then tell a share link that no longer works from a pairing token, without the server saying more. Upstream's pairing code reads only the token beside it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… share A member who manages access is asked at startup what people and agents on the server should call them, when the server has no name for its owner. The same question is the first step of sharing while it is unanswered. Not now puts it off until the client is next opened. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The store is replaced on each change, so a reader never keeps an old answer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d today A guest reads a turn's changes in the conversation, and is not served the right panel's diffs or the in-app browser, which the design's line promised. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
force-pushed
the
j5code/share-ui-1-share-dialog
branch
from
October 13, 2026 05:58
5006565 to
05e27f3
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 13, 2026
…sks for one Review fixes for the Share layer. What a connection was told of the owner's name is as old as the connection, so before the Share or join-link dialog asks for a name, and when the name is shown to be changed, the list of people is read: a name set on another client is used, not written over. Also: the palette no longer asks about a server that is not there, an unused helper is gone, and FORK.md and D33 count case 71's files correctly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reached
This review includes 25 billable files and costs up to $6.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 21 minutes for your next included review. View limit details
Comment |
This was referenced Oct 13, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A member can bring a guest into a thread only through the server's requests: nothing in the app makes a share link (#535) or a join link (#541). This is the first of three UI layers; the design is Jackson's of 2026-10-12 (
artifacts/share-links-ui-design.md, summarised on #535 and #541).What changed
apps/web/src/j5/sharing/ShareDialog.tsx): a name, View or Collaborate, what sharing gives away, and how long the link lasts. A new person gets a guest, a grant and a link, shown as the dialog's last step. Typing part of the name of someone already on the server offers them; choosing them gives the access and makes no link (AC20).ShareLinkPanel.tsx): the route the link travels by, the address with Copy, and a QR code for a route another device can reach. When only this machine can reach the server it says so and still makes the link; nothing is opened (AC22).JoinLinkDialog.tsx): make a view-only link for a thread; while one is in force, see it, who joined through it, and revoke it after a confirmation.OwnerNameDialog.tsx): a member who manages access is asked once at startup, "What should people and agents on this server call you?", when the server has no name for its owner; "Not now" puts it off until the client is next opened. Sharing asks the same question as its first step while it is unanswered, and the server refuses to bring anyone in until it is set. With several servers connected the dialog names the server. It reads the answer every connection already asks for, so it costs no request and holds nothing up.permissionAtom, the menu item by reading the connection's "Manage access" permission when the menu is built (upstream builds that menu outside a render); the server stays the authority.Built differently from the design, each for a stated reason:
components/ui/radio-group.tsx, and it is cosmetic. Left out on the build lead's ruling.The join link's address is upstream's pairing address with the link's token where the credential goes; the page that opens it is layer 3. Every share link's address carries J5's own mark in the fragment (
#token=…&j5share=1), which upstream's pairing code ignores, so that page can tell a share link that no longer works from a pairing token. Known and fixed in layer 3's branch: on a desktop whose route allows the hosted app, this layer offers the hosted-app form of the address for a join link too, which the hosted app cannot open.UI changes
Same seeded test home, 1280x800, light unless marked. Not captured: the multi-route picker and QR code (they need the desktop app or a server reached over a network address, neither available on the test host); a server's refusal shown in the dialog (I found no input the server refuses that the fields let through); the disabled entries for a connection without Manage access.
After review
Before the Share or join-link dialog asks for the owner's name, and when the name is shown to be changed, the list of people is read: what a connection was told at connect time can be stale, and a name set on another client is used, not written over. Seen live with two member clients: one set the name, and the other's Share dialog went straight to the share form.
Live testing
Report:
test-reports/j5code-share-ui-1-share-dialog.md(a peer agent, isolatedj5-live-testserver, no flags, commit321a9e5e8e: this PR's web code before it was rebased onto #591, which is server-only, and before the two commits listed under "Since the test").Verdict: the sharing flows pass; two findings against the design, one fixed and one a recorded scope choice.
Ran live, member in one browser profile and guests in others:
restartat rest: the grant, the guest's access and the active join link were still there.Findings:
b03dfbb077: it now says an address is shown only on the page that made it. The screenshot of that state above predates the rewording.Since the test, seen in a browser by the builder and not re-run by the peer: the menu icon; finding 2's rewording; the chosen link lifetime (a 1-hour link reads "Expires in 1 hour"); the mark on a share link's address; and the owner's-name dialog (at startup, "Not now", as the first step of sharing and then continuing into the Share dialog, a name already in use, a name with a zero-width space).
Not exercised live:
Upstream impact
FORK.md case 71; register D33 gains a consequence line. Approved by Jackson on 2026-10-12, each an import and one or two lines:
apps/web/src/hooks/useThreadActionMenu.tswithSharingMenuItems, andrunSharingMenuActiontakes J5's id back out before upstream's switchapps/web/src/hooks/useThreadActionMenu.test.tsapps/web/src/components/Sidebar.tsxapps/web/src/components/CommandPalette.tsxapps/web/src/routes/__root.tsxapps/web/src/contextMenuFallback.tsusers, in the menu's icon table, so the item lines up with its neighboursThe link step copies four small helpers that are private to upstream's
ConnectionsSettings.tsxintoj5/sharing/shareLink.logic.tsrather than exporting them; the file and FORK.md say which, for the next advance.Checklist
FORK.md(case text and file-table row) in this PRdocs/j5/product/upstream.mddocs/j5/product/and user docs rewritten where this changes them — no user doc yet; it is written with layer 3, when a guest can use what this makesClaude Opus 5.5, Claude Code harness in J5 Code.
🤖 Generated with Claude Code