Update remaining UI strings and namespaces to OpenClaw

- Updated CommandPalette namespace from Moltbot to OpenClaw
- Updated OpenClaw class name (was Moltbot)
- Updated all user-facing UI strings to use OpenClaw
- Updated XAML window titles and x:Class references
- All 88 tests passing

Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-30 16:30:14 +00:00 committed by Scott Hanselman
parent c3c7f4a7aa
commit 950af189b6
11 changed files with 24 additions and 24 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<RootNamespace>Moltbot</RootNamespace>
<RootNamespace>OpenClaw</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<WindowsSdkPackageVersion>10.0.26100.68-preview</WindowsSdkPackageVersion>

View File

@ -7,16 +7,16 @@ using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.CommandPalette.Extensions;
namespace Moltbot;
namespace OpenClaw;
[Guid("b71e1e6d-20f4-4fd8-9d8e-cc5dc94ca8b5")]
public sealed partial class Moltbot : IExtension, IDisposable
public sealed partial class OpenClaw : IExtension, IDisposable
{
private readonly ManualResetEvent _extensionDisposedEvent;
private readonly OpenClawCommandsProvider _provider = new();
public Moltbot(ManualResetEvent extensionDisposedEvent)
public OpenClaw(ManualResetEvent extensionDisposedEvent)
{
this._extensionDisposedEvent = extensionDisposedEvent;
}

View File

@ -5,7 +5,7 @@
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
namespace Moltbot;
namespace OpenClaw;
public partial class OpenClawCommandsProvider : CommandProvider
{
@ -13,10 +13,10 @@ public partial class OpenClawCommandsProvider : CommandProvider
public OpenClawCommandsProvider()
{
DisplayName = "Moltbot";
DisplayName = "OpenClaw";
Icon = IconHelpers.FromRelativePath("Assets\\StoreLogo.png");
_commands = [
new CommandItem(new MoltbotPage()) { Title = DisplayName },
new CommandItem(new OpenClawPage()) { Title = DisplayName },
];
}

View File

@ -5,14 +5,14 @@
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
namespace Moltbot;
namespace OpenClaw;
internal sealed partial class OpenClawPage : ListPage
{
public OpenClawPage()
{
Icon = IconHelpers.FromRelativePath("Assets\\StoreLogo.png");
Title = "Moltbot";
Title = "OpenClaw";
Name = "Open";
}
@ -22,22 +22,22 @@ internal sealed partial class OpenClawPage : ListPage
new ListItem(new OpenUrlCommand("http://localhost:18789"))
{
Title = "🦞 Open Dashboard",
Subtitle = "Open Moltbot web dashboard"
Subtitle = "Open OpenClaw web dashboard"
},
new ListItem(new OpenUrlCommand("openclaw://chat"))
{
Title = "💬 Web Chat",
Subtitle = "Open the Moltbot chat window"
Subtitle = "Open the OpenClaw chat window"
},
new ListItem(new OpenUrlCommand("openclaw://send"))
{
Title = "📝 Quick Send",
Subtitle = "Send a message to Moltbot"
Subtitle = "Send a message to OpenClaw"
},
new ListItem(new OpenUrlCommand("openclaw://settings"))
{
Title = "⚙️ Settings",
Subtitle = "Configure Moltbot Tray"
Subtitle = "Configure OpenClaw Tray"
}
];
}

View File

@ -9,7 +9,7 @@ using System;
using System.Threading;
using System.Threading.Tasks;
namespace Moltbot;
namespace OpenClaw;
public class Program
{
@ -25,8 +25,8 @@ public class Program
// We are instantiating an extension instance once above, and returning it every time the callback in RegisterExtension below is called.
// This makes sure that only one instance of SampleExtension is alive, which is returned every time the host asks for the IExtension object.
// If you want to instantiate a new instance each time the host asks, create the new instance inside the delegate.
Moltbot extensionInstance = new(extensionDisposedEvent);
server.RegisterClass<Moltbot, IExtension>(() => extensionInstance);
OpenClaw extensionInstance = new(extensionDisposedEvent);
server.RegisterClass<OpenClaw, IExtension>(() => extensionInstance);
server.Start();
// This will make the main thread wait until the event is signalled by the extension class.

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<winex:WindowEx
x:Class="MoltbotTray.Windows.NotificationHistoryWindow"
x:Class="OpenClawTray.Windows.NotificationHistoryWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winex="using:WinUIEx"
Title="Notification History — Moltbot Tray">
Title="Notification History — OpenClaw Tray">
<Window.SystemBackdrop>
<MicaBackdrop Kind="Base"/>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<winex:WindowEx
x:Class="MoltbotTray.Windows.SettingsWindow"
x:Class="OpenClawTray.Windows.SettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winex="using:WinUIEx"

View File

@ -145,7 +145,7 @@ public sealed partial class SettingsWindow : WindowEx
{
new ToastContentBuilder()
.AddText("Test Notification")
.AddText("This is a test notification from Moltbot Tray.")
.AddText("This is a test notification from OpenClaw Tray.")
.Show();
}
catch (Exception ex)

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<winex:WindowEx
x:Class="MoltbotTray.Windows.StatusDetailWindow"
x:Class="OpenClawTray.Windows.StatusDetailWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winex="using:WinUIEx"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<winex:WindowEx
x:Class="MoltbotTray.Windows.TrayMenuWindow"
x:Class="OpenClawTray.Windows.TrayMenuWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winex="using:WinUIEx"

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<winex:WindowEx
x:Class="MoltbotTray.Windows.WebChatWindow"
x:Class="OpenClawTray.Windows.WebChatWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winex="using:WinUIEx"
Title="Moltbot Chat">
Title="OpenClaw Chat">
<Window.SystemBackdrop>
<MicaBackdrop Kind="Base"/>