Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UI for arrow components #836

Merged
merged 15 commits into from
Jan 20, 2023
Merged

Improve UI for arrow components #836

merged 15 commits into from
Jan 20, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented Jan 19, 2023

Closes #675

Screen Shot 2023-01-19 at 18 05 20

Screen Shot 2023-01-19 at 18 05 30

Screen Shot 2023-01-19 at 18 05 44

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I've added a line to CHANGELOG.md (if this is a big enough change to warrant it)

@emilk emilk force-pushed the emilk/arrow-data-ui branch from 5c13127 to b1a3469 Compare January 19, 2023 16:26
@emilk emilk force-pushed the emilk/arrow-data-ui branch from b1a3469 to f668c6e Compare January 19, 2023 16:49
}
}

pub fn format_field_or_component_name(name: &FieldOrComponent) -> String {
Copy link
Member Author

Choose a reason for hiding this comment

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

Soon we can get rid of this, when we delete the non-arrow code

@emilk emilk marked this pull request as ready for review January 19, 2023 17:11
@emilk emilk mentioned this pull request Jan 19, 2023
11 tasks
@Wumpf Wumpf self-requested a review January 19, 2023 17:46
crates/re_viewer/src/ui/data_ui/component_ui_registry.rs Outdated Show resolved Hide resolved
crates/re_viewer/src/misc/viewer_context.rs Outdated Show resolved Hide resolved
display(&mut repr, 0).unwrap();
ui.label(repr);
} else {
ui.label(format!("{} bytes", bytes));
Copy link
Member

Choose a reason for hiding this comment

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

full display on hover still?
it rarely makes sense to show number of bytes, maybe it would be better to cut off the display string? with ...?

Copy link
Member Author

Choose a reason for hiding this comment

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

If it is this big it is likely a binary blob, so displaying it is probably not very useful. We never hit this path with any standard component btw

crates/re_viewer/src/ui/data_ui/mod.rs Outdated Show resolved Hide resolved
@emilk emilk merged commit 54ddd86 into main Jan 20, 2023
@emilk emilk deleted the emilk/arrow-data-ui branch January 20, 2023 12:32
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.

Don't show rerun. prefix on rerun-core arrow components
2 participants