-
Notifications
You must be signed in to change notification settings - Fork 366
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
ComponentFallbackProvider
and greatly simplified edit_ui
#6465
Conversation
…ider` & `ComponentFallbackProvider`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Code LGTM, but I haven't tested clicking around the UI (yet)
value: &mut ScalarScattering, | ||
) -> egui::Response { | ||
let scattered_text = if value.0 { "Scattered" } else { "Line" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR, but this highlights that ScalarScattering
should probably been an enum
instead (it was created before we had enum
support in codegen)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
worth breaking the api (now is a good time!) taking it in a followup!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wait that thing is so old, we stopped using it :O
### What ... and use that to further simplify edit ui using this (that part is a refactor though, the title line is the user facing change here :)) * this addresses a comment on #6465 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6470?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6470?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/6470) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`.
What
initial_override_value
with a "FallbackProvider" trait which can be used for edit_ui #6434Two major intertwined changes:
ComponentFallbackProvider
replacesinitial_override_value
(motivation see ticket)Things to be iterated on:
UiLayout
in that case? cc: @abey79QueryContext
has a bold name but is only used on the fallback provider right now and lacks some context that we'll need for upcoming fallback provider impls (view state etc.!)All of these will end up being part of
DataResult
#6435Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.