vscode-didact icon indicating copy to clipboard operation
vscode-didact copied to clipboard

Disable notifications after commands

Open gorkem opened this issue 5 years ago • 12 comments

Didact sends a notification after each command executed on the tutorial like the following. These notifications should be optional and disabled by default unless the command has the completion defined explicitly.

Didact just executed vscode.didact.sendNamedTerminalAString with arguments oc-terminal,oc whoami

gorkem avatar Jan 25 '20 23:01 gorkem

These are the notifications displayed in vscode as popups in the lower right corner? Or the notifications we show in the Didact activity output channel?

bfitzpat avatar Jan 30 '20 17:01 bfitzpat

These are the lower right corner toast notifications.

gorkem avatar Jan 30 '20 19:01 gorkem

You think there should be no default notification except in the case where completion text has been specified? I wanted to avoid the phantom click syndrome as much as possible where the user had no idea that changes had been made at all.

In fact, Hiram brought up the issue I documented in https://github.com/redhat-developer/vscode-didact/issues/31 -- so I'm wondering if we need more feedback to the user, not less??

I do agree that maybe there should be an option to turn them off. A preference probably.

bfitzpat avatar Jan 30 '20 19:01 bfitzpat

I am not sure how a toast notification helps with #31. It actually draws attention away from terminal. Can we enhance the stylesheet so that we get more feedback on clicks and perhaps links are more button like?

gorkem avatar Jan 30 '20 20:01 gorkem

Would love to enhance the stylesheet. Definitely open to suggestions on how to pull that off.

bfitzpat avatar Jan 30 '20 21:01 bfitzpat

I think we should add double support:

  • a global configuration flag that overrides everything, defaulting to off
  • an optional param for each command

and apply a logical OR between the two values to decide when to display

paoloantinori avatar Feb 03 '20 16:02 paoloantinori

This PR -- https://github.com/redhat-developer/vscode-didact/pull/48

Right now with this PR, the behavior is:

  • Don't show all generic completion toast messages. These were generated for every command clicked in the Didact file, regardless of whether a completion message was specified. You can turn this off and see them again if you so desire.
  • If a link has a completion message specified, it will get shown.

I don't think we want to turn off ALL toast completion messages, but I agree that the signal to noise is more noise than we need with all the default messages popping up and polluting the list.

bfitzpat avatar Feb 05 '20 19:02 bfitzpat

Will show up in the next release (already committed on master)

bfitzpat avatar Feb 10 '20 13:02 bfitzpat

@gorkem I'm interested in the sorts of stylesheet animations we could provide for Didact links to make them more visible to the user. I was able pretty quickly to add some CSS to make these buttons get the little animation edge.

Peek 2020-12-08 14-17

Do you have any suggestions on animated links that you have seen elsewhere that might do what we're needing?

bfitzpat avatar Dec 08 '20 21:12 bfitzpat

Maybe something like this: https://codepen.io/Antariano/pen/vNeJrN

Peek 2020-12-08 14-57

bfitzpat avatar Dec 08 '20 21:12 bfitzpat

Here are a couple of examples of how it might work in light and dark themes Peek 2020-12-09 11-02 Peek 2020-12-09 11-03

bfitzpat avatar Dec 09 '20 18:12 bfitzpat

supporting link styles while switching VS Code themes is challenging, however I think it's worth doing... These styles help users distinguish between url links and didact links, so +1

pwright avatar Dec 10 '20 19:12 pwright