Skip to content

Move local servers to their own window; fix dashboard window and D1 migrations - #305

Merged
broisnees merged 1 commit into
nightlyfrom
local-servers-window
Nov 19, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
local-servers-window

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Local servers window. Local servers now open in a native window. The servers are listed on the left, and the selected one on the right shows:

  • connection details, with copy buttons for the URL and the .env line
  • uptime, disk use and the log
  • a "Start with Stroke" switch

The window also finds databases already running on this computer (Postgres.app, Homebrew, docker compose) by probing the usual ports and listing Docker containers, so they open in one click. Open connects in the window the local servers window was opened from.

Dashboard window. It looked the dashboard up under the live connection id and showed "This dashboard was deleted". It now uses the stored key and falls back to scanning for the dashboard. It also has a dashboard switcher, columns that fit the window width, and full screen (F11).

Migrations. Cloudflare D1 projects now read Wrangler's d1_migrations, and plain migrations/ folders are found too. The page has a summary with a progress bar, filters, and the apply command, with the D1 database name read from the project's wrangler config.

Data table widths. When one column was resized, older builds saved every column at its fixed type default, so those tables never auto-fit again. Columns still at that default now fit their content again, and only hand-sized widths are stored. The column header menu gets "Fit all columns to content".

Quit hint. Restyled, with a bar that drains during the second-press window.

Testing. I ran the real app headless (Xvfb):

  • created and started a native Postgres 17, then opened it in the main window
  • discovery found a MariaDB and a Postgres already running
  • "Start with Stroke" restarted the server on launch
  • Migrations showed 20/23 applied from d1_migrations against the stroke-web folder
  • the dashboard window rendered its card
  • a table saved by an older build re-fitted its columns

vitest (1,829 tests), DOM tests, design lint, svelte-check and the Rust tests for local_servers and migrations all pass.

…igrations

- Local servers open in a native window: servers on the left, the picked one
  on the right with its connection details (copy URL or .env line), uptime,
  disk use, log, and a "Start with Stroke" switch. Database servers already
  running on this computer (Postgres.app, Homebrew, docker compose) are found
  by port and open in one click. Open connects in the window it came from.
- Dashboard window: it looked the dashboard up under the live connection's
  id instead of the saved one and said it was deleted. It now finds it, can
  switch dashboards, fits columns to the window width, and goes full screen.
- Migrations read Wrangler's d1_migrations on Cloudflare D1 (and plain
  migrations folders), with a summary, filters and the apply command.
- Data table: older builds saved every column at its fixed default when one
  was resized, so those tables never fitted their content. Untouched columns
  fit again; only hand-sized widths are stored. Adds "Fit all columns".
- Quit hint: smaller, clearer, with a bar for the second-press window.
@broisnees
broisnees merged commit 327e3e5 into nightly Nov 19, 2026
1 check passed
@broisnees
broisnees deleted the local-servers-window branch November 19, 2026 03:13
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 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