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

Always show welcome screen, but sometimes fade it in #5787

Merged
merged 7 commits into from Apr 5, 2024

Conversation

emilk
Copy link
Member

@emilk emilk commented Apr 4, 2024

What

It used to be that rerun --web-viewer didn't show the welcome screen, which is super annoying when testing.
It also feels very brittle to sometimes show it, and sometimes not, and to keep track if we've ever seen a recording, etc.
It also feel inconsistent with how the welcome screen is now just another app in the recordings panel.

So the new design is much simpler. We always show the welcome screen, but if we expect data to come streaming in at any moment, we delay the welcome screen for a a fraction of a second and then fade it in. This prevents the problem of a flashing welcome screen before showing actual user data.
This fade-in was proposed during the initial design of the welcome screen, but we never got to it.

This replaces --skip-welcome-screen with --fade-in-welcome-screen.

You can test it with pixi run rerun ----fade-in-welcome-screen

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!

@emilk emilk added 📺 re_viewer affects re_viewer itself include in changelog labels Apr 4, 2024
It used to be that `rerun --web-viewer` didn't show the welcome screen,
which is super annoying when testing.
It also feels very brittle to sometimes show it, and sometimes not,
and to keep track if we've ever seen a recording, etc.

SO: the new design is much simpler. We always show the welcome screen,
but if we expect data to come streaming in at any second we delay
it for a a fraction of a second and then fade it in.
This prevents the problem of a flashing welcome screen before showing
actual user data.
This fade-in was proposed during the initial design of the welcome
screen, but we never got to it.

This replaces `--skip-welcome-screen` with `--fade-in-welcome-screen`.

You can test it with `pixi run rerun ----fade-in-welcome-screen`
@emilk emilk force-pushed the emilk/always-show-welcome-screen branch from 7d5fa67 to 912f24f Compare April 4, 2024 14:27
crates/re_sdk/src/spawn.rs Outdated Show resolved Hide resolved
crates/re_viewer/src/app.rs Outdated Show resolved Hide resolved
crates/re_viewer/src/app.rs Outdated Show resolved Hide resolved
@emilk emilk merged commit 95b373c into main Apr 5, 2024
34 checks passed
@emilk emilk deleted the emilk/always-show-welcome-screen branch April 5, 2024 06:34
@emilk emilk changed the title Always show welcome screen, but fade it in some situations Always show welcome screen, but sometimes fade it in Apr 5, 2024
@emilk emilk added the ui concerns graphical user interface label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 📺 re_viewer affects re_viewer itself ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

just rerun-web should show the welcome screen
2 participants