Repository navigation
feat(datagrid): preview PHP serialized values on read-only grid cells - #4377
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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.
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 realserialize()output still is.verify.sh testover the affected suites: 402 executed, 402 passed.Fixes #4375