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

Share and Copy As consolidation #157722

Closed
kieferrm opened this issue Aug 10, 2022 · 10 comments
Closed

Share and Copy As consolidation #157722

kieferrm opened this issue Aug 10, 2022 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded

Comments

@kieferrm
Copy link
Member

Version: 1.71.0-insider
Commit: bcb31b9
Date: 2022-08-09T17:04:54.174Z
Electron: 19.0.11
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: Yes

As well as 1.70 stable.

The current state:

  1. Share is only available in the File Menu.

image

  1. Copying file URLs for GH is available in the edit menu under Copy As...

image

  1. The explorer context menu inlines the Copy file URLS for GH actions, but doesn't have Share.

image

  1. The editor context menu has "Share" and "Copy As" submenus.

image

I think there is need for consolidation here:

  1. The explorer and the editor context menu should be aligned on "Share" and "Copy As"
  2. In both context menus "Share" share should take the place of "Copy As". I personally don't see any good reason to have both and "Share" is closer to the goal users pursue.
  3. The consolidated "Share" should be in the File or Edit menu (but not in both).
@kieferrm kieferrm assigned lramos15, kieferrm and alexr00 and unassigned kieferrm Aug 10, 2022
@chrisdias
Copy link
Member

chrisdias commented Aug 10, 2022

In a nutshell, the Share menu should look like this?

Share >
  Copy vscode.dev link
  Copy GitHub Permalink
  Copy GitHub Permalink as Markdown
  Copy GitHub Head Link

Should we have Copy GitHub Head Link as Markdown as well? How often are these used?

I think it would be great to also include the Publish to GitHub command here as well if not backed by a GitHub repo already.

@alexr00
Copy link
Member

alexr00 commented Aug 10, 2022

Maybe we should just rename the "Copy As" menu to "Share" if we don't want to have both?

@alexr00 alexr00 added the under-discussion Issue is under discussion for relevance, priority, approach label Aug 10, 2022
@alexr00 alexr00 added this to the September 2022 milestone Aug 10, 2022
@kieferrm
Copy link
Member Author

Maybe we should just rename the "Copy As" menu to "Share" if we don't want to have both?

💯% yes. That's the proposal.

@kieferrm
Copy link
Member Author

And when I use GH Remote Repositories on desktop I don't have "Share" at all, and I don't have any way to easily get the corresponding vscode.dev url for the file I look at. @joyceerhl

@alexr00
Copy link
Member

alexr00 commented Aug 11, 2022

We currently rely on the built in git extension to understand whether there are repositories. We have a couple options if we want to support share where we don't have information from the git extension:

  • Have extension API that abstracts away where the repositories come from. This is how GitHub Pull Requests and Issues works. If we go this route, maybe we remove all that abstraction away from GHPRI and put it the built in GitHub extension. Then GHPRI can take a dependency on the GitHub extension.
  • Or, Remote Hub can contribute the Copy vscode.dev Link command.

The first option sounds like a good longer term goal.

@joyceerhl
Copy link
Contributor

RemoteHub can contribute the Copy vscode.dev Link command in the short term to align the web and desktop experiences. @alexr00 I will submit PRs for that (requires proposed API access).

@alexr00
Copy link
Member

alexr00 commented Sep 1, 2022

After some further discussion, we won't do the GHPRI/GitHub/git refactor at this time as the payoff doesn't seem worth it. That's now tracked here: #159763

I will still work on the consolidation of the menus in September.

@alexr00
Copy link
Member

alexr00 commented Sep 21, 2022

Not all the extensions that currently contribute to the "Copy As" menu aren't really contributing "Share" commands. Here's what the "Copy As" menu looks like with Gitlens installed:

image

"Copy SHA" and "Copy Message" aren't related to sharing. Arguably, the "Copy GitHub Permalink as Markdown" command is also not "Share". I think we still need the "Copy As" menu.

I'll move all the "Copy GitHub" commands into the "Share" menu though.

@alexr00
Copy link
Member

alexr00 commented Sep 21, 2022

Share menu with these changes:

image

Which, with the extensions I have installed, leaves me with this in the Copy As menu:

image

alexr00 added a commit that referenced this issue Sep 21, 2022
alexr00 added a commit to microsoft/vscode-pull-request-github that referenced this issue Sep 21, 2022
and clean up API proposals
Part of microsoft/vscode#157722
alexr00 added a commit to microsoft/vscode-pull-request-github that referenced this issue Sep 21, 2022
@alexr00 alexr00 added the bug Issue identified by VS Code Team member as probable bug label Sep 21, 2022
@alexr00
Copy link
Member

alexr00 commented Sep 22, 2022

Summarizing some team discussion:

  • "Copy As" makes more sense since all the commands are copy commands.
  • "Share" sounds like something that should have more than just "Copy" commands.
  • Most of the team feels that "Share" is not needed if we have "Copy As".
  • On the other hand, some folks didn't think to look for the permalink commands under "Copy As" because they sound more like "Share" commands.

Our goal with introducing the "Share" entry point was to make it easy for users to find the "Copy vscode.dev Link" command. But I still don't think that we should simply rename the whole "Copy As" menu to "Share". I'm inclined to keep the changes in #157722 (comment), but only if we're confident that we won't change them again next iteration.

alexr00 added a commit to microsoft/vscode-pull-request-github that referenced this issue Sep 23, 2022
alexr00 added a commit to microsoft/vscode-pull-request-github that referenced this issue Sep 23, 2022
@alexr00 alexr00 removed the under-discussion Issue is under discussion for relevance, priority, approach label Sep 26, 2022
@alexr00 alexr00 closed this as completed Sep 26, 2022
@mjbvz mjbvz added the verified Verification succeeded label Sep 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants