Commit Graph
4 Commits
Author SHA1 Message Date
Juan DenisandClaude Fable 5 1cbaa6fa27 feat(ui): Databases SQL editor gutter + highlighting, click opens console (S8.1)
- new databases/SqlEditor.jsx: the demo .sql-editor as a working editor -
  transparent <textarea> overlaid on a scroll-synced highlighted <pre>
  (identical font metrics), line-number gutter, SQL keyword/string/
  number/comment tints; wrap=off + horizontal scroll sync
- ConsoleTab swaps its bare textarea for SqlEditor (focus/shortcuts/
  read-only badge unchanged); dead .dbx-editor styles replaced by
  .dbx-sqled
- UX: single-clicking a database node in the tree now opens its SQL
  console directly (previously only via right-click context menu) and
  expands its tables; collapsing stays on the chevron so re-clicks do
  not fold the tree

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 23:34:51 -04:00
Juan DenisandClaude Fable 5 a97f8a4215 feat(ui): Databases parity pass 2 - flush console + semantic tints (S8.1)
The demo is a flush full-height 3-pane console; the live page was padded
floating cards, which is why it did not read as the new design.

- de-cardify: .db-explorer padding/gaps -> 0; toolbar/tree-panel/
  workspace/statusbar lose radius+outer borders, join on 1px edges
- ResultsGrid: demo cellEl semantic tints (NULL italic-ghost, emails/URLs
  + positive statuses green, negative amber)
- tab strip: demo + new-tab pill (opens SQL console on selected source)
- result count number bold green

Follow-up (S8.1): SQL editor line-number gutter + keyword highlighting.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 02:37:40 -04:00
Juan Denis 986909a955 Surface Docker DBs, add base port & migration fixes
Expose and surface containerised databases and introduce managed app base port control. Backend: add endpoint to list databases across all Docker apps, robustly resolve compose container names, include docker DB user when querying, compute migration needs from live heads and self-heal orphaned alembic_version entries by stamping to head, and add the managed_app_base_port system setting. Template service now honours the managed_app_base_port and WordPress template default HTTP port updated to 8300. Frontend: add react-icons brand icons and DatabaseBrands component, show Docker-hosted DBs under their engine nodes with a docker badge, platform-aware console shortcut label, pass DB user to docker table/query API calls, add API client header merge fix, UI for managing base port in settings, enhanced migration history UI (backup/apply/resync flows, confirm dialog, toasts), and various style tweaks and color additions.
2026-06-06 23:29:22 -04:00
Juan DenisandClaude Opus 4.8 caee882844 feat(databases): add Database Explorer building blocks
Reusable pieces behind the new full-screen database UI:
- dbAdapter: unifies MySQL/PostgreSQL/SQLite/Docker behind one
  listTables/getStructure/runQuery interface, with per-dialect identifier
  quoting and a LIMIT/OFFSET browse-query builder
- SourceTree: lazy, status-aware tree (engine -> database -> tables)
- ConsoleTab: SQL console (Ctrl+Enter, read-only/write toggle,
  per-connection history, CSV export)
- TableDataTab: paginated data grid + Structure view
- ResultsGrid: shared sortable result table (sticky header, NULL handling)
- BackupsTab: backups list with engine filter
- modals: create database / user dialogs

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 02:41:24 -04:00