Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fc6f161
Feature: Dashboard: Latency statistics for the internet latency widge…
BornToBeRoot Nov 27, 2026
bfb82c3
Feature: Dashboard: Settings and strings of the internet latency widg…
BornToBeRoot Nov 27, 2026
bc2a937
Feature: Dashboard: Internet latency widget (L3)
BornToBeRoot Nov 27, 2026
c5b1a84
Feature: Dashboard: Internet latency widget below the network connect…
BornToBeRoot Nov 27, 2026
389841d
Feature: Dashboard: Internet latency settings (L5)
BornToBeRoot Nov 27, 2026
e435d93
Docs: Dashboard: Internet latency widget and its settings (L6)
BornToBeRoot Nov 27, 2026
098d625
Fix: Dashboard: Internet latency context menu opens the clicked targe…
BornToBeRoot Nov 27, 2026
53b14d8
Feature: Dashboard: Internet latency targets on one line, one below t…
BornToBeRoot Nov 27, 2026
5b47e08
Feature: Dashboard: Internet latency next to the speed test or in its…
BornToBeRoot Nov 27, 2026
48a7203
Feature: Dashboard: IP geolocation and DNS resolver one below the oth…
BornToBeRoot Nov 27, 2026
f4757db
Feature: Dashboard: Side by side per row from the width the widgets n…
BornToBeRoot Nov 27, 2026
8cf348c
Fix: Dashboard: Internet latency next to the speed test always shows …
BornToBeRoot Nov 27, 2026
7e19cb6
Fix: Dashboard: Internet latency rows with the spacing and value styl…
BornToBeRoot Nov 27, 2026
c0c159e
Fix: Dashboard: Widgets not checked again when the window is maximize…
BornToBeRoot Nov 27, 2026
8255588
Feature: Dashboard: Internet latency keeps the last minute across pau…
BornToBeRoot Nov 27, 2026
5d27e1f
Fix: Dashboard: Internet latency resolves a host name again after an …
BornToBeRoot Nov 27, 2026
f01c6f2
Fix: Dashboard: Internet latency interval limited to 1-10 s, a failed…
BornToBeRoot Nov 27, 2026
607e476
Fix: Dashboard: Widgets not checked while the window shown from the t…
BornToBeRoot Nov 27, 2026
4a9fe07
Docs: AGENTS.md: Dashboard widgets (look, show / enable, checks, size…
BornToBeRoot Nov 27, 2026
6e7687f
Fix: Dashboard: Internet latency time window in UTC (O1)
BornToBeRoot Nov 27, 2026
3fe07cc
Fix: Dashboard: Internet latency name lookup errors shown and retried…
BornToBeRoot Nov 27, 2026
f09a10c
Fix: Dashboard: Comment of the speed test / internet latency row (O5)
BornToBeRoot Nov 27, 2026
fdda9fc
Fix: Dashboard: Internet latency Copy all rounds like the tooltip (O7)
BornToBeRoot Nov 27, 2026
a6ad1dd
Docs: Dashboard: Internet latency host names resolved on every start,…
BornToBeRoot Nov 27, 2026
9e787ec
Refactor: Dashboard: Internet latency widget renamed to Latency (R1)
BornToBeRoot Nov 27, 2026
9dd179a
Feature: Dashboard: Latency name lookup retried after 5, 15, 30 s, th…
BornToBeRoot Nov 27, 2026
cf44f32
Feature: Dashboard: Latency targets as a list with the default gatewa…
BornToBeRoot Nov 27, 2026
f1126f6
Fix: Dashboard: Latency lookup error of a stopped run no longer overw…
BornToBeRoot Nov 27, 2026
5aa5b50
Fix: Dashboard: Latency gateway target opens / copies a sample IP add…
BornToBeRoot Nov 27, 2026
3278a6d
Fix: Dashboard: Latency edited target that is no longer in the list i…
BornToBeRoot Nov 27, 2026
afb4111
Docs: Dashboard: Latency widget view model XML comments fixed (CR4)
BornToBeRoot Nov 27, 2026
5feff4d
Refactor: Dashboard: Latency settings and docs after the speed test (…
BornToBeRoot Nov 27, 2026
4e93a01
Feature: Dashboard: Latency default gateway as own setting, up to 5 t…
BornToBeRoot Nov 27, 2026
d06810f
Fix: Dashboard: Latency delete confirmation shows the target (CR6)
BornToBeRoot Nov 27, 2026
ad7998b
Feature: Dashboard: Latency Add button shows why it is disabled at th…
BornToBeRoot Nov 27, 2026
e02cb59
Feature: Dashboard: Latency check in the welcome dialog (R6)
BornToBeRoot Nov 27, 2026
e8fd998
Feature: Dashboard: Latency shows "<1 ms" for a reply below 1 ms (R7)
BornToBeRoot Nov 27, 2026
c0320cc
Feature: Dashboard: Latency screenshot data with a realistic gateway …
BornToBeRoot Nov 27, 2026
cd90472
Fix: Dashboard: Latency lookup error doesn't show the statistics of a…
BornToBeRoot Nov 27, 2026
d7e425e
Fix: Dashboard: Latency unexpected error of a target is logged (CR8)
BornToBeRoot Nov 27, 2026
9c9a1a6
Docs: Dashboard: Latency when the pings and name lookups start (CR9)
BornToBeRoot Nov 27, 2026
93d00e7
Refactor: Welcome dialog 700 instead of 650 wide (R9)
BornToBeRoot Nov 27, 2026
8f0c550
Refactor: Welcome and upgrade dialog up to 750 wide, 85 % of the wind…
BornToBeRoot Nov 27, 2026
b681fc6
Update next-release.md
BornToBeRoot Nov 27, 2026
c7bc62a
Fix: Dashboard: IP geolocation and DNS resolver side by side from the…
BornToBeRoot Nov 28, 2026
e75c2ea
Feature: Dashboard: Ping of the public IP address can be disabled (R12)
BornToBeRoot Nov 28, 2026
db6539d
Docs: Dashboard: Privacy help texts consistent in the welcome dialog …
BornToBeRoot Nov 28, 2026
62762e5
Docs: Welcome dialog: Privacy note refers to NETworkManager instead o…
BornToBeRoot Nov 28, 2026
503600c
Feature: Dashboard: Check public IP address disabled by default (R15)
BornToBeRoot Nov 28, 2026
bf0efd6
Docs: Status: Note that the status window uses the network connection…
BornToBeRoot Nov 28, 2026
6bf3d2a
Fix: Dashboard: Latency Copy all doesn't repeat the host of a target …
BornToBeRoot Nov 28, 2026
b0b6ade
Update dashboard.png
BornToBeRoot Nov 28, 2026
ab22305
Docs: Update
BornToBeRoot Nov 28, 2026
3ad9aed
Update dashboard.md
BornToBeRoot Nov 28, 2026
52e5dc8
Update next-release.md
BornToBeRoot Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,64 @@ WebView2) can't be animated, clipped or put in transparent windows.
suggestions); not for results that are appended while a scan runs (those are buffered and flushed by a timer, see
`IPScannerViewModel`).

### Dashboard widgets

The dashboard (`Views/DashboardView.xaml(.cs)`) hosts the widgets: network connection, latency, speed test,
IP geolocation, DNS resolver. Each widget is `<Name>WidgetView` + `<Name>WidgetViewModel` in a `CardBorder`.

**Look**: header with a 32 px Lucide icon + title (`MessageTextBlock`) and icon buttons on the right (Copy all, Refresh
for widgets that check once); content margin 10; rows 26 high with a gap of 5 (label normal, value bold, technical
values in `Fonts.Family.Mono`, states with `StatusDot`); values open in other tools via a context menu
(`NavigationManager.Open`) + Copy.

**Show / enable**:
- `Dashboard_Show<Name>Widget` shows / hides a widget (default shown). The view is created when it is shown the
first time (`ShowWidget`); a hidden widget doesn't check or send anything.
- Privacy defaults: a single connectivity ping per check is on by default (network connection: `Dashboard_PingPublicIPAddress`,
can be disabled). Anything that sends the IP address to a web service (ipify, ip-api.com) or runs continuously
(latency pings) is opt-in: `Dashboard_Check<Name>` off by default; while it is off the widget shows what it would
do and an **Enable** button that sets the setting (the network connection shows the pinged address instead).
A changed default only applies to new installations (saved settings keep their value).
- Settings > Dashboard has one section per widget in the order of the dashboard; the check switch is disabled while
the widget is hidden (the value is kept).

**When widgets check**:
- *One-shot widgets* (network connection, IP geolocation, DNS resolver) never check in their constructor. The
dashboard calls `Check()` (`CheckWidgets`): at the start, after a network change, when a setting in `CheckSettings`
changed (marked outdated, checked in `OnViewVisible`), and when the dashboard / window is shown again and the last
check is at least `Dashboard_RecheckInterval` (60 s) old. "Shown again" = another tool / the settings were shown, or
the window is restored from minimized / the tray - not maximize / restore down. A check requested while one runs
is queued (`_recheckPending`) and dropped if the widget was hidden meanwhile.
- *Live widgets* (latency) only run while the widget is shown and enabled, the dashboard is the selected view
and the main window is shown (`OnViewHide`, `OnMainWindowHidden` from `MainWindow` on minimize / tray). They keep
the values of their time window (60 s, `Dashboard_LatencyWindow`) across pauses (a gap in the chart, not
counted as lost) and start empty after a network change or when their check is disabled.
- The speed test only runs when started; hiding it cancels a running test.

**Sizes / layout**:
- The widgets are rows of a `StackPanel` with a gap of 10 between the visible rows (not below the last one). A row
that can hold two widgets is a `Grid` with the columns `* 10 * 10 *` and two rows: `ArrangeRow(row, first, second,
sideBySide)` puts them side by side (first 2/3, second 1/3) or one below the other with the full width (gap 10); a
hidden widget leaves no space, the other one spans the row.
- Side by side only if both fit: `IsSideBySide` checks first β‰₯ 2/3 (`FirstWidgetMinWidth` 600: speed test, IP
geolocation) and second β‰₯ 1/3 (`SecondWidgetMinWidth` 280: latency, DNS resolver) of the row. Both rows use the
same widths and switch together (~905 px), so the speed test and the IP geolocation always have the same width.
These are not `MinWidth`s of the widgets: in their own row they get the window width.
- The layout is arranged again only when the rows change between side by side and stacked (`SizeChanged` of the
widgets panel compares `IsSideBySide`), and after setting changes (`ApplyWidgetSettings` in `OnViewVisible`).
- A widget whose content depends on its place is told by the dashboard (e.g. `LatencyWidgetView
.SetNextToOtherWidget`: targets one below the other next to the speed test), not only by its own width (1/3 of a
maximized window is wide); its own width only decides in its own row (`IsCompact` below 500 px).
- Position settings per widget (e.g. `Dashboard_LatencyPosition`: next to the speed test / own row) instead
of a free layout. Next to another widget = right (1/3), like the DNS resolver next to the IP geolocation.

**New widget**: settings (`Show`, opt-in `Check` if it contacts a third party, defaults in
`GlobalStaticConfiguration`) β†’ view model + view (look above, `ScreenshotData` sample values) β†’ `DashboardView` (content
control in a row, `ShowWidget`, min width + `ArrangeRow` if it shares a row, check or start / stop like the existing
widgets) β†’ settings section β†’ `Website/docs/application/dashboard.md` (widget section + `### <Name>
{#settings-<name>}` with explicit ids, the widget names repeat) β†’ changelog β†’ manual test. Plans for further widgets:
`.claude/plans/dashboard-more-widgets.md`.

### Embedded Tools Integration

- **Remote Desktop**: Native RDP using `AxMSTSCLib`, `AxMsRdpClient10NotSafeForScripting` and `WindowsFormsHost`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Globalization;
using System.Windows.Data;
using NETworkManager.Localization;
using NETworkManager.Models.Network;

namespace NETworkManager.Converters;

/// <summary>
/// Convert <see cref="LatencyPosition" /> to translated <see cref="string" />.
/// </summary>
public sealed class LatencyPositionToStringConverter : IValueConverter
{
/// <summary>
/// Convert <see cref="LatencyPosition" /> to translated <see cref="string" />.
/// </summary>
/// <param name="value">Object from type <see cref="LatencyPosition" />.</param>
/// <param name="targetType"></param>
/// <param name="parameter"></param>
/// <param name="culture"></param>
/// <returns>Translated <see cref="LatencyPosition" />.</returns>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value is not LatencyPosition position
? "-/-"
: ResourceTranslator.Translate(ResourceIdentifier.LatencyPosition, position);
}

/// <summary>
/// !!! Method not implemented !!!
/// </summary>
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
40 changes: 40 additions & 0 deletions Source/NETworkManager.Converters/LatencyTimeToStringConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.Globalization;
using System.Windows.Data;
using NETworkManager.Models.Network;

namespace NETworkManager.Converters;

/// <summary>
/// Convert a round-trip time in milliseconds (<see cref="long" /> or <see cref="double" />, e.g. the statistics of
/// the latency widget) to a string: <c>&lt;1 ms</c> if it rounds to 0, <c>-/-</c> without a value. See
/// <see cref="LatencyStatistics.FormatTime" />.
/// </summary>
public sealed class LatencyTimeToStringConverter : IValueConverter
{
/// <summary>
/// Convert a round-trip time to a string.
/// </summary>
/// <param name="value">Round-trip time in milliseconds (<see cref="long" /> or <see cref="double" />) or <c>null</c>.</param>
/// <param name="targetType"></param>
/// <param name="parameter"></param>
/// <param name="culture"></param>
/// <returns>Formatted time, e.g. <c>&lt;1 ms</c>, <c>9 ms</c>, <c>-/-</c>.</returns>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return LatencyStatistics.FormatTime(value switch
{
long time => time,
double time => time,
_ => null
});
}

/// <summary>
/// !!! Method not implemented !!!
/// </summary>
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
1 change: 1 addition & 0 deletions Source/NETworkManager.Localization/ResourceIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public enum ResourceIdentifier
ApplicationName,
ConnectionCheckReason,
LLDPCDPProtocol,
LatencyPosition,
IPStatus,
PortState,
ProfileName,
Expand Down
Loading