Skip to content

fix(ui): restore visible New/Edit table + keep connections#116

Draft
huyplb wants to merge 6 commits into
mainfrom
cursor/persist-selected-connection-7e48
Draft

fix(ui): restore visible New/Edit table + keep connections#116
huyplb wants to merge 6 commits into
mainfrom
cursor/persist-selected-connection-7e48

Conversation

@huyplb

@huyplb huyplb commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Screenshot showed Schema with tables loaded but no New/Edit — that matches an older UI (or a narrow sidebar that clipped the tiny icon). Secrets and table-blueprint code were not deleted from the repo.

Fixes

  • New table in the Schema section header (always visible)
  • Edit table under each TABLE/MQT name (cannot clip off the row)
  • Keep selected connections across refresh
  • DB2 Windows login path so schema load works

Where to find them

  1. SQL Editor → left sidebar → SchemaNew table (header)
  2. Under each table: Edit table → blueprint → Add column
  3. Secrets is the sidebar section directly above Schema (expand if collapsed)

Test plan

  • Schema header shows New table; opens create blueprint with Add column
  • Each table shows Edit table; opens edit blueprint
  • Secrets section still present above Schema
  • Refresh keeps connection selection
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 27, 2026 04:46
After refresh, connections briefly load as [] which cleared the SQL
schema-explorer selection, and sync source/target IDs were never
persisted. Wait for store rehydrate, persist selection IDs only, and
skip wiping explorer state during the empty-list window.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
IBM DB2 on Windows often connected without Authentication=SERVER, lost
passwords containing ';', or skipped clidriver install scripts — then
schema load returned zero tables and table edit looked missing.

- Always rebuild DB2 strings with Authentication=SERVER; ODBC-brace PWD
- Strip IBM GSKit from PATH; clear error when clidriver is missing
- Require schema on /schema/load for schemaRequired dialects
- foxschema drivers install db2 uses --foreground-scripts like the UI

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
The Edit/open-blueprint control only appeared on loaded table rows, so an
empty schema (or missing DB2 schema) looked like the feature was deleted.
Label New/Edit, add empty-state Create table, surface schema-required
hints, and keep the DB2 Windows login path so tables can load again.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
@cursor cursor Bot changed the title fix(ui): keep selected connections across page refresh fix(ui): keep connections + restore table blueprint entry points Jul 27, 2026
Your Schema screenshot matched a build where the only controls were the
connection dropdown + refresh. Put New table in the Schema section header
and render Edit table under each table name so add-column stays reachable
in a narrow sidebar. Secrets + blueprint code remain in the tree.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
@cursor cursor Bot changed the title fix(ui): keep connections + restore table blueprint entry points fix(ui): restore visible New/Edit table + keep connections Jul 27, 2026
cursoragent and others added 2 commits July 27, 2026 05:12
Edit table is always visible under each table name now; the old page
object looked for a removed Tailwind group ancestor and timed out.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
…erage

Indexes (add/edit/drop, unique, ASC/DESC, optional WHERE) already live in
the table blueprint modal; add stable data-testids and a Playwright flow
that adds a UNIQUE index and inserts CREATE INDEX SQL.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
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.

2 participants