Skip to content

feat(datagrid): preview PHP serialized values on read-only grid cells - #4377

Merged
datlechin merged 2 commits into
mainfrom
feat/4375-grid-serialized-preview
Nov 20, 2026
Merged

datlechin merged 2 commits into
mainfrom
feat/4375-grid-serialized-preview

Conversation

@datlechin

@datlechin datlechin commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Double-click or Enter on a PHP serialized value in a read-only result (a query result, a read-only table, an immutable column) now opens the PHP serialized viewer, the way the row inspector already previews it. Editable serialized values keep previewing in the row inspector.
  • Editable grid cells keep inline editing. No detector can reliably tell a serialized value from text that only looks like one, so detection never replaces an editable cell's editor; Display As > PHP Serialized still opts an editable column into the viewer.
  • An explicit Display As choice (JSON, PHP Serialized, Raw) now takes precedence over content detection in the grid, so the grid and the inspector resolve one cell the same way.
  • The serialized heuristic no longer matches ordinary text that only starts with a token character and a colon, such as a C:\... path, which used to read as an invalid PHP value.

Screenshots

Double-click a PHP serialized value in a read-only result to open the viewer in Tree mode. Before this change the same double-click opened the plain text popover.

Read-only serialized cell opening the PHP viewer, light

Read-only serialized cell opening the PHP viewer, dark

Test plan

  • CellInteractionResolverTests (TableProTests, Unit plan): a read-only serialized cell opens the viewer (fails on main, which opened the text viewer); an editable serialized cell keeps its text editor; Display As PHP Serialized opens the viewer when editable; Raw Value opts out; a JSON override wins over detected PHP.
  • PhpSerializeParserTests, CellValueContentDetectorTests, FieldEditorResolverTests: token-prefixed text (C:\..., a:b, i:love) is no longer detected as PHP, while real serialize() output still is.
  • verify.sh test over the affected suites: 402 executed, 402 passed.

Fixes #4375

Double-clicking a serialized value in a read-only result opens the PHP viewer, matching the row inspector. Editable cells keep inline editing, since detection cannot reliably tell a serialized value from text that only looks like one; Display As > PHP Serialized still opts an editable column in. Explicit display-format overrides now win over content detection, and the serialized heuristic no longer matches token-prefixed text like a Windows path.
@datlechin
datlechin merged commit f690825 into main Nov 20, 2026
20 of 22 checks passed
@datlechin
datlechin deleted the feat/4375-grid-serialized-preview branch November 20, 2026 14:18
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.

View serialized data

1 participant