Skip to content

[P1] [doc-drift] FR-3.1.9 BLOB preview (image/hex) — image/hex views missing #401

Closed

Description

@EVWorth

[P1] [doc-drift] FR-3.1.9 BLOB preview (image, hex view, text attempt) — image/hex views missing

Context

DESIGN_REQUIREMENTS FR-3.1.9: "BLOB columns show data size and type; click to open preview (image, hex view, text attempt)". The cell viewer modal handles JSON/SQL/Markdown but not BLOB/image.

Problem

Per docs/audits/results.md F8.

BLOB columns deserialize to TS number[] (via SqlValue::Bytes). TruncatedCell.formatValue renders them via String(val) as [1, 2, 3, ...] — unreadable. CellViewerModal has no hex view, no <img> rendering, no MIME detection. An image/png stored in MEDIUMBLOB displays as [137, 80, 78, 71, ...].

Files

  • src/components/grid/CellViewerModal.tsx
  • src/components/grid/TruncatedCell.tsx:14-19
  • src/types/index.ts:85 (SqlValue = ... | number[])

Repro (if applicable)

Static analysis only.

Expected

BLOB columns open a modal with Text/Hex/Image tabs. Image tab renders <img src={URL.createObjectURL(blob)}>; Hex tab shows formatted 00 01 02 ... view.

Proposed fix

Scope M. In CellViewerModal, when data_type matches /blob|varbinary|binary/i, add a tab strip with Text (UTF-8 best-effort), Hex (16 bytes/line), Image (magic-byte detection + <img>).

Acceptance

A SELECT id, avatar FROM users LIMIT 1 with an image BLOB double-click opens a modal with three tabs; Image renders the actual image; Hex shows the bytes.

Needs human verify

Yes

Labels: audit, area/results, severity/p1, kind/doc-drift

Activity

  1. added
    audit
    severity/p1
    kind/doc-drift
    area/results
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/resultsauditkind/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions