Skip to content

Commit 01bacff

Browse files
authored
style: remove em dashes from Windows node copy (#1037)
* style: remove em dashes from connection and setup copy * style: remove em dashes from shared node output * style: remove em dashes from tray copy * style: remove em dashes from node-facing help * style: remove em dashes added on main * style: preserve em dashes in source comments * style: use natural punctuation in user-facing copy * style: limit em dash cleanup to user copy * style: retain em dash status placeholders * style: avoid stacked punctuation in user copy
1 parent 959b352 commit 01bacff

33 files changed

Lines changed: 412 additions & 408 deletions

‎AGENTS.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ The script sets `OPENCLAW_RUN_E2E` and `OPENCLAW_RUN_MXC_E2E` itself, then runs
5050

5151
Use `.agents/skills/openclaw-proof-validation/SKILL.md` when a change touches tray UX, Settings, onboarding, chat/canvas, Command Center, Windows node capabilities, MCP, gateway connection/pairing, permissions, diagnostics, or agent-facing instructions.
5252

53+
## User-Facing Copy
54+
55+
Do not use em dashes in user-facing prose, including UI text, error messages, CLI output, notifications, and agent-facing help. Use a period, colon, comma, parentheses, or a simple hyphen instead. A standalone em dash is allowed as an unavailable-value or status placeholder.
56+
5357
Policy:
5458

5559
- Required automated/focused tests are mandatory; do not ask to skip them.

‎src/OpenClaw.SetupEngine.UI/Pages/AdvancedSetupPage.xaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Style="{StaticResource BodyTextBlockStyle}"
1919
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
2020
HorizontalAlignment="Center"
21-
Text="We'll open Companion Settings next — nothing gets installed. Here's what you'll do there:" />
21+
Text="We'll open Companion Settings next. Nothing gets installed. Here's what you'll do there:" />
2222
</StackPanel>
2323

2424
<StackPanel Grid.Row="1" Spacing="16" MaxWidth="520" VerticalAlignment="Top"
@@ -44,7 +44,7 @@
4444
<TextBlock Text="Point it at your gateway" Style="{StaticResource BodyStrongTextBlockStyle}" />
4545
<TextBlock TextWrapping="Wrap" Style="{StaticResource CaptionTextBlockStyle}"
4646
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
47-
Text="Connect to a gateway running here, on another PC, or remote — for example ws://host.local:18790." />
47+
Text="Connect to a gateway running here, on another PC, or remote. For example, use ws://host.local:18790." />
4848
</StackPanel>
4949
</Grid>
5050

‎src/OpenClaw.SetupEngine.UI/Pages/CapabilitiesPage.xaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<TextBlock TextWrapping="Wrap"
3838
Style="{StaticResource BodyTextBlockStyle}"
3939
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
40-
Text="OpenClaw runs your agent in a private, self-hosted gateway on this PC. Pick what it's allowed to do — you can change this later in Companion Settings." />
40+
Text="OpenClaw runs your agent in a private, self-hosted gateway on this PC. Pick what it's allowed to do. You can change this later in Companion Settings." />
4141
<RadioButtons x:Name="ProfileRadio" SelectionChanged="Profile_Changed" MaxColumns="1">
4242
<RadioButton AutomationProperties.Name="Read-only">
4343
<StackPanel Spacing="1">
@@ -94,7 +94,7 @@
9494
<TextBlock TextWrapping="Wrap"
9595
Style="{StaticResource BodyTextBlockStyle}"
9696
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
97-
Text="Grant the Windows permissions your selected capabilities need — now, or later from Settings. The agent only uses what you allow." />
97+
Text="Grant the Windows permissions your selected capabilities need: now, or later from Settings. The agent only uses what you allow." />
9898
<StackPanel x:Name="PermRows" Spacing="4" />
9999
</StackPanel>
100100

@@ -146,7 +146,7 @@
146146
<FontIcon Grid.Column="0" Glyph="&#xE968;" FontSize="18" VerticalAlignment="Center" />
147147
<StackPanel Grid.Column="1" Spacing="2">
148148
<TextBlock Text="Run a local gateway service" Style="{StaticResource BodyStrongTextBlockStyle}" />
149-
<TextBlock x:Name="GatewayServiceDetailText" TextWrapping="Wrap" Style="{StaticResource CaptionTextBlockStyle}" Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="Loopback only — not reachable from your network or the internet." />
149+
<TextBlock x:Name="GatewayServiceDetailText" TextWrapping="Wrap" Style="{StaticResource CaptionTextBlockStyle}" Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="Loopback only. It is not reachable from your network or the internet." />
150150
</StackPanel>
151151
<TextBlock x:Name="GatewayEndpointText" Grid.Column="2" Text="127.0.0.1:18789" Style="{StaticResource CaptionTextBlockStyle}" Foreground="{ThemeResource TextFillColorTertiaryBrush}" FontFamily="Cascadia Mono, Consolas" VerticalAlignment="Center" />
152152
</Grid>

‎src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}" VerticalAlignment="Center" />
104104
<StackPanel Grid.Column="1" Spacing="2">
105105
<TextBlock Text="Up next: OpenClaw onboard" Style="{StaticResource BodyStrongTextBlockStyle}" />
106-
<TextBlock Text="A few quick questions — choose your AI provider, model, and key — to connect your agent."
106+
<TextBlock Text="A few quick questions. Choose your AI provider, model, and key to connect your agent."
107107
Style="{StaticResource CaptionTextBlockStyle}"
108108
Foreground="{ThemeResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" />
109109
</StackPanel>

‎src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
9292

9393
private void RenderProgressPreview()
9494
{
95-
SubtitleText.Text = "Creating OpenClawGateway WSL instance — about 4 minutes left";
95+
SubtitleText.Text = "Creating OpenClawGateway WSL instance: about 4 minutes left";
9696
var ids = StepGroups.Select(g => g.GroupId).ToArray();
9797
for (int i = 0; i < ids.Length; i++)
9898
{

‎src/OpenClaw.SetupEngine.UI/Pages/SecurityNoticePage.xaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
Style="{StaticResource BodyTextBlockStyle}"
1919
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
2020
HorizontalAlignment="Center"
21-
Text="OpenClaw runs your personal AI agent through a private gateway on this PC — reachable from chat apps like WhatsApp or Telegram." />
21+
Text="OpenClaw runs your personal AI agent through a private gateway on this PC: reachable from chat apps like WhatsApp or Telegram." />
2222
</StackPanel>
2323

2424
<InfoBar Grid.Row="1" VerticalAlignment="Top" Margin="0,24,0,0" MaxWidth="560"
2525
IsOpen="True" IsClosable="False" Severity="Warning"
2626
Title="Security notice"
27-
Message="The AI agent you connect (for example, Claude) can take powerful actions on this PC — running commands, reading and writing files, and capturing your screen — depending on what you allow.&#x0a;&#x0a;Only set this up on a computer you trust, and only continue if you understand the risks and trust the prompts and integrations you use. You choose exactly what to allow in the next steps." />
27+
Message="The AI agent you connect (for example, Claude) can take powerful actions on this PC, including running commands, reading and writing files, and capturing your screen. Those actions depend on what you allow.&#x0a;&#x0a;Only set this up on a computer you trust, and only continue if you understand the risks and trust the prompts and integrations you use. You choose exactly what to allow in the next steps." />
2828

2929
<Grid Grid.Row="2" ColumnDefinitions="*,Auto" Margin="0,12,0,0">
3030
<StackPanel Grid.ColumnSpan="2" Orientation="Horizontal" Spacing="8"

‎src/OpenClaw.SetupEngine.UI/Pages/SetupPermissionHelper.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static FrameworkElement BuildRow(PermDef perm, string status, bool grante
8686
var pill = Pill(granted ? "Ask every time" : "Unavailable", subFg);
8787
if (granted)
8888
ToolTipService.SetToolTip(pill,
89-
"Windows has no on/off setting for screen capture. Each time the agent captures your screen, Windows shows a picker so you choose exactly what to share — there's nothing to allow in advance.");
89+
"Windows has no on/off setting for screen capture. Each time the agent captures your screen, Windows shows a picker so you choose exactly what to share. There is nothing to allow in advance.");
9090
actionCol = pill;
9191
}
9292
else if (granted)

‎src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Style="{StaticResource BodyTextBlockStyle}"
2020
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
2121
HorizontalAlignment="Center"
22-
Text="OpenClaw runs your agent through a gateway. Choose how to set it up on this PC — you can change this later." />
22+
Text="OpenClaw runs your agent through a gateway. Choose how to set it up on this PC. You can change this later." />
2323
</StackPanel>
2424

2525
<StackPanel Grid.Row="1" VerticalAlignment="Top" Margin="0,24,0,0" Spacing="12"
@@ -80,7 +80,7 @@
8080
<TextBlock TextWrapping="Wrap"
8181
Style="{StaticResource CaptionTextBlockStyle}"
8282
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
83-
Text="Already run an OpenClaw gateway — here, on another machine, or remote? Pair without installing anything." />
83+
Text="Already run an OpenClaw gateway: here, on another machine, or remote? Pair without installing anything." />
8484
</StackPanel>
8585
</Grid>
8686
</Border>

‎src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ private void RenderWizardPreview()
6666
BusyRing.Visibility = Visibility.Collapsed;
6767
BusyRing.IsActive = false;
6868
ShowRecoveryActions();
69-
AppendTranscriptTurn("Welcome — let's connect your agent", null);
70-
AppendTranscriptTurn("Choose your AI provider", "Anthropic — Claude");
69+
AppendTranscriptTurn("Welcome: let's connect your agent", null);
70+
AppendTranscriptTurn("Choose your AI provider", "Anthropic: Claude");
7171
AppendTranscriptTurn("Paste your API key", "••••••");
7272

7373
if (SetupPreview.RequestedPage == "wizard-error")

‎src/OpenClaw.SetupEngine/Program.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static async Task<int> Main(string[] args)
166166

167167
if (dryRun && !uninstall)
168168
{
169-
Console.WriteLine("DRY RUN — config validated, exiting.");
169+
Console.WriteLine("DRY RUN: config validated, exiting.");
170170
return 0;
171171
}
172172

0 commit comments

Comments
 (0)