Skip to content

Fix - Support typed arrays in raw messages panel#998

Open
benedikt-schwering wants to merge 1 commit intolichtblick-suite:developfrom
benedikt-schwering:bugfix/927-fix-typed-arrays-in-raw-messages-panel
Open

Fix - Support typed arrays in raw messages panel#998
benedikt-schwering wants to merge 1 commit intolichtblick-suite:developfrom
benedikt-schwering:bugfix/927-fix-typed-arrays-in-raw-messages-panel

Conversation

@benedikt-schwering
Copy link
Copy Markdown

User-Facing Changes

Previously the Raw Messages Panel was unable to show values from typed arrays.
image

Now typed array entries are expandable and will be displayed.
Also the value hint is corrected from "{} x keys" to "[] x items".
image

Description

This PR fixes the Issue #927.

The problem was that typed arrays are treated as opaque objects which hides their values.
Converting them to normal JS Arrays before rendering solved the issue.

Also the hover action was throwing errors for these arrays sometimes.
Because the hover action function only returns optional actions, a graceful fail prevents crashing the whole panel.

Checklist

  • The web version was tested and it is running ok
  • The desktop version was tested and it is running ok
  • This change is covered by unit tests
  • Files constants.ts, types.ts and *.style.ts have been checked and relevant code snippets have been relocated

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.

1 participant