Skip to content

Add a Labs option to open the connection page as a tab - #426

Merged
broisnees merged 1 commit into
nightlyfrom
feat/connect-in-tab
Nov 24, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
feat/connect-in-tab

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Settings > Labs > Connection page in a tab, off by default.

What it does

  • Connected: "New connection", "Manage connections…", sidebar "Edit…" and every other way into the connection page open a Connect tab beside the other tabs. The page draws without its own connections rail; the studio sidebar's list sits next to it. The tab stays mounted while open, so a half-filled form or a Neon sign-in survives a look at another tab. It closes when the page hands over after a connect or closes itself.
  • Nothing connected: instead of the launcher page and the dialog over it, the window shows the connect page inline. Its saved-connections rail is the only list, and a one-tab "Connect" strip sits above the page.
  • Off: nothing changes, and a Connect tab left open when it is turned off is closed.

How

  • ConnectionModal gets an inline mode. The page body moved into a snippet rendered either inside the dialog or in a plain container. New props: showRail, active (gates the page's capture-phase chords and mouse back/forward to the visible tab), resetKey (start over in place for a new Edit… or engine request), and top (what replaces the dialog's title row).
  • showConnectionModal stays the single request flag. With the option on, an effect turns each request into the Connect tab (or a reset of the inline page) and the dialog's open binding reads false, so none of the call sites change.
  • New tab kind connect (plug icon). It is not a PAGE_KINDS member, so it isn't restored on launch, and it's filtered out of parked sessions under Several connections at once.

Checked in the app (Linux)

Connect tab from the status bar; Neon form kept across a tab switch; sidebar Edit… opens that connection's form in the tab; disconnect lands on the inline view; connecting from it opens the studio with its restored tabs; × closes the tab; turning the option off closes the tab and the dialog works as before. npm test, svelte-check and design lint pass.

Not in this PR

The click behaviour still differs between the two lists (the rail edits on click and connects on double-click; the sidebar connects on click). The thread's other ideas (environment colours, clipboard connect, Docker presence dots) are separate.

Not merged yet: I'm holding releases until I say so.

@broisnees broisnees added the release:skip Merge into nightly without a version bump (docs, CI, chores) label Nov 24, 2026
Settings > Labs > Connection page in a tab, off by default.

ConnectionModal gains an inline mode: the same page drawn in place of
the dialog, with props to hide its saved-connections rail, gate its
global chords on the tab being active, start over on a reset key, and
put the shell's tab strip where the dialog's title row was.

showConnectionModal stays the one request for the page, so none of its
fifteen-odd callers change. With the option on, the dialog never opens:
connected, the request opens or focuses a singleton Connect tab, kept
mounted while it is open so a form or provider sign-in survives a tab
switch; with nothing connected, the window shows the page inline with
its rail as the only list under a one-tab strip, in place of the
launcher. The tab closes when the page closes itself, is left out of
parked sessions and of the reopened-tabs list, and goes away if the
option is turned off.
@broisnees broisnees removed the release:skip Merge into nightly without a version bump (docs, CI, chores) label Nov 24, 2026
@broisnees
broisnees merged commit fb4d282 into nightly Nov 24, 2026
1 check passed
@broisnees
broisnees deleted the feat/connect-in-tab branch November 24, 2026 15:24
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant