Skip to content

feat(windows): production cue, database switchers, find and replace, sql files, redis key tab, cassandra paging and display settings - #4285

Merged
datlechin merged 17 commits into
mainfrom
feat/windows-workspace-daily-use
Nov 15, 2026
Merged

datlechin merged 17 commits into
mainfrom
feat/windows-workspace-daily-use

Conversation

@datlechin

@datlechin datlechin commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • W-08: the front connection's colour tints the title bar, the menu bar and its tab strip; its tags show as an environment label in the title bar.
  • W-11: a database button heads the object pane (Ctrl+K, Database > Switch database). Where databases are the catalog's schemas (MySQL, ClickHouse, MongoDB, Cassandra) it sets the database new query tabs run in and reveals it in the tree; where each database has its own schemas (PostgreSQL, SQL Server) it opens the connection in that database as its own rail item, which reconnects with the connection after an edit.
  • W-11: a query tab names its database in its command bar and switches it: the open editor moves (USE), or on an engine that binds the database at connect the next run opens an editor there. Blocked while a run or a transaction is open; a sort after a switch orders the rows held. A typed USE moves the button.
  • W-33: the editor's find bar gains regular expressions (timeout scoped to one text), a Replace row (Ctrl+H, Edit > Replace), Replace and Replace all (one undo step, $1 groups). The bar now draws in the app's theme, not the system's.
  • W-34: File > Open file also opens .sql, .psql and .pgsql into a query tab of the window's connection (waiting for one to connect when none is), read off the UI thread; Ctrl+S saves the file, Ctrl+Shift+S saves as; encodings kept (BOM, UTF-8, UTF-16, UTF-32, Latin-1) and the file's access list kept; a dot marks unsaved text, closing asks, and Save is offered on a read-only connection too; a file changed or deleted on disk shows a bar, and saving over a change asks; File > Open recent; files dropped on the editor open. File tabs come back after a relaunch with their baseline, and unsaved text after a forced end.
  • W-48: a Redis key opens a key tab: type, length, TTL, its entries in a read-only grid, Load More, Refresh, Stop.
  • W-50: a Cassandra table pages past its first page by the paging state the server hands back; Previous reuses the kept state.
  • W-52: Settings: editor font, data grid font and size, NULL display, query history age and count limits, Clear history. Fonts and NULL text reach open tabs at once.
  • Core FFI: DatabaseSession::databases, database_layout, database, open_editor(database), open_key (KeyReader), read_table_page(.., resume) with TablePageRead::next_page, QueryEditor::database, Core::connect_saved(.., database, ..), QueryHistoryStore::prune; storage QueryHistory::prune_keeping. Bindings regenerated.
  • Docs: core ADR 0022 amended; Windows decisions 0003 and 0004 and windows/AGENTS.md updated.
  • Tests updated on purpose: QueryTabDatabaseTests (the editor now opens in its database: ATabOpenedForADatabaseOpensItsEditorThere, AnOpenTheEngineRefusesSendsNothingAndSaysWhy, ATabWithNoDatabaseRunsWhereTheConnectionIs) and ShellModelTests.AnEngineThatCannotSeekStepsAPageAtATimeUntilTheServerSaysNothingFollows (was AnEngineThatCannotSeekHasOnlyItsFirstPage).
  • Not covered by UI tests: the key tab and Cassandra paging, since the Windows runners have no Redis or Cassandra fixture; model and FFI tests cover them.

Test plan

  • cargo test -p tablepro-ffi --features engines: new unit tests for the key reader, the database list and editors opened in a database; a history prune test.
  • dotnet test --solution windows/TablePro.slnx: new App.Model tests (key tab, server paging, SQL files, recent files, query tab databases, settings), Editor.Model find and replace tests, Interop tests for database switching, key reading and prune.
  • UI tests (Windows CI): settings, the production cue, find and replace, a .sql file tab and Open recent, and a PostgreSQL tab and connection switching database.

Screenshots

Before (main) and after: the workspace with a red connection tagged production.

Before
After
After, dark

Settings, before and after.

Before
After

Find and Replace with a regular expression, dark.

Find and Replace

A .sql file tab with unsaved text, and File > Open recent.

SQL file
Open recent

A PostgreSQL query tab switched to postgres, and postgres opened beside the connection.

Tab database
Database beside

…sql files, redis key tab, cassandra paging and display settings
…e-daily-use

# Conflicts:
#	windows/src/TablePro.App.Model/SessionState.cs
#	windows/src/TablePro.App/Views/QueryTabView.xaml
#	windows/src/TablePro.App/Views/QueryTabView.xaml.cs
#	windows/src/TablePro.App/Views/WorkspaceView.xaml.cs
…ng over a file recreated since, open a tab window's sql file there
… a restored file once read, report a history that cannot clear
…e-daily-use

# Conflicts:
#	windows/src/TablePro.App/Views/QueryTabView.xaml.cs
#	windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
#	windows/tests/TablePro.App.Model.Tests/TabFakes.cs
@datlechin
datlechin merged commit aa20df8 into main Nov 15, 2026
96 of 100 checks passed
@datlechin
datlechin deleted the feat/windows-workspace-daily-use branch November 17, 2026 04:12
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