Skip to content

Commit 07de4b2

Browse files
ATrefzerclaude
andauthored
Fix documentation errors and UI inconsistencies (#70)
* Fix documentation errors and UI inconsistencies - README: remove duplicate [TOC], fix double 'online', remove duplicate Performance Tips section, rename 'AI Advise' -> 'AI Advisor' throughout - Strings.resx: fix 'CExport' typo, 'Copy to image' -> 'Copy image', rename AiAdvise_Label to 'AI Advisor'; add Export_Label and Helpers_Header - MainWindow.xaml: replace hardcoded 'Tools', 'Helpers', 'Export' strings with resource bindings; fix comment typo; remove unused RowDefinitions - SettingsDialog.xaml: fix Height (400) < MinHeight (430) contradiction - InfoPanel.xaml: add resources namespace, use Strings.Locations_Label instead of hardcoded 'Locations' string - TreeControl.xaml: fix 'TreeVie' typo in comment https://claude.ai/code/session_011QMVhyH8xEWBZqhHMqk4yk * Update designer --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 56b5fd5 commit 07de4b2

7 files changed

Lines changed: 41 additions & 26 deletions

File tree

CSharpCodeAnalyst/Configuration/SettingsDialog.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:resources="clr-namespace:CSharpCodeAnalyst.Resources"
5-
Title="Settings" Height="400" Width="500"
5+
Title="Settings" Height="450" Width="500"
66
SizeToContent="WidthAndHeight"
77
MinWidth="400"
88
MinHeight="430"

CSharpCodeAnalyst/Features/Info/InfoPanel.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:converters="clr-namespace:CSharpCodeAnalyst.Shared.Converters"
77
xmlns:info="clr-namespace:CSharpCodeAnalyst.Features.Info"
8+
xmlns:resources="clr-namespace:CSharpCodeAnalyst.Resources"
89
mc:Ignorable="d"
910
d:DataContext="{d:DesignInstance info:InfoPanelViewModel}"
1011
d:DesignHeight="450" d:DesignWidth="300">
@@ -60,7 +61,7 @@
6061
<!-- Another list for the source code -->
6162
<StackPanel Orientation="Vertical"
6263
Visibility="{Binding SourceLocations.Count, Converter={StaticResource NumberToVisibilityConverter}}">
63-
<TextBlock Text="Locations" FontWeight="Bold" Margin="0 10 0 0" />
64+
<TextBlock Text="{x:Static resources:Strings.Locations_Label}" FontWeight="Bold" Margin="0 10 0 0" />
6465
<ItemsControl ItemsSource="{Binding SourceLocations}"
6566
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
6667
ScrollViewer.VerticalScrollBarVisibility="Disabled"

CSharpCodeAnalyst/Features/Tree/TreeControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
Margin="5"
6666
dd:DragDrop.IsDragSource="True">
6767

68-
<!-- Note: The TreeVie SelectedItem is not a DependencyProperty, so we need to use
68+
<!-- Note: The TreeView SelectedItem is not a DependencyProperty, so we need to use
6969
an Interaction Trigger to bind it to the ViewModel -->
7070
<b:Interaction.Triggers>
7171
<b:EventTrigger EventName="SelectedItemChanged">

CSharpCodeAnalyst/MainWindow.xaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
</RibbonGroup>
109109

110-
<RibbonGroup Header="Tools" LargeImageSource="/Resources/cycle_32.png">
110+
<RibbonGroup Header="{x:Static resources:Strings.Tools_Header}" LargeImageSource="/Resources/cycle_32.png">
111111
<RibbonButton Label="{x:Static resources:Strings.Find_Cycles_Label}"
112112
LargeImageSource="/Resources/cycle_32.png"
113113
Command="{Binding FindCyclesCommand}" KeyTip="CY" />
@@ -167,7 +167,7 @@
167167
</RibbonButton>
168168

169169

170-
<RibbonSplitButton Label="Export"
170+
<RibbonSplitButton Label="{x:Static resources:Strings.Export_Label}"
171171
LargeImageSource="/Resources/document-xml_32.png"
172172
Command="{Binding ExportToDgmlCommand}" KeyTip="EX">
173173

@@ -246,10 +246,6 @@
246246
<Grid.RowDefinitions>
247247
<RowDefinition Height="Auto" />
248248
<RowDefinition Height="Auto" />
249-
<RowDefinition Height="Auto" />
250-
<RowDefinition Height="Auto" />
251-
252-
<RowDefinition Height="Auto" />
253249
</Grid.RowDefinitions>
254250

255251
<RibbonToggleButton HorizontalAlignment="Left"
@@ -308,7 +304,7 @@
308304
</RibbonGroup>
309305

310306
<!-- Helpers Ribbon Group -->
311-
<RibbonGroup Header="Helpers"
307+
<RibbonGroup Header="{x:Static resources:Strings.Helpers_Header}"
312308
LargeImageSource="/Resources/snapshot_32.png">
313309
<RibbonButton Label="{x:Static resources:Strings.Snapshot}"
314310
LargeImageSource="/Resources/snapshot_32.png"
@@ -382,7 +378,7 @@
382378
</TabControl>
383379
</Expander>
384380

385-
<!-- If the expander is collapse we don't show the splitter-->
381+
<!-- If the expander is collapsed we don't show the splitter-->
386382
<GridSplitter Grid.Column="1"
387383
Width="5"
388384
HorizontalAlignment="Center"

CSharpCodeAnalyst/Resources/Strings.Designer.cs

Lines changed: 21 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CSharpCodeAnalyst/Resources/Strings.resx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ Search with resharper style = Use at least one uppercase character in a search t
680680
</data>
681681

682682
<data name="Copy_BitmapClipboard_Label" xml:space="preserve">
683-
<value>Copy to image to clipboard</value>
683+
<value>Copy image to clipboard</value>
684684
</data>
685685
<data name="Copy_BitmapClipboard_Tooltip" xml:space="preserve">
686686
<value>Copy current Code Explorer graph as image to clipboard.</value>
@@ -689,7 +689,7 @@ Search with resharper style = Use at least one uppercase character in a search t
689689
<value>Export plain text ...</value>
690690
</data>
691691
<data name="ExportPlainText_Tooltip" xml:space="preserve">
692-
<value>CExport Code Explorer (expanded) graph to plain text.</value>
692+
<value>Export Code Explorer (expanded) graph to plain text.</value>
693693
</data>
694694
<data name="ExportSvg_Tooltip" xml:space="preserve">
695695
<value>Export Code Explorer (expanded) graph to SVG. NOTE: Sub-graphs are not implemented!</value>
@@ -892,6 +892,12 @@ ISOLATE: MyApp.Domain.**</value>
892892
</data>
893893
<data name="Import_Label" xml:space="preserve">
894894
<value>Import</value>
895+
</data>
896+
<data name="Export_Label" xml:space="preserve">
897+
<value>Export</value>
898+
</data>
899+
<data name="Helpers_Header" xml:space="preserve">
900+
<value>Helpers</value>
895901
</data>
896902
<data name="Settings_Header_Tooltip" xml:space="preserve">
897903
<value>Open application settings dialog</value>
@@ -1007,7 +1013,7 @@ ISOLATE: MyApp.Domain.**</value>
10071013
<value>Your API key. It is encrypted with Windows DPAPI and stored locally — only the current Windows user can read it.</value>
10081014
</data>
10091015
<data name="AiAdvise_Label" xml:space="preserve">
1010-
<value>AI Advise</value>
1016+
<value>AI Advisor</value>
10111017
</data>
10121018
<data name="AiAdvise_Tooltip" xml:space="preserve">
10131019
<value>Ask AI for suggestions on how to resolve the cycle in the current graph</value>

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# C# Code Analyst
22

3-
[TOC]
4-
53
This application helps you to explore, understand, and maintain C# code.
64

75
Here is a [presentation on YouTube](https://www.youtube.com/watch?v=o_r1CdQy0tY) on using the application to analyze cyclic dependencies.
@@ -81,9 +79,9 @@ Remember, the goal isn't to eliminate every cycle but to be aware of your code's
8179

8280
**In general, it's a good guideline to keep your software system free of cycles at the namespace level.**
8381

84-
### AI Advise
82+
### AI Advisor
8583

86-
Once you have loaded a cycle group into the Code Explorer, the **AI Advise** button in the toolbar sends the cycle to a configured LLM and asks it for ideas on how to resolve or break down the dependency cycle.
84+
Once you have loaded a cycle group into the Code Explorer, the **AI Advisor** button in the toolbar sends the cycle to a configured LLM and asks it for ideas on how to resolve or break down the dependency cycle.
8785

8886
To use this feature, open **Settings** and enter your API endpoint and key. The tool supports any OpenAI-compatible endpoint, including local models (e.g. Ollama) and Anthropic's API.
8987

@@ -188,16 +186,12 @@ Select "Copy to PlantUml class diagram" from the Export menu.
188186

189187

190188

191-
The PlantUml syntax is copied to the clipboard. You can use any online online editor to render it.
189+
The PlantUml syntax is copied to the clipboard. You can use any online editor to render it.
192190

193191

194192

195193
![](Documentation/Images/example-uml.png)
196194

197-
## Performance Tips
198-
199-
When the graph contains more than ~200 code elements, performance slows down. However, viewing so many elements at once is not helpful. You can collapse and expand container elements by double-clicking them to minimize the number of visible elements. When using the Advanced Search to add multiple code elements, consider adding them in a collapsed state to maintain focus and start with a smaller, faster graph.
200-
201195
## Other languages
202196

203197
The tool is written for C#, but you can also import jdeps output for basic visualization of Java code.

0 commit comments

Comments
 (0)