Skip to content

Commit a3f13f1

Browse files
committed
Added a button in the first wizard page for reporting bugs in github project issues.
1 parent cbaaaca commit a3f13f1

8 files changed

+37
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
These are the changes to each version that has been released on the official [Visual Studio extension gallery](https://marketplace.visualstudio.com/items?itemName=unchase.UnchaseOpenAPIConnectedService).
99

10+
## v1.2.4 `(2019-04-30)`
11+
12+
- [x] Added a button in the first wizard page for reporting bugs in github project [issues](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/issues)
13+
1014
## v1.2.1 `(2019-04-22)`
1115

1216
- [x] Updated dependencies: added support for [NSwag.Commands v12.2.0](https://www.nuget.org/packages/NSwag.Commands/)

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55

66
> The project is developed and maintained by [Nikolay Chebotov (**Unchase**)](https://github.com/unchase).
77
8+
## Getting Started
9+
10+
Install from `Tools -> Extensions and Updates` menu inside [Visual Studio](https://visualstudio.microsoft.com/vs/) (including 2019) or [download](http://vsixgallery.com/extensions/Unchase.OpenAPI.ConnectedService.63199638-6211-4285-ba8f-75b1f0326c2a/extension.vsix) as `VSIX` package from VSGallery or [download](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService) as `VSIX` package from Visual Studio Marketplace:
11+
12+
![Adding Unchase OpenAPI (Swagger) Connected Service in Visual Studio](img/Unchase-OpenAPI-Swagger-Connected-Service.gif)
13+
814
## Builds status
915

1016
|Status|Value|
1117
|:----|:---:|
1218
|Build|[![Build status](https://ci.appveyor.com/api/projects/status/90oewanfh32fjcr6)](https://ci.appveyor.com/project/unchase/unchase.openapi.connectedservice)
19+
|Buid History|![Build history](https://buildstats.info/appveyor/chart/unchase/unchase-openapi-connectedservice)
1320
|GitHub Release|[![GitHub release](https://img.shields.io/github/release/unchase/Unchase.OpenAPI.Connectedservice.svg)](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/releases/latest)
1421
|GitHub Release Date|[![GitHub Release Date](https://img.shields.io/github/release-date/unchase/Unchase.OpenAPI.Connectedservice.svg)](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/releases/latest)
1522
|GitHub Release Downloads|[![Github Releases](https://img.shields.io/github/downloads/unchase/Unchase.OpenAPI.Connectedservice/total.svg)](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/releases/latest)
@@ -41,12 +48,6 @@
4148
- **Command** to compare `.nswag.json` specification file with another `.nswag.json` specification file (or specification given by `endpoint`)
4249
- Storage of the last 10 endpoints (json-specification path)
4350

44-
## Getting Started
45-
46-
Install from `Tools -> Extensions and Updates` menu inside [Visual Studio](https://visualstudio.microsoft.com/vs/) (including 2019) or [download](http://vsixgallery.com/extensions/Unchase.OpenAPI.ConnectedService.63199638-6211-4285-ba8f-75b1f0326c2a/extension.vsix) as `VSIX` package from VSGallery or [download](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService) as `VSIX` package from Visual Studio Marketplace:
47-
48-
![Adding Unchase OpenAPI (Swagger) Connected Service in Visual Studio](img/Unchase-OpenAPI-Swagger-Connected-Service.gif)
49-
5051
## Settings Meaning
5152

5253
Meaning of the Unchase [OpenAPI (Swagger) Connected Service](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService) settings according to [NSWagStudio](https://github.com/NSwag/NSwag/wiki/NSwagStudio):
@@ -130,7 +131,9 @@ See the [changelog](CHANGELOG.md) for the further development plans and version
130131

131132
## Feedback
132133

133-
Please feel free to add your [review](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService&ssr=false#review-details), [request a feature](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/issues/new?title=FEATURE), [report a bug](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/issues/new?title=BUG) or [ask a question](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService&ssr=false#qna). Thank you in advance!
134+
Please feel free to add your [review](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService&ssr=false#review-details), [request a feature](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/issues/new?title=FEATURE), [ask a question](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService&ssr=false#qna) or [report a bug](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/issues/new?title=BUG) including in connected service:
135+
![Unchase OpenAPI Connected Service Report a Bug](img/Unchase-OpenAPI-Connected-Service-ReportBug.png)
136+
Thank you in advance!
134137

135138
## Thank me!
136139

34.2 KB
Loading

src/Resources/NewBug.png

396 Bytes
Loading

src/Unchase.OpenAPI.ConnectedService.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@
650650
<IncludeInVSIX>true</IncludeInVSIX>
651651
</Content>
652652
<Content Include="Resources\favicon.ico" />
653+
<Resource Include="Resources\NewBug.png" />
653654
<Content Include="Unchase.OpenAPI.ConnectedService.sln" />
654655
<Resource Include="Resources\icon_32x32.png" />
655656
<Content Include="Resources\logo_128x128.png">

src/Unchase.OpenAPI.ConnectedService.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "img", "img", "{FEC756D6-331
2121
..\img\CompareOpenAPISpecificationsOneFileCommandMenu.png = ..\img\CompareOpenAPISpecificationsOneFileCommandMenu.png
2222
..\img\CompareOpenAPISpecificationsTwoFilesCommandMenu.png = ..\img\CompareOpenAPISpecificationsTwoFilesCommandMenu.png
2323
..\img\OpenWithNSwagCommandMenu.png = ..\img\OpenWithNSwagCommandMenu.png
24+
..\img\Unchase-OpenAPI-Connected-Service-ReportBug.png = ..\img\Unchase-OpenAPI-Connected-Service-ReportBug.png
2425
..\img\Unchase-OpenAPI-Swagger-Connected-Service-Logo.png = ..\img\Unchase-OpenAPI-Swagger-Connected-Service-Logo.png
2526
..\img\Unchase-OpenAPI-Swagger-Connected-Service-Settings-Meaning.png = ..\img\Unchase-OpenAPI-Swagger-Connected-Service-Settings-Meaning.png
2627
..\img\Unchase-OpenAPI-Swagger-Connected-Service.gif = ..\img\Unchase-OpenAPI-Swagger-Connected-Service.gif

src/Views/ConfigOpenApiEndpoint.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@
1313
<converters:VisibilityConverter x:Key="VisibilityConverter" />
1414
<converters:VisibilityToHyperlinkTextConverter x:Key="VisibilityToHyperlinkTextConverter"/>
1515
<commands:StackPanelChangeVisibilityCommand x:Key="StackPanelChangeVisibilityCommand"/>
16+
<Image x:Key="ReportABugButtonImage" Source="../Resources/NewBug.png"/>
1617
</UserControl.Resources>
1718
<StackPanel HorizontalAlignment="Stretch" Margin="0, 0, 0, 0" VerticalAlignment="Top">
19+
<DockPanel HorizontalAlignment="Right">
20+
<TextBlock Text="Report a bug :" Margin="5,8,5,5"/>
21+
<Button x:Name="ReportABugButton" HorizontalAlignment="Right" MaxHeight="23" MaxWidth="23" Width="23" Height="23" MinWidth="23" MinHeight="23" Margin="5,5,10,5" Click="ReportABugButton_Click">
22+
<Button.Background>
23+
<ImageBrush ImageSource="../Resources/NewBug.png" Stretch="UniformToFill"/>
24+
</Button.Background>
25+
</Button>
26+
</DockPanel>
1827
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Stretch" Margin="0, 10, 10, 5">
1928
<Bold>Runtime and variables</Bold> (<Hyperlink Name="RuntimeAndVariablesHyperlink" Command="{StaticResource StackPanelChangeVisibilityCommand}" CommandParameter="{Binding ElementName=RuntimeAndVariablesPanel}">
2029
<TextBlock TextWrapping="WrapWithOverflow" Name="RuntimeAndVariablesHyperlinkText" Text="{Binding ElementName=RuntimeAndVariablesPanel, Path=Visibility, Converter={StaticResource VisibilityToHyperlinkTextConverter}}"/></Hyperlink>)

src/Views/ConfigOpenApiEndpoint.xaml.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Windows;
1+
using System;
2+
using System.Windows;
23
using System.Windows.Controls;
34

45
namespace Unchase.OpenAPI.ConnectedService.Views
@@ -7,6 +8,8 @@ public partial class ConfigOpenApiEndpoint : UserControl
78
{
89
private readonly Wizard _wizard;
910

11+
private const string ReportABugUrlFormat = "https://github.com/unchase/Unchase.OpenAPI.Connectedservice/issues/new?title={0}&labels=bug&body={1}";
12+
1013
internal ConfigOpenApiEndpoint(Wizard wizard)
1114
{
1215
InitializeComponent();
@@ -44,5 +47,13 @@ private void GenerateTypeScriptClient_OnUnchecked(object sender, RoutedEventArgs
4447
this._wizard.RemoveTypeScriptClientSettingsPage();
4548
}
4649
#endregion
50+
51+
private void ReportABugButton_Click(object sender, RoutedEventArgs e)
52+
{
53+
var title = Uri.EscapeUriString("<BUG title>");
54+
var body = Uri.EscapeUriString("<Please describe what bug you found when using the service.>");
55+
var url = string.Format(ReportABugUrlFormat, title, body);
56+
System.Diagnostics.Process.Start(url);
57+
}
4758
}
4859
}

0 commit comments

Comments
 (0)