Skip to content

Conversation

@emilk
Copy link
Member

@emilk emilk commented Jan 6, 2025

Related

What

Unify how we show arbitrary arrow data in our UI, and add a test for it.

This is mostly a refactor, but may change behavior slightly.

@emilk emilk added ui concerns graphical user interface exclude from changelog PRs with this won't show up in CHANGELOG.md 🚜 refactor Change the code, not the functionality labels Jan 6, 2025
@emilk emilk force-pushed the emilk/refactor-arrow-ui branch from 6147276 to ab046ff Compare January 6, 2025 16:18
@github-actions
Copy link

github-actions bot commented Jan 6, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
eef44f4 https://rerun.io/viewer/pr/8590 +nightly +main

Note: This comment is updated whenever you push a commit.

@@ -0,0 +1,136 @@
/// Specifies the context in which the UI is used and the constraints it should follow.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum UiLayout {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has just moved from crates/viewer/re_viewer_context/src/component_ui_registry.rs

@emilk emilk marked this pull request as ready for review January 6, 2025 16:38
Copy link
Member

@abey79 abey79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but I'm really unsure about the use of monospace font for "summary" text (as opposed to actual data).

Also, make sure existing snapshot test pass—pretty sure some are invalidated, especially test_all_components_ui.rs.

@emilk
Copy link
Member Author

emilk commented Jan 6, 2025

@rerun-bot full-check

@github-actions
Copy link

github-actions bot commented Jan 6, 2025

@emilk
Copy link
Member Author

emilk commented Jan 6, 2025

@rerun-bot full-check

@github-actions
Copy link

github-actions bot commented Jan 6, 2025

@emilk
Copy link
Member Author

emilk commented Jan 6, 2025

@rerun-bot full-check

@github-actions
Copy link

github-actions bot commented Jan 6, 2025

@emilk emilk merged commit cef0ffe into main Jan 6, 2025
64 checks passed
@emilk emilk deleted the emilk/refactor-arrow-ui branch January 6, 2025 19:46
emilk added a commit that referenced this pull request Jan 7, 2025
### Related
* Follow-up to #8590
* Part of #3741
* ~Blocked on apache/arrow-rs#6951

### What
Uses `arrow-rs` own formatting of arrow values.

Unfortunately this adds a `.0` suffix to all integer floating point
values, which makes them quite verbose. I will see if there is a way
around that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude from changelog PRs with this won't show up in CHANGELOG.md 🚜 refactor Change the code, not the functionality ui concerns graphical user interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants