-
Notifications
You must be signed in to change notification settings - Fork 29
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
Improve UX for plots debugging #5087
Comments
Related or even can absorb #4333 . Can we be related to DVC not providing enough information. |
We have no control over the side menu tooltips design but we can alter the plots webview.
Possibly if we have errors that are plot-specific. But we wouldn't be able to show an "empty" plot as that would be difficult to render. We may be able to show a "placeholder" plot. May seem a bit noisy though.
This is doable but it adds a layer of complexity to the experiment selection code, so it's probably not worth implementing.
As discussed synchronously, we can improve error messaging in the plots webview since currently all we have is the |
Tested some designs ideas on updating the ribbon blocks, section titles, and adding plot placeholders. Plot RibbonsWe can update the icon into an error icon instead of an exclamation mark. We can also fill the text as red but that may get a bit noisy with a project wide error: Section TitleSimilar to ribbon blocks, we can adjust text and icons to show there are errors within the section. Hovering over would show a tooltip message with the error. Plot Error PlaceholdersUnlike the previous examples which are rather simple to create, I believe this would take some more time since we would need to change how our backend sends plots. What to ImplementI think we should
What does everyone else think? cc @shcheklein |
Thank you @julieg18! I really like your suggestions! 🔥 👍 |
As discussed in #5145, we're going to leave the ribbon as is and focus on adding error messaging in the plot section.
Here's an example of what Studio errors look like: I believe that Studio doesn't mention what commit the error came from, just plot name and error message. I'm assuming we want to show revision as well as plot name, but that does make errors more complicated. Here's one design idea on what our error message would look like (open to suggestions 😅): This error block would also have a collapsible option so the message doesn't get too long. What do we think? cc @shcheklein |
I like it! :) thanks, @julieg18 |
While working on this, I realized that it's not currently doable due to Discussed this issue with @sroy3, and we came up with a new idea that's similar to Studio's current design. We could add a banner to the ribbon, notifying the user of errors, and once clicked on, it would open up a popup for viewing errors: This idea is not section-specific so we can show it even if we don't know broken plot types and keeps the possibly lengthy errors from blocking the screen. What do we think? cc @shcheklein |
@julieg18 yes, that's totally fine to start with, thanks! |
#5165 is now merged, making errors more obvious for users. Since we are unable to detect what plot types broken plots are ( With improving documentation covered in #5057, I think we're good to close this issue for now. |
Thank you @julieg18 🤝 |
Why it's important?
I spent some time helping a few teams with plot debugging. I helped multiple teams debug their plots. When users manually configure plots in
dvc.yaml
, two types of errors are likely to appear:str
tonumerical
data type)In every case, both DVC/DVCLive are "silent". We discussed here iterative/dvclive#750 and plan to improve.
Eventually, users open VSCode extension and don't see plots at all! This issue aims to find a better way to notify users about problems with plots and metrics visualization in VSCode.
AS IS
(I don't consider VSCode extension logs, because they are not appropriate for end users)
1. Error messages on hovering top-level tiles
At this moment we provide little means for understanding the error and debugging. As an example, out internal discussion in Slack
It seems that the best means we have now is error messages in tiles with branch/exp name:
However
!
sign!
- but onlycopy
icon. Is it expected?2. Error messages on hovering side menu
DISCUSSION
dvc.yaml
and show an error message on it?The text was updated successfully, but these errors were encountered: