UI/UX review remediation
Review source: an internal UI/UX review (not published).
Findings were checked against the changing source rather than accepted from historical line numbers. This ledger distinguishes implemented source changes, automated behavior verification, visual verification, and deliberate product exceptions. Browser verification is currently blocked: the sandbox refuses Vite's listening socket (EPERM), and Chromium cannot launch under its macOS process restrictions. No screenshot or screen-reader pass is claimed.
Critical batch
| ID / severity | Verified root cause | Fix / decision | Status | Regression coverage |
|---|---|---|---|---|
| C1 Critical: hidden Delete | Browse assigns 200px to text actions and applies cell ellipsis. Text, icons, margins and padding exceed that width. | Compact, labelled icon actions; exempt action cells from truncation. No change to click behavior. | Implemented; automated checks passed; browser geometry blocked. | Active-screen action tests; authored remediation.spec.ts (not executed). |
| C2 Critical: missing RESTRICT | Delete/truncate/drop mutate arrays directly; parent-key updates bypass incoming references; rename leaves metadata pointing to the old name. | Shared mutation service validates outgoing and incoming foreign keys before mutation; rename updates references atomically. | Implemented; automated checks passed; browser geometry blocked. | tests/mutations.test.ts. |
| C3 Critical: unsafe bulk copy | Bulk Copy calls store.insert with a null id; store insertion had no validation boundary. | All inserts, updates, copies and imports use one store mutation boundary. Bulk copy validates the whole batch before writing; duplicate UNIQUE values reject the batch. | Implemented; automated checks passed; browser geometry blocked. | tests/mutations.test.ts; actual-screen tests. |
| C4 Critical: Quick CSV dead end | Quick intentionally forces Structure and Data; CSV is data-only and its type selector is hidden in Quick. | Preserve the explicit earlier product requirement that Quick always means Structure and Data. Add Use Custom CSV export, which explicitly selects Custom/Data Only. Do not silently export a different content type. | Implemented policy-preserving recovery; automated checks passed; browser geometry blocked. | Export mode tests and active-screen recovery test. |
High-priority findings
| ID / severity | Verified root cause | Proposed fix / established decision | Status / coverage |
|---|---|---|---|
| H1 High: grid scrolling/density | The content area owns scrolling, headers are not sticky, pagination is below the grid. | Give Browse a bounded grid scroll region, sticky headers, toolbar pagination, and compact readable rows. Retain initially expanded SQL preview because the user explicitly requested it; preserve the session collapse preference. | Implemented: bounded Browse/SQL grid scrolling, sticky headers, top paging and 30px rows at unchanged 14px. CSS contracts and browser scenarios added; geometry verification blocked. |
| H2 High: inaccurate SQL preview | Preview and Edit construct separate MySQL-only strings; local filtering is omitted and default sort assumes id. | One engine-aware preview builder, shared with Edit, representing filter/sort/offset accurately. Choose actual PK or no sort. | Implemented: shared engine-aware plan for preview/Edit/execution, escaped filtering, actual PK/no sort and matching NULL ordering. tests/review.test.ts; actual editor browser checks blocked. |
| H3 High: sort feedback | Same ArrowUpDown in both directions; no aria-sort or unsorted state; NULL coerces to empty text. | Three-state sort, directional icon, aria-sort, explicit NULL policy. | Implemented: three-state sorting, directional icons, aria-sort and NULL-last exact numeric sorting. tests/review.test.ts; sorting unit checks pass. |
| H4 High: grid keyboard model | Cells are not focusable; only mouse double-click enters editing; Escape asks even for unchanged drafts. | Roving focus, arrows/Tab traversal, Enter/F2 editing, unchanged Escape cancellation. | Implemented: roving cell focus, arrows/Home/End/Tab, Enter/F2 editing and Space selection. tests/gridNavigation.test.ts, active editor validation tests; browser keyboard pass blocked. |
| H5 High: inline SET overflow | Multi-select plus NULL/default/actions exceeds a narrow resized cell. | Use the existing full record form for SET editing, or a contained anchored editor; avoid painting over adjacent cells. | Implemented: bounded anchored popover with viewport clamping and contained SET control. Active editor tests and CSS containment checks pass; pixel bounds pending. |
| H6 High: workspace independence | Active-connection watcher resets page and shared SQL result; tree/filter state lives in App. | Move query result, pagination and explorer state to each workspace; narrowly reset on table/filter changes. | Implemented: per-workspace page size/tree state and per-query result/error/paging/sort; async execution captures its originating query/database. Both-theme actual App switching tests pass. |
| H7 High: dialog focus/Escape | Separate modal shells lack traps and restoration; Escape is shortcut-gated; native confirms are inconsistent. | Shared modal behavior and queued in-app unsaved-change confirmation. Escape must work regardless of shortcut preference. | Implemented: one shared dialog directive, unconditional Escape, focus trapping/restoration, in-app dirty confirmations. tests/dialog.test.ts and actual App dirty-navigation tests pass; native Tauri untested. |
| H8 High: database/server context | Database selection expands the tree; breadcrumbs do not open database/server context. | Minimal server/database table overview; contextual SQL/export/import without a decorative dashboard. | Implemented minimal server/database overviews and existing table actions, contextual SQL/Export/targeted Import. Both-theme App breadcrumb tests pass. Empty databases expose Structure/Export only; see scope limits. |
| H9 High: Search gaps | Duplicate contains option, no NULL operators, blank NULL output, fixed truncation message, incomplete reset/actions. | Central search operators and shared result conventions; explicit NULL, correct counts, reset all conditions. | Implemented: one contains option; NULL/comparison/LIKE/IN/BETWEEN operators; full reset; explicit NULL, schema badges/key icons, Delete and saved widths. Pure operator and actual Search tests pass. |
| H10 High: import mismatch | CSV import coerces numbers and separately checks a subset of constraints; SQL import uses a success toast. | Atomic shared record validation, persistent row/column errors, neutral notice for simulated SQL. | Implemented: strict raw-string CSV parser, atomic shared constraints, persistent record/column errors and neutral SQL simulation. Pure parser/atomic tests plus actual Import failure test pass. |
| H11 High: no System selector | Verified removal was explicitly requested after the footer toggle was introduced. | Do not restore Appearance or a System selector in Settings. First launch follows OS; manual toggle persists. Document this intentional product decision. | Intentional exception; existing actual-screen theme tests cover it. |
| H12 High: record form consistency | Edit uses Insert route; NULL/default controls are inconsistent and generic form-grid selectors enlarge checkboxes. SET list shows three rows. | Visible Edit state, consistently sized checkbox controls and NULL/default layout, SET list sized to schema. | Implemented: Edit tab label, fixed Null/Default form column, 15px checkboxes and schema-sized SET list (bounded at eight visible options). Actual Insert/Edit/inline tests pass; visual alignment pending. |
Minor findings
| ID / severity | Verified root cause | Proposed fix / decision | Status |
|---|---|---|---|
| M1 Minor: row-number convention | Notice is zero-based; pagination is one-based. | Use one-based displayed record counts consistently. | Implemented: notices and paging use one-based record ranges (0–0 only for empty results). Active grid rendering covered; screenshots blocked. |
| M2 Minor: fake timing/refresh | Fixed query timing is presented as real; refresh toasts do not describe mock state. | Remove fabricated timing; clearly label mock refresh/result notices. | Implemented: fabricated timing removed; notices/version/refresh explicitly marked mock. No real refresh or timing is claimed. |
| M3 Minor: duplicate query feedback | Execution/refresh emits toast and banner. | Keep the persistent result notice only. | Implemented: query execution and Browse refresh use the persistent result notice without an additional toast. |
| M4 Minor: duplicate/decorative controls | Result actions duplicate SQL/Export routes; Export results actually means whole-table export; fake search glyph and shortcuts clutter the grid. | Remove misleading/duplicate result actions; retain explicit prior requirements such as footer encoding and connection creation entry points unless behavior is replaced. | Implemented selectively: misleading whole-table “Export results” and duplicated result controls removed; host breadcrumb now opens server context. Keep footer encoding, creation entry points and editing hint as established product controls. |
| M5 Minor: false Cmd+F | Hint has no handler. | Remove hint or implement scoped filtering shortcut without overriding browser find globally. | Implemented: removed the unimplemented Cmd+F hint; browser Find is preserved. |
| M6 Minor: MariaDB version | Version label falls through to MySQL. | Engine-specific clearly simulated version labels. | Implemented engine-specific simulated version labels, including MariaDB 11.4 (mock). |
| M7 Minor: Structure metadata | Type cells truncate without titles, Extra infers generation from PK, index names are synthesized, collation/comments absent. | Render full accessible type and explicit metadata; distinguish mock/generated index labels. | Implemented: full type tooltips, explicit generation metadata, unnamed mock index labels instead of fabricated names, keyboard-accessible collation/comment metadata details. Separate mostly-empty metadata columns deliberately avoided. |
| M8 Minor: semantic value badges | English meaning controls a limited set of ENUM badge tones; SET chips are presentation of raw values. | Retain requested schema-aware ENUM/SET presentation and limited semantic colors. Ordinary VARCHAR stays plain; raw values remain unchanged. | Intentional exception; existing active-screen/value tests. |
| M9 Minor: SQL consistency | Editor still selects MySQL; raw NULL looks like text, results lack sorting; history replaces drafts directly. | Real connection dialect, distinct NULL presentation, result sorting, safe history restoration. Context-aware autocomplete is already separately authorized and will use the actual editor. | Implemented: actual engine dialect compartment reconfigures with schema/engine; distinct italic SQL NULL, sortable results and guarded history/preview draft replacement. Build and sorting tests pass; CodeMirror DOM behavior awaits browser verification. |
| M10 Minor: narrow windows | Long navigation and wide action cells constrain visible data. | Compact actions plus contained tab/grid scrolling; keep typography unchanged. | Implemented compact 104px action column and contained navigation/grid scrolling. Narrow-window browser tests authored; pixel verification blocked. |
| M11 Minor: page sizes/default | Settings edits the same transient page-size ref. | Separate persisted default preference from workspace live page size; add practical larger sizes. | Implemented persisted default of 25 with 250/500 choices, separate from workspace live size. Actual App persistence/isolation test passes. |
| M12 Minor: saving offline configs | Save & connect always requires a successful test. | Separate Save from tested Connect; never persist secrets. | Implemented separate Save and Save & connect. Actual App test saves an “invalid” offline host without testing/opening it; persistence strips secrets. |
| M13 Minor: generic confirmations | Confirm label and message do not identify the action/record. | Action-specific text and PK context, with the existing production acknowledgement. | Implemented action-specific accept labels, table/PK context for deletion, persistent constraint errors and existing PROD acknowledgement. Actual Delete test verifies no mutation on RESTRICT. |
| M14 Minor: accessibility | Tabs lack semantic selection; internal ids appear in close labels; light input borders and requested gold are low contrast. | Add appropriate navigation semantics and human labels; improve input boundaries. Preserve explicitly required #D4A017 gold and assess a neutral contrast treatment rather than silently recoloring it. | Partly implemented: tab selection semantics/keyboard navigation, human workspace close labels, and form border token contrast ≥3:1 in both themes. Required gold icon hue retained; visual/screen-reader audit deferred. |
| M15 Minor: persistence policy docs | Generated AGENTS guidance says memory-only configuration, while the user later explicitly authorized non-secret connection and width persistence. | Later explicit user instructions take precedence. Keep allowlisted metadata persistence; never store credentials. Update README and document this exception. | Verified policy exception; persistence regression tests already pass. |
Verification ledger
- Baseline before this remediation: 60 automated tests passed; production build passed with a non-blocking bundle-size advisory.
| Batch | Executed results |
|---|---|
| C1–C4 constraint/action/export fixes | 65 tests passed; production build passed. |
| Grid and shared dialog changes | 68 tests passed; production build passed. |
| Strict atomic import | 71 tests passed; production build passed. |
| SQL plans/sorting, workspace, overview/search implementation | 74 tests passed; production build passed. |
| Active App workspace/overview/search regression coverage | 79 tests passed; production build passed. |
| Focus and contrast contracts | 83 tests passed; production build passed. |
| Offline save, actual Delete/Import and empty-value search | 87 tests passed; production build passed. |
| Final review | 88 tests passed; production build passed. Browser suite could not start (EPERM); no visual pass claimed. |
All commands used Node 26.11.1. Builds report only Vite's non-blocking chunk-size advisory. Early test failures exposed asynchronous event-test timing and an unscoped Import test selector; both were corrected to await and invoke the actual active handlers. No failing assertion was deleted.
- In-app schema, row validation, theme and group tests use Vue's host renderer and the actual App component. They verify handlers/state, not pixel geometry.
- Native Tauri, screen readers and real database behaviors remain outside this browser-only mock's implemented scope.
Deliberate exceptions and remaining verification
- C4: the historical suggestion to make Quick CSV imply Data Only conflicts with the later explicit requirement that Quick always means Structure + Data. The direct Custom/Data Only recovery removes the dead end without silently changing export semantics. Tests verify that saved Custom choices never leak into Quick.
- H1: retain the requested initially expanded preview and session collapse preference. Rows use 30px, rather than 26px, to accommodate the existing 14px text and accessible controls. No typography was reduced.
- H8: no invented storage sizes or new database drop/create/rename features. Table Operations is accessible from the database overview. Empty databases have no usable target for the prototype's limited SELECT/CSV importer, so only Structure/Export is exposed there. SQL still evaluates the documented SELECT subset; cross-table context is available but JOIN execution is not implemented.
- H9: Search displays at most 100 matches, with the cap disclosed only when necessary. IN/BETWEEN accept simple comma-separated values, not arbitrary SQL expressions. These are frontend predicates, not SQL execution or database collation emulation.
- H11/M8/M15: preserve the explicitly requested simplified Settings, schema-aware ENUM/SET badges, and allowlisted non-secret persistence. Do not modify the existing AGENTS.md. README now explains the later persistence decision.
- M7: index names absent from metadata are labelled unnamed/mock. Collation/comments are accessible inline details, preserving the compact grid. This mock does not discover actual server indexes, composite constraints, cascades, or deferrable constraints.
- M14: the explicitly requested primary-key color
#D4A017remains below 3:1 on white. Descriptive key labels/tooltips are retained; a visually verified outline treatment is deferred rather than claiming contrast compliance. Form borders now pass ≥3:1 token checks. No screen-reader pass is claimed. - Browser/native checks: Playwright was attempted again after remediation, but Vite failed to listen on
0.0.0.0:5173withEPERM. Chromium/macOS native integration remains unavailable. Screenshot comparison, sticky-header pixel alignment, popover geometry, focus behavior in a real browser/webview, and responsive visual inspection remain outstanding. Authored browser assertions are not counted as passing checks.
Architectural boundaries
recordMutations.ts is the common atomic constraint boundary for Insert/Edit, inline changes, bulk Copy, CSV and destructive row/schema actions. valueValidation.ts remains responsible for individual schema values. The mock stores single-column key/reference metadata and enforces RESTRICT; it is not a complete implementation of any database engine's transaction or constraint semantics. A future Rust/backend layer must enforce authoritative rules independently.
browseQuery.ts, search.ts and csvImport.ts are pure, testable adapters. Query results now belong to query tabs; explorer and pagination state belongs to connections. The shared dialog directive centralizes modal behavior without redesigning the existing dialog shells. App.vue remains large; splitting unrelated screens is intentionally outside this remediation to reduce regression risk.
No new dependency, backend connection, credential persistence, actual SQL import, or database backup was introduced.