Repository navigation
feat: Add expandable preview for arrays of pointers in data browser - #3534
Albert1603 wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Close other open previews when a preview is expanded - Restore focus to the trigger only on Escape or the close button - Keep keys pressed in the popover, and Enter or Space on the trigger, away from the data browser keyboard shortcuts - Keep the popover attached to its cell on scroll and resize, and close it when the cell leaves the visible area - Keep context menu and double click in the popover away from the cell - Label encoded Parse types and use singular counts - Test against the real Popover instead of a mock Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code. |
Pull Request
Issue
Closes #275
In the data browser, an
Arraycell that holds several Pointers only makes the first one usable. The other Pointers sit in a list that scrolls inside the 20 px high cell. If the first element is a Pointer but a later one is not, the cell throwsInvalid type found in pointer array. If the first element is not a Pointer, the Pointers in the array are not linked at all.A previous attempt, #3260, kept the list inside the cell and was closed.
Approach
The row height stays fixed. A cell whose array contains at least one Pointer now shows:
+Nbutton with the number of remaining items.The
+Nbutton opens a popover, rendered through the existingPopovercomponent, that lists every item in its original order:null, encoded Parse types such asDate) are shown read-only with their type and a truncated JSON value.Arrays without any Pointer keep their JSON representation.
Popover behavior:
+Nbutton on Escape and on the close button.+Nbutton, which would otherwise start editing the cell.Differences from #3260:
Other changes:
BrowserCell.scss: removed the.pointerListstyles, replaced by the new component, and the unused.hasMoreand.removePaddingrules.PointerArrayPreview.test.jsrun against the realPopoverin jsdom and cover mixed arrays, focus handling, keyboard isolation and positioning;BrowserCell.test.jscovers mixed arrays and arrays without Pointers.Before / after
pe-1950-pointer-array-preview.mp4
Tasks
Summary by CodeRabbit