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

Moving stripe samples to it's own menu #262

Merged
merged 5 commits into from
Jun 8, 2021

Conversation

ctrudeau-stripe
Copy link
Contributor

@ctrudeau-stripe ctrudeau-stripe commented Jun 8, 2021

Summary

  • Move the samples out into its own view. Panel should be: Events, Logs, Samples, Quick Links, Help and Feedback
  • Auto-collapse the quick links and help and feedback section.
  • Remove "Find code samples" from the help and feedback link. This belongs in the context of the Stripe Samples workflow.

Testing

Manually tested:

Screen Shot 2021-06-07 at 5 30 40 PM

Screen Shot 2021-06-07 at 5 30 36 PM

fixes #249
r? @vcheung-stripe

Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just had a comment about putting the stripe samples link in the context menu.

src/stripeHelpView.ts Show resolved Hide resolved
@ctrudeau-stripe
Copy link
Contributor Author

r? @vcheung-stripe

Comment on lines 17 to 22
const findSamplesItem = new StripeTreeItem('Find code samples', {
commandString: 'openSamples',
iconPath: new ThemeIcon('code'),
tooltip: 'Sample integrations built by Stripe',
});
items.push(findSamplesItem);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh apologies if I wasn't clear! The Find code samples link should be available when you right-click the Start with a Stripe Sample link. It involves

  • adding a contextValue to the samplesItem
  • registering stripe.openSamples in the package.json similar to how stripe.openDashboardEvent is registered.

stripe.openDashboardEvent should be a good example of how to do this!

Copy link

@Trudeaucj Trudeaucj Jun 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah had no idea this menu existed! I should right click more in VScode

@ctrudeau-stripe
Copy link
Contributor Author

Screen Shot 2021-06-08 at 11 42 09 AM

Switched to context menu. Thanks for the suggestion, I had no idea this existed!

r? @vcheung-stripe

Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ctrudeau-stripe ctrudeau-stripe merged commit c61e0f7 into master Jun 8, 2021
@ctrudeau-stripe ctrudeau-stripe deleted the ctrudeau-move-samples branch June 8, 2021 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stripe Panel Updates
3 participants