Skip to content

feat(notebook-cloud): Add-workstation pairing flow in the workstations panel#6

Closed
quillaid wants to merge 3 commits into
ws-pairing-workerfrom
ws-pairing-ui
Closed

feat(notebook-cloud): Add-workstation pairing flow in the workstations panel#6
quillaid wants to merge 3 commits into
ws-pairing-workerfrom
ws-pairing-ui

Conversation

@quillaid

Copy link
Copy Markdown
Owner

Summary

The product face of the pairing contract in nteract#3609: an Add workstation flow in the workstations rail panel.

  • "Add workstation" appears in the empty state (replacing the passive "run the agent" copy) and as a quiet entry under the registered list.
  • Clicking mints a pairing code and shows the copy-paste one-liner —
    runt workstation connect https://preview.runt.run --code XXXX-XXXX-XXXX && runt workstation run
    — with a live Code expires in m:ss countdown and a copy button.
  • The card follows the pairing live: waiting → "Machine connected — registering…" → "✓ is connected", polling GET /api/workstations/pairing-codes/:id every 2s and refreshing the workstation list on registration. Expiry flips client-side (no poll-boundary dependence) and offers "Generate a new code".
  • All new panel props are optional, so the elements docs prototype keeps compiling unchanged.

Stack

Base: ws-pairing-worker (nteract#3609). Intra-fork PR; promote to nteract:main after nteract#3609 merges. The runt workstation CLI that the one-liner invokes is the next PR in the train.

Tests

4 new panel tests (entry point, pending card + countdown, redeemed→registered + Done, expiry + regenerate) and 3 new client tests (mint/status round-trip with auth headers, error surfacing, one-liner construction). 13 + 7 green.

quillaid added 3 commits June 12, 2026 06:46
…s panel

The panel mints a pairing code and shows the copy-paste connect one-liner
with a live countdown; the card follows the pairing through redeemed and
registered as the agent connects, and offers a fresh code on expiry.
…ationManager

Renders the real hook with the workstations client mocked: mint success
and failure, the 2s poll through redeemed/registered with registry refresh
and terminal shutdown, in-flight abort on unmount, the client-driven
expiry flip, and display-name resolution from the registry.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 12, 2026
@quillaid

Copy link
Copy Markdown
Owner Author

Promoted to nteract#3610 after nteract#3609 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant