Skip to content

feat(browser): offer sign-ins and history from another browser on the pane - #550

Merged
Hona merged 13 commits into
devfrom
browser-settings/import-banner-2
Nov 21, 2026
Merged

Hona merged 13 commits into
devfrom
browser-settings/import-banner-2

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Ports official's first-run sign-in offer, SignInOffer (packages/gui-plugins/src/browser/import-prompt.tsx:16-265 at db2d889c), to the browser pane. Stacked on #415 (cookie-file import): until #415 merges, this PR also shows its commits. It reuses #415's import path (host validation, batches, off the UI thread).

Where and when (official)

  • Card on the new-tab page: above Recent / "Open a page" (panel.tsx:1474-1477).
  • Bar over pages: first among the bars above a page, never on the new-tab page and never on a suspended tab (panel.tsx:1357-1360).
  • When it shows: while welcomed is false (import-prompt.tsx:100) and another browser is installed with a profile.
  • When it goes for good: Not now (decline, :81) or an import that brought cookies (jobs.ts:114-115) sets welcomed.
  • Confirmation: after an import that brought something, the offer is replaced by a confirmation (browser icon, a check, the result text, a close button). It goes by itself after 5 s (CONFIRMATION_MS) or when closed. The pane's page reloads when cookies came in (panel.tsx:594-598).

Text and buttons (official keys)

  • Bar:
    • Text: signins.bar ("Bring your sign-ins and history from {{browser}}").
    • Import (signins.action, contrast).
    • A chevron menu (signins.other): the other browsers, then More import options (signins.more, which opens Settings > Browser).
    • Close (signins.dismiss, "Not now").
  • Card:
    • Title signins.title ("Bring your sign-ins and history").
    • One row per browser profile, each with its icon and its own Import.
    • Not now and More import options.
  • Outcome messages: jobs.ts:186-276: signins.imported.*, signins.imported.partial.named, signins.protected.named, signins.failed.{key,access,read,storage}, signins.failed.locked.named, and on macOS signins.failed.keychain.
  • What Import brings: sign-ins and browsing history together, as official's default (import-prompt.tsx:84-85).

How the import runs

Not in this PR

  • "Choose sites": the site chooser is 2d.
  • Proof: captures of each state beside official, with made-up profiles, follow in this body before merge.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

@Hona
Hona merged commit 74b2ca7 into dev Nov 21, 2026
3 checks passed
@Hona
Hona deleted the browser-settings/import-banner-2 branch November 21, 2026 15:03
@Hona

Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Smoke (tools/smoke.ps1, FLEET.md:156), launched: plugin loads.

PR CI build 6e85ed3 (contains #415):

first-frame: yes (336 elements)
plugins: yes (17 built-in, browser included)
launcher: yes (Review, Browser, Terminal, Open file)
browser: yes (loaded smoke-page)
terminal: yes (Terminal 1)
settings: yes (14/14 pages, browser.browser included)
session: yes (189 message elements)
prompt: yes (200)
quit: yes (7 runs exit 0, 0 crash dumps)
total: 9/9 in 79.8s

Merged head 50b4d9d (dev merged in, local build): 9/9 in 68.4s, same nine lines.

Hona added a commit that referenced this pull request Nov 22, 2026
…fficial, not at the pane's bottom (#712)

* fix(browser): the new tab page's prompt sits 80 pt below the top as official, not at the pane's bottom

Since #550 the new tab page put ui.spacer({ w = 0, h = 0 }) above the prompt when no sign-in offer shows. ui.spacer is flexible space in a stack, so it took the column's free height and pushed 'Open a page' (and the recent-visits list) to the bottom of the pane. Official (panel.tsx:1473-1491) renders the offer card only while it offers and puts the prompt pt-20 (80 px) below the top. The page now holds the offer only when there is one.

* fix(browser): key the new tab page's prompt and recent-visits columns so they keep their identity when the offer goes

READER-12b on afb04a4: without keys the column moves from child 2 to child 1 when the sign-in offer goes away (Not now, or the confirmation closes) and is rebuilt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant