Repository navigation
feat(j5): J5 Connect requests tell declined from ran out, and someone here adds a sign-in - #1316
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 28 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…quests Carried from #1258's server and contracts (its five commits, split from the web screens #1271 replaces): migration 062's app scheme on a sign-in, the app link a pairing sign-in goes back to, the Inbox count of accounts waiting for an Owner, and a refresh that keeps the old token when the new one is empty. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… here adds a sign-in The server side of the admin design (#1271, admin-ux items 4 to 8 and 11): - A person adds a sign-in to themselves from a device they already use (J5 Connect AC50): startAddSignIn starts a sign-in that carries the person, and its account becomes theirs when it comes back. An account already someone's is refused, as is a second one (AC20). - A device told to wait, declined or ran out gets a request ticket in the pairing page's fragment. The page reads its request with it, and a waiting read holds until an Owner decides, then answers once with the way in: the credential, or the app's link (AC18). - Declined and ran out are told apart (AC19): a decline keeps its week, and a request that ran out is told so once and asks afresh at the next sign-in. - The People read gives each person's account, when it was last confirmed and a suspendedAt for #1305 to fill (AC30), and marks devices that signed in. - The identity read gives the door (links or invitations); describe gives the server's label. - Owners no longer match a waiting account to someone already here (AC17 retired): bind and its name suggestions go, and unbind is removeSignIn. Migration 063 adds the sign-in's purpose and person, and the ticket table. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
force-pushed
the
j5code/j5-connect-admin-server
branch
from
December 1, 2026 01:49
ea4ca48 to
b36e906
Compare
…es back where it started From the accuracy review of #1316: - A waiting page told its request ran out clears it, so the next sign-in asks afresh at once; a decline whose week is over answers ended, not ran out. - A sign-in that fails or is cancelled at J5 Connect goes back to what it was for: adding a sign-in, or the app that started it. - An answered confirmation pass, and a sign-in that pairs, move People, so the last-confirmed time it shows stays current (AC26). Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 of 8 tasks
…ssuer A managed desktop client signs in only through the J5 Connect its machine's policy allows (J5 Connect AC46, AC47), and that policy names an issuer, not a host. Describe and getOwnSignIn now give both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ile doesn't count them Inbox AC27: the mobile app neither shows nor counts a waiting request for now, and mobile reads the same count. The web and desktop bell counts the requests it already lists for each owned server instead (#1271's UI), as #1305 does for suspensions. Reverts the count #1258 added to readOpenInboxCount. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Dec 1, 2026
This was referenced Dec 1, 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
The J5 Connect admin design (#1271) needs server pieces that aren't there yet:
This is PR A of #1271: contracts and server only, no UI. The web and desktop UI follows, stacked on #1323 and #1324, which stack on this. Part of #1271.
What changed
Carried from #1258. The first commit carries #1258's server and contracts parts, which the #1271 builder took over:
#1258's Inbox count on the server is taken back out (see below). #1258's web screens are replaced by the UI PR.
Admin-ux items 4 to 8 and 11:
j5.identity.startAddSignInstarts a sign-in that carries the person asking. When it comes back, the account becomes theirs, and the browser lands on/pair?j5-add-sign-in=added|taken|failed./pairfragment. The server keeps only its hash.POST /api/j5/identity/request.wait: true, a waiting read is held until people change, or for 25 seconds. It reads again on every change, starting with the one right after it subscribes, so a decision made in between isn't missed.<scheme>://pairlink when an app started the sign-in.declined, with the date the account can ask again.ran-outonce, with the date it was made, at sign-in or on the waiting page. The next sign-in asks afresh.ended.PeopleEntry.signInis{ accountId, email, name, lastConfirmedAt, suspendedAt }.suspendedAtstays null until J5 Connect: a lapsed account suspends its person instead of ending their devices #1305 fills it.PersonDevice.signedInmarks devices that got in by signing in.IdentityStateis{ connect, door, requests }.j5.identity.getOwnSignIngives anyone their own account and the J5 Connect's host and issuer.bindand the name-match suggestions go, andunbindbecomesremoveSignIn.Migration 063 adds two columns to the sign-in table,
purpose(pair | join | attach) andperson_id, and adds the ticket table.Reviews
Sol (
gpt-6.2-sol, high) checked accuracy in two rounds.Checklist
One concern: the server side of J5 Connect: admin UI/UX for sign-in, joining and letting people in (web and desktop) #1271's admin design
Tests cover the changed behavior.
Identity.test.tscovers:signInandsignedInon People.wsRpc.test.tsguards the new command.UI changes: none in this PR
Live testing: not run on this PR alone. It's exercised live with the UI PR stacked above it.
Upstream-owned files: none edited
Upstream product: unchanged
Surfaces: the contracts are shared by web and desktop. Mobile's waiting page follows in J5 Connect: mobile sign-in #1277, and the mobile Inbox doesn't count requests (Inbox AC27). None of this is an agent action.
Docs: the definition already says this (docs(j5): define J5 Connect, and rewrite people and access for it #1268)
Built by Claude Opus 5.5 in Claude Code, running in J5 Code.
🤖 Generated with Claude Code