-
Notifications
You must be signed in to change notification settings - Fork 384
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
Filter entities in the UI (part 3): Move action to a menu in the blueprint panel and keep default blueprint when using heuristics #8672
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
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.
Makes sense, but it is also all very confusing to me, because we are inconsistent in the naming.
We have the default blueprint (fine), and then we have the "automatic" "generated" "heuristic" blueprint. I wish we could settle on one name for it, instead of three.
/// Note: this engages the heuristics even if a default blueprint exists, so the default | ||
/// blueprint may be restored. |
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.
I don't follow this. Why do we need to explicitly engage the heuristics to restore the default blueprint? Is the heuristic bools not part of the actual blueprint? If not, why aren't they reset automatically when there is no blueprint (i.e. after a reset)?
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.
Bad wording on my end, I meant to imply that the default blueprint (if any) is left alone, so the user may restore it later on. I've rewritten entirely that (and other) comment to clarify this.
if ui | ||
.add_enabled( | ||
enabled, | ||
egui::Button::image_and_text(&re_ui::icons::RESET, "Reset to heuristic blueprint"), |
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.
I wonder if we can come up with better copy here. "Create automatic blueprint"? Maybe @gavrelina has ideas
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.
We discussed that and decided to stick with "heuristics" for now.
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
I tried to further cleaned that up. We should never use "generated". We agree to keep "heuristics" for user-facing stuff. We still have |
Related
CustomContent
more useful #8645What
In preparation for adding the filter UI in the blueprint panel, we must move the current actions (add view/container, reset blueprint) to a "more" (
…
) icon menu. This in turn allows us to be explicit with the reset actions, and have both "reset to default" and "reset to heuristics" (like in the application's selection panel).In turn, this exposes the weird behaviour where resetting to heuristics also deletes the current blueprint, for no reason other than it made implementation easier. This PR fixes that. So it's not possible to reset to heuristics and then go back to the default blueprint.
Also:
new-blueprint-panel-more-menu.mp4