Repository navigation
Move local servers to their own window; fix dashboard window and D1 migrations - #305
Merged
Merged
Conversation
…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.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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:
.envlineThe 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 plainmigrations/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):
d1_migrationsagainst the stroke-web foldervitest (1,829 tests), DOM tests, design lint, svelte-check and the Rust tests for
local_serversandmigrationsall pass.