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

"Save blueprint" UI and a bit confusing in web / dark mode #5884

Open
ralfbiedert opened this issue Apr 9, 2024 · 2 comments
Open

"Save blueprint" UI and a bit confusing in web / dark mode #5884

ralfbiedert opened this issue Apr 9, 2024 · 2 comments
Labels
😤 annoying Something in the UI / SDK is annoying to use 🕸️ web regarding running the viewer in a browser

Comments

@ralfbiedert
Copy link

Describe the annoyance

Minor nit: I just tried 0.15 in my browser (FF 124, dark UI) and was playing with blueprints. At first I tried to open a recording, and the UI looks like so:

open

So my mind is being conditioned like clearly the interactable UI elements are "dark buttons", and that works as expected. A little later I then tried to save a blueprint where the UI looks like this:

blueprint

My intuitive reaction was to click "Ok", and I was a bit surprised when the dialog just disappeared. At first I assumed it already downloaded the file without me noticing, but it turns out I had to literally click into the gray text.

The same issue is also present in the "Save recording ..." dialog.

Suggestion

I think the clearest and most efficient way (in terms of intent and click count) would be having 2 buttons, one that downloads and closes the modal, and the other one that just closes the modal (e.g., named "Download" or "Save", and "Cancel"). That would also be consistent with how the (native Windows) desktop dialog is labeled:

Screenshot_1

Desktop (please complete the following information):

  • OS: Browser, Firefox 124.0.2 on Windows 11, Dark Mode
@ralfbiedert ralfbiedert added 👀 needs triage This issue needs to be triaged by the Rerun team 😤 annoying Something in the UI / SDK is annoying to use labels Apr 9, 2024
@emilk emilk added 🕸️ web regarding running the viewer in a browser and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Apr 10, 2024
@emilk
Copy link
Member

emilk commented Apr 10, 2024

Thanks for the issue!

This dialog is created by rfd. We should consider replacing it with our own Rerun-themed dialog, or make a PR to rfd to improve theirs (e.g. to make it CSS stylable).

However, there is a second problem I'd like to fix with this dialog: it requires too many clicks. The "click here to download your file" dialog should be unnecessary. I believe its only there because some browsers only allow you to download files as a response to a user action (a click), and rfd is made to work also if a background process spawns the file dialog. But, we should be able to fix that since we only spawn the dialog on clicks (or keyboard shortcuts), though this might require some small changes to eframe (to call update on each click, not just on requestAnimationFrame).

@abey79
Copy link
Member

abey79 commented Apr 10, 2024

Regarding CSS styling of rfd overlay, it seems that it uses fairly well defined ids:

image

However, it does emit corresponding inline CSS in a <style> tag. It would be nice to have an option for rfd to skip that, but I believe we could readily override this in our external CSS by using !important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😤 annoying Something in the UI / SDK is annoying to use 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

No branches or pull requests

3 participants