-
Notifications
You must be signed in to change notification settings - Fork 461
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 copy to clipboard option for project/executable source columns #1332
Conversation
It was there to make it easier to visually differentiate the different pieces of information we were cramming into one column (executable vs args vs working directory). With the different types of data in a single column (both for one resource type, like here, and across different resource types) visual scanning was difficult. It's not strictly necessary, of course, but if we're going to remove it we should consider what else we can do to make the information more easily scannable. |
Right, the executable path + command seemed to me like two parts of the same information (what is being executed). Since working directory is now on a second line, do you still have that concern? @tlmii |
Working directory was on a second line when we originally crammed everything together (#987) - command and args were on one line (but differentiated by color), working directory was set off on the second line and labeled.
I agree that, at one level, executable + args are two parts of one concept (because of course together they form the full command). But from a "what am I looking for in the column?" perspective, a common thing is to look for just the executable name, and visually parsing that off the full command is easier when it is set off somehow. It's the same concept as how commands and args get colored differently in powershell for example: I'm not saying this visual scanning is the only important thing, nor that this is the only way to solve it. But it does follow a common pattern. Perhaps we can loop in @leslierichardson95 to get her take. |
Ah, apologies for the misunderstanding. We are able to keep the current behavior, it just requires a small change to |
I think it is a valuable conversation to have - there's more than one way to accomplish these goals and you never know what'll come out of the discussions! |
Alright, added the option to have a fragment after the value. back to the old view @tlmii |
@tlmii @JamesNK @drewnoakes for re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure about the ContentAfterValue
concept. But given how this component works, with the FluentHighlighter for the main value, if you did a normal fragment for the whole of Value's display, then you'd need to handle turning off highlighting, too, which just seems like too much. So at least for now I think this is a good compromise. We can always revisit if necessary.
Could this also be applied to containers? The button could copy the image name and tag, e.g. Right now it feels weird that some rows in a grid have a copy button in that column, and others don't. |
I think at some point we're going to have to pull these columns back apart somehow. Having multiple different pieces of info (both within a single resource type and across resource types) within a column leads us down these rabbit trails like this. Hopefully we get some good feedback on it. |
# Conflicts: # src/Aspire.Dashboard/Resources/ControlsStrings.resx # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.cs.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.de.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.es.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.fr.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.it.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.ja.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.ko.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.pl.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.pt-BR.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.ru.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.tr.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.zh-Hans.xlf # src/Aspire.Dashboard/Resources/xlf/ControlsStrings.zh-Hant.xlf
It looks like this now:
I also added this for executables, which removed the gray arg subtext so that the entire command appeared the same, as GridValue accepted only strings (I did not understand why there was subtext to begin with).
closes #1309
Microsoft Reviewers: Open in CodeFlow