Skip to content

Commit 8128a34

Browse files
authored
fix: polish some of the user-facing strings (#584)
* fix: polish some of the user-facing strings * Update system tray strings
1 parent 240c48a commit 8128a34

File tree

13 files changed

+30
-34
lines changed

13 files changed

+30
-34
lines changed

main/src/system-tray.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,21 @@ const startOnLoginMenu = (currentTray: Tray, toolHiveIsRunning: boolean) => {
164164
}
165165

166166
const createShowMenuItem = () => ({
167-
label: 'Show App',
167+
label: 'Show Window',
168168
accelerator: 'CmdOrCtrl+S',
169169
type: 'normal' as const,
170170
click: withWindow(showWindowWithFocus),
171171
})
172172

173173
const createHideMenuItem = () => ({
174-
label: 'Hide App',
174+
label: 'Hide Window',
175175
accelerator: 'CmdOrCtrl+H',
176176
type: 'normal' as const,
177177
click: withWindow(hideWindow),
178178
})
179179

180180
const createQuitMenuItem = () => ({
181-
label: 'Quit App',
181+
label: 'Quit ToolHive',
182182
accelerator: 'CmdOrCtrl+Q',
183183
type: 'normal' as const,
184184
click: () => {

renderer/src/common/components/error/keyring-error.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function KeyringError() {
99
>
1010
<p>
1111
ToolHive needs to access your system keyring in order to securely store
12-
and manage your secrets.
12+
and manage secrets.
1313
</p>
1414

1515
<p>Most Linux distributions have a system keyring out of the box.</p>
@@ -23,7 +23,7 @@ export function KeyringError() {
2323
(should be automatically unlocked after logging in)
2424
</li>
2525
<li>
26-
You have rebooted your computer after any changes to your keyring
26+
You have rebooted your computer after any changes to the keyring
2727
configuration
2828
</li>
2929
</ul>

renderer/src/common/hooks/use-auto-launch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function useSetAutoLaunch() {
1919
},
2020
successMsg: (enabled) =>
2121
enabled
22-
? 'Auto-launch enabled - ToolHive will start with your system'
22+
? 'Auto-launch enabled - ToolHive will start when you log into your system'
2323
: 'Auto-launch disabled',
2424
errorMsg: 'Failed to update auto-launch setting',
2525
})

renderer/src/common/hooks/use-confirm-quit.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@ import { useConfirm } from './use-confirm'
33
export function useConfirmQuit() {
44
const confirm = useConfirm()
55
return async () => {
6-
return confirm(
7-
'Shutting down ToolHive will also shut down all your MCP servers.',
8-
{
9-
title: 'Quitting will shut MCPs down',
10-
isDestructive: true,
11-
buttons: { yes: 'Quit', no: 'Cancel' },
12-
doNotShowAgain: {
13-
label: "Don't ask me again when quitting",
14-
id: 'confirm_quit',
15-
},
16-
}
17-
)
6+
return confirm('Shutting down ToolHive stops all MCP servers.', {
7+
title: 'Quit ToolHive',
8+
isDestructive: true,
9+
buttons: { yes: 'Quit', no: 'Cancel' },
10+
doNotShowAgain: {
11+
label: "Don't ask me again",
12+
id: 'confirm_quit',
13+
},
14+
})
1815
}
1916
}

renderer/src/features/registry-servers/components/__tests__/form-run-from-registry.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ describe('FormRunFromRegistry', () => {
533533
})
534534
expect(
535535
screen.getByText(
536-
'We are pulling the server image from the registry and installing it.'
536+
'Downloading server image from the registry and installing.'
537537
)
538538
).toBeInTheDocument()
539539
})
@@ -647,7 +647,7 @@ describe('FormRunFromRegistry', () => {
647647
expect(screen.getByText('Something went wrong')).toBeInTheDocument()
648648
})
649649
expect(
650-
screen.getByText(/We were unable to create the secrets for the server/)
650+
screen.getByText(/Failed to create secrets for the server/)
651651
).toBeInTheDocument()
652652
})
653653

renderer/src/features/registry-servers/components/alert-error-form-submission.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface AlertErrorFormSubmissionProps {
1515

1616
function getErrorTitle(error: string): string {
1717
if (error.includes('Failed to retrieve MCP server image')) {
18-
return 'We were unable to download the server image'
18+
return 'ToolHive could not download the server image'
1919
}
2020
return 'Something went wrong'
2121
}
@@ -42,10 +42,9 @@ export function AlertErrorFormSubmission({
4242
</AlertTitle>
4343
<AlertDescription>
4444
<p className="text-red-300">
45-
{isErrorSecrets &&
46-
'We were unable to create the secrets for the server. '}
47-
Check the configuration and try to install again. <br />
48-
If you continue to have issues, reach out to our team for help via{' '}
45+
{isErrorSecrets && 'Failed to create secrets for the server. '}
46+
Check the configuration and try again. <br />
47+
If issues persist, contact the ToolHive team via{' '}
4948
<Button asChild variant="link" size="xs" className="text-sm">
5049
<a
5150
href="https://discord.gg/stacklok"

renderer/src/features/registry-servers/components/loading-state-alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function LoadingStateAlert({
2929
<AlertDescription>
3030
{isPendingSecrets && loadingSecrets
3131
? loadingSecrets?.text
32-
: 'We are pulling the server image from the registry and installing it.'}
32+
: 'Downloading server image from the registry and installing.'}
3333
{isPendingSecrets && loadingSecrets && (
3434
<Progress
3535
value={

renderer/src/features/secrets/components/dialog-form-secret.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function DialogFormSecret({
9090
<DialogDescription className="sr-only">
9191
{secretKey
9292
? 'Update the secret value below.'
93-
: 'Enter a name and value for your new secret.'}
93+
: 'Enter a name and value for the new secret.'}
9494
</DialogDescription>
9595
</DialogHeader>
9696

renderer/src/routes/__tests__/clients.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('Clients Route', () => {
6060
expect(screen.getByText('No clients detected')).toBeInTheDocument()
6161
expect(
6262
screen.getByText(
63-
'Clients are tools that can connect to ToolHive. If your client is not detected, consult our documentation.'
63+
'Clients are tools that can connect to ToolHive. If your client is not detected, consult the documentation.'
6464
)
6565
).toBeInTheDocument()
6666
}

renderer/src/routes/__tests__/secrets.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ it('renders add secret dialog when clicking add secret button', async () => {
6060
const srDescription = Array.from(dialog.querySelectorAll('p,div,span')).find(
6161
(el) =>
6262
el.className.includes('sr-only') &&
63-
el.textContent?.includes('Enter a name and value for your new secret.')
63+
el.textContent?.includes('Enter a name and value for the new secret.')
6464
)
6565
expect(srDescription).toBeTruthy()
6666
const ariaDescribedBy = dialog.getAttribute('aria-describedby')

0 commit comments

Comments
 (0)