Skip to content

DataCraft v0.2.2

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 17:02
· 75 commits to main since this release

Release note: 0.2.1 was published incompletely — datacraft-mcp could not
build against the registry tarball because the PDF font lived outside the
datacraft-core package. The 0.2.1 versions are yanked; use 0.2.2.

Fixed

  • core: the PDF export font now travels inside the datacraft-core crate
    (assets/fonts/ with its OFL text), so a consumer enabling the
    pdf-export feature builds from the published tarball; the dependent
    datacraft-mcp release resolves again.

Added

  • core/sqlite/ui/cli/mcp: SQLite SQL pushdown (98, M129) — the SQL window
    now executes statements natively on a SQLite source: full dialect
    (window functions, CTEs), real indexes, native views, typed results and
    EXPLAIN QUERY PLAN. The port keeps it read-only through the engine's
    own statement flag, so every write form (including WITH … DELETE and
    PRAGMA writes) answers a precise capability refusal; Jet/ACE/CSV stay
    on the shadow engine unchanged. The snapshot names the dialect and the
    SQL window shows it plus a Query plan toggle that renders SQLite's
    plan in the result grid; CLI and MCP dispatch the same command.
  • core/ui/cli/mcp: PDF report export (97, M128) — a report's print
    preview exports to a new PDF file as its second render target: one PDF
    page per preview page, the report's own page geometry, text kept as
    text through an embedded Type0 Inter font with a ToUnicode map, and
    byte-identical re-export (fixed metadata, stable object order). The
    pure-Rust writer sits behind the optional core pdf-export feature
    (the shipped clients enable it), the preview toolbar gains an Export
    PDF… button with the save dialog and a completion notice, and CLI/MCP
    dispatch the same command. An existing target is refused; the source
    database and sidecar stay untouched.
  • xlsx/core/ui/cli/mcp: Excel workbooks as read-only sources (96, M127) —
    a new datacraft-xlsx driver (calamine, core-only dependency) opens
    .xlsx, .xlsm, .xls and .xlsb as a database of sheets: the first
    row names the columns, kinds are inferred conservatively and every cell
    maps onto the domain values (empty → Null, formulas → their cached
    value, macros never read); all four families deliver identical kinds
    and values. The composite registry now carries multiple out-of-tree
    fallbacks, the snapshot disables every write affordance with the
    localized reason, and the datasheet renders the sheets like tables.
    Import File accepts Excel workbooks through a core-owned reader seam
    (preview and the ordinary create/insert chain). ODF and
    password-protected workbooks refuse precisely; fixtures are built by
    the new tools/xlsx-fixtures/build.ps1 and pinned.
  • jet/ace/core/ui/cli/mcp: maintenance — health facts and Compact (95,
    M126) — every Jet/ACE open now carries page-0 facts (version, page
    size/count, byte size, code page, encryption, password) and a bounded
    page-type scan whose damage findings fill the snapshot's health
    without blocking the open; CompactDatabase rewrites the open Jet4/ACE
    database from the embedded engine-written template, restores rows with
    their AutoNumber identities and user relationships, verifies the fresh
    file against the source, swaps it atomically at the same path and
    refreshes the session (identical input → identical bytes; real Access
    opens both the compacted .mdb and .accdb). The Info page renders
    the facts and a capability-gated Compact button with a localized reason
    and a completion notice; CLI and MCP dispatch the same command. Jet3,
    password-protected, Office-encrypted and Access-locked sessions refuse
    precisely; SQLite/CSV declare the capability as unavailable. Also fixes
    the detecting composite dropping the session's file facts, view/index/
    trigger/native-object inventory, relationship groups and the native
    view path (F15).
  • ui: the dock rollout and the details Type column (93, M125/L64) —
    the Relationships mapper and the Expression window dock through the
    pane host like the SQL window (dock right/bottom or float, per-surface
    geometry in ui.json, the workspace never overlaps a docked pane, the
    pane header localizes its title), and the Object Details list renders
    each row's localized kind as a trailing Type column while keeping the
    nav sort, the search narrowing and the multi-select semantics.
  • ui: the open-items sweep (92, M99/M108/L48/L51) — platform-chord
    keyboard shortcuts (⌘S/⌘W/⌘Z/⌘⇧Z on macOS, Ctrl+S/W/Z/Y elsewhere,
    with the help page and tooltips rendering ⌘ through one
    platform-aware formatter), the docked task-pane host piloted by the
    SQL window (dock right/bottom with resizable bounds or float, per-
    surface geometry in ui.json, the workspace never overlaps a docked
    pane), a navigation-pane search across categories, multi-select with
    Ctrl/Shift clicks and a selection-aware context menu, the flat Object
    Details view beside the category tree with local groups and palette
    colours persisted per database, and the low-power/RDP rendering mode
    (an Options tri-state over the detection; zero animations, no blurred
    shadows, ~30 fps interaction repaints, idle repaint at zero).
  • cli/core/ui: version reporting across all three clients (91, M109) —
    the CLI answers --version/-V with datacraft-cli <version> on
    stdout (exit 0, before any database work, flag position irrelevant),
    the JSON-RPC transport gains the additive version method answering
    name and version, and the backstage Info page shows the row above the
    database facts — with and without an open database. One shared source
    (datacraft_core::VERSION, the lockstep workspace version); the label
    is localized, the value stays locale-neutral.
  • ui/core: the import surface is honest about wrong-surface files
    (91, M111/M112/L53) — a Jet/ACE or SQLite file chosen in the Import
    File window answers a format-naming rejection naming the right surface
    ("open it via File → Open") instead of a decoder byte error or a
    silently imported garbage table (Jet bytes decode as text); the
    open-file pickers filter to their surfaces' extensions (text import:
    csv/txt/tsv, database open: mdb/accdb/sqlite/sqlite3/db, localized
    "Supported files"); composed import errors carry the source path
    exactly once; every path field names the chosen file prominently with
    the full path on hover.
  • ui/core: shell chrome keeps every action reachable at narrow widths
    (88, M98/L45/L49) - ribbon groups collapse whole trailing groups behind
    one localized overflow control when the row runs out of width (the fit
    math lives in core, the menu stacks the hidden groups' own buttons so
    dispatch, disabled states and tooltips stay identical; no command
    leaves the window silently), the tab strip scrolls horizontally and
    scrolls the selected tab back into view on every activation, and the
    tab context menu gains Close Tabs to the Left/Right as bus commands
    (CloseTabsToLeft/CloseTabsToRight over the wire, activation moves
    to the anchor only when it was on the closed side); activating an
    already-open object re-activates its tab, now matched case-insensitively,
    and never touches a tab with a staged batch; a headless glyph-coverage
    contract walks both catalog languages and hostile names against the
    shipped font stack (T11).
  • ui/core: datasheet selection, clipboard, fill and the cell value viewer
    (86, M101/M102) - a multi-cell selection model (anchor rectangle,
    Shift+arrows/Shift+click extension, whole-column selection through the
    header, Ctrl+A; the selection survives scroll untouched and clamps into a
    smaller row set after sort/filter changes); Ctrl+C copies the selection as
    spreadsheet-compatible TSV and Ctrl+V validates the pasted matrix's fit and
    every value before any cell changes, then writes through the tab's normal
    path (the H61 batch on an atomic-batch driver, direct row writes
    otherwise); Ctrl+D fills the selection from its top row and Del over an
    extended selection clears the cells to NULL - both as one command and one
    undo step; Shift+F2, Alt+click and the cell context menu open a value
    viewer (JSON indents only when it parses, binary values show a bounded hex
    view naming the truncation) whose multiline editor writes editable long
    text through the same path.
  • ui/core: datasheet foreign-key navigation and the structured filter
    builder (87, M103/M104) - a key cell's context menu and F4 follow the
    declared key (composite constraints stay paired over the port's
    constraint groupings), the inferred <table>_id reference or the
    reverse referenced-by target: the target opens or activates with the
    row's key values as exact-equality filters whose encoding the real
    criteria parser validates, empty keys and unencodable values answer
    precisely, and drivers without relationship support hide the
    affordance; the datasheet's trailing row carries Back/Forward over the
    per-tab navigation stacks (a closed source reopens with its stored
    filter, a source with pending edits only activates); the reverse menu
    entries carry capped referenced-by counts (window-capped separate
    reads, the truncation named, counts cleared with the tab); the Filter
    Builder window edits a per-tab draft that serializes onto the existing
    criteria map through the core model (OR groups and duplicate columns
    fence precisely), the text mode stays the raw-criteria escape hatch
    including the bare wildcard's implicit Like.

Changed

  • ui/core: the datasheet sort order is total (91, M113) — NULLs sort
    first ascending and last descending (the Access convention), mixed
    families follow the documented FieldValue declaration-order rank,
    non-finite floats tier after their family's comparable values, and a
    renamed-away sort field clears its state instead of claiming an order
    the rows do not follow; the semantics are documented in FEATURES and
    a COMPATIBILITY matrix row.
  • ui: the L47 design-review fix sweep (91 — M110/M114, L52/L54,
    M116–M122, L56–L63, M124) — the SQL window's result area is
    height-budgeted (a small result no longer grows the window toward
    full screen; large results scroll inside the bound), status lines
    truncate with an ellipsis and carry the full text on hover, the
    AutoNumber new-record cell renders its gate before input and the
    rejection names the column, freeze carries tooltips and a visible
    frozen boundary, the navigation pane reads honestly (the sort menu
    names its pane-wide scope and marks the active order, a row opens from
    its whole rect, the native inventory renders in the pane's row
    language, the category header is a plain label, view creation lives in
    the Views group menu), the Save page names every section, the Info
    values align into one column, the tool windows gain scroll (the
    relationship mapper), token-clean errors (the VBA viewer), labelled
    fields (the view editor), window-chrome close (the expression window),
    painted severity glyphs (the notices dialog) and aligned macro
    numbering, the form canvases scroll both axes with an accent selection
    ring and a painted combo caret, the report preview follows the
    report's PageSetup with page-scaled text, and the form navigation row
    gains First, Last and New record (capability-gated, the edit buffer
    flushed, the form sits on the new record).
  • ui: datasheet edits stage into a pending batch instead of writing
    immediately (85, H61) — on Jet4 and SQLite sources every cell edit,
    new record and deletion collects into a per-tab edit buffer with
    amber pending markers; Ctrl+S previews the journal's own diff and
    applies the batch as one atomic write (a failed apply keeps every
    edit and the database untouched; Discard keeps the buffer; Escape
    discards the active record's staged changes; the grid refuses input
    while a submission is in flight). Drivers without the atomic-batch
    capability and read-only sources keep the immediate per-cell path.
  • core: the snapshot reports the pending write journal as a compact
    summary (85, H61) — table, token and per-kind operation counts — so
    every client observes the batch awaiting confirmation, and
    PreviewWrite refuses while a journal for another table is pending.
  • sqlite: row-write batches apply atomically (85, H61) —
    write_row_ops wraps the batch in one transaction with rollback on
    the first failure; the capability reports atomic_batch: true,
    retiring the phase-33 one-operation-at-a-time refusal.
  • ui: native file and message dialogs no longer block inside the event
    loop (81, M97) — every picker and confirmation parks a request and its
    follow-up, the native host answers on a helper thread through rfd's
    non-modal async panels, and the flow resumes on a later frame. This
    removes the documented macOS runModal-in-winit abort class; Cancel,
    an unavailable dialog host and a picked path stay distinguishable, and
    the queued model is pinned headlessly through the scripted test host.
    One dialog runs at a time; the queued model is unverified on macOS
    hardware (no Mac available) — docs/COMPATIBILITY.md names the
    follow-up reproduction pass.
  • core: atomic file saves (databases, sidecars, settings) are durable and
    concurrency-safe (80, H60) — every replacement now stages into a unique
    per-writer file (process id + counter), flushes it to disk before the
    rename, syncs the parent directory best-effort on Unix, restores the
    replaced file's permissions, resolves symlinked targets through the link,
    and retries the Windows sharing/lock errors (antivirus scanners, search
    indexer) with a bounded backoff. A crash between staging and the rename
    leaves the live file byte-identical with at most one orphan staging file.
  • core/csv: CSV sources open beyond UTF-8-comma (80, H59) — one shared decode
    path behind the Import File flow and the CSV driver accepts valid UTF-8
    (with or without BOM), UTF-16LE/BE byte-order-mark streams and
    Windows-1252, and sniffs the delimiter (comma, semicolon, tab) outside
    quotes; undecodable bytes still refuse precisely instead of decoding
    lossily, and the Import File preview names the detected encoding and
    delimiter (German and English). Existing UTF-8 comma files keep their
    byte-identical results.
  • publish: every published crate packages its own crates.io README (90,
    L44) — a per-crate page (purpose, public surface, feature flags, MSRV,
    license, product-page link) replaces the inherited root product README,
    which stays the product entry; PUBLISHING's release checklist names the
    per-crate README verification (cargo package --list).