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

Add a new CLI option / spawn options to hide the welcome screen #6262

Merged
merged 7 commits into from
May 10, 2024

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented May 7, 2024

What

We still need to also tackle #6263 since the place-holder UI isn't great.
image

Details

Handling this via blueprint is awkward since the welcome screen presentation happens without respect to any given blueprint, or in cases when all the recordings and their blueprints have been closed.

I decided adding this as a spawn option makes the most sense, since this is the context where someone knows how they are embedding Rerun in another application.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@jleibs jleibs added include in changelog 🪵 Log-API Affects the user-facing API for all languages 📺 re_viewer affects re_viewer itself labels May 7, 2024
@Wumpf Wumpf self-requested a review May 8, 2024 14:37
Copy link
Contributor

@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.

Nice. Looks straightforward to me.

@@ -4,6 +4,10 @@ mod welcome_section;
use example_section::{ExampleSection, MIN_COLUMN_WIDTH};
use welcome_section::welcome_section_ui;

use crate::app_state::WelcomeScreenState;

use super::no_data_ui;
Copy link
Contributor

Choose a reason for hiding this comment

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

For reason that will become apparent in my UI fixup pr, I think no_data_ui is better moved insde welcome_screen. I'll do that in that PR.

@abey79
Copy link
Contributor

abey79 commented May 10, 2024

Would it make sense to add a GET arg for rerun.io/viewer?

@jleibs jleibs merged commit 7c767ab into main May 10, 2024
39 of 40 checks passed
@jleibs jleibs deleted the jleibs/disable_welcome_screen branch May 10, 2024 14:45
abey79 added a commit that referenced this pull request May 10, 2024
### What

Follow-up of #6262 to improve the default UI when the welcome screen is
disabled and no recordings are loaded.

- Fixes #6263

<img width="1522" alt="image"
src="https://github.com/rerun-io/rerun/assets/49431240/ce7355e3-2aad-4171-9187-cda18df8aeaa">

### 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/6287?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/6287?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/6287)
- [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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 🪵 Log-API Affects the user-facing API for all languages 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants