Skip to content

Commit b8391be

Browse files
committed
fix(platform): one copy and status vocabulary across the Platform
Labels, menu items, sort and column names and command entries read in sentence case, keeping product, plan and brand names. No-results copy reads No matching {noun}, with the query in curly quotes. Hand-built empty paragraphs become EmptyState (or the side panel's note), failed mutations show through InlineNotice, and native title tooltips become Tooltip or OverflowText. The Tables run panel says Failed, as Logs does, and Cancelling uses the ellipsis glyph.
1 parent 1e0f6c7 commit b8391be

111 files changed

Lines changed: 226 additions & 291 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/sim/app/(product)/_components/access-requests/my-requests.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function MyRequests({ scope, view, mine }: MyRequestsProps) {
7373
<EmptyState
7474
title={
7575
mine.query
76-
? 'No matching results'
76+
? 'No matching requests'
7777
: mine.page > 0
7878
? 'No more access to request'
7979
: 'Nothing to request in this organization'

‎apps/sim/app/(product)/_components/access-requests/review-requests.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface ReviewRequestsProps {
2323
}
2424

2525
function emptyTitle(query: string, status: RequestStatusFilter, statusLabel: string | null) {
26-
if (query) return `No matching requests for "${query}"`
26+
if (query) return `No matching requests for “${query}”`
2727
if (status === 'pending') return 'No pending requests'
2828
if (status === 'all') return 'No requests yet'
2929
return `No ${statusLabel?.toLowerCase()} requests`

‎apps/sim/app/(product)/_components/chat/cards/live-credential-card.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export function LiveCredentialCard({
243243
render={
244244
<Link href={integrationsHref} target='_blank' rel='noopener noreferrer' />
245245
}
246-
label={`Connect ${serviceName(item)} in Integrations`}
246+
label={`Connect ${serviceName(item)} in integrations`}
247247
trailingIcon='I030'
248248
/>
249249
) : null
@@ -291,12 +291,12 @@ export function LiveUsageNotice({ action, reason, message }: UsageNoticeProps) {
291291
!canManage && reason === 'usage_limit' && action === 'increase_limit'
292292
)
293293
if (reason === 'job_run_budget')
294-
return <InlineNotice intent='warning' title='Run Spend Limit Reached' message={message} />
294+
return <InlineNotice intent='warning' title='Run spend limit reached' message={message} />
295295
return (
296296
<>
297297
<InlineNotice
298298
intent='warning'
299-
title={reason === 'chat_plan_required' ? 'Paid Plan Required' : 'Usage Limit Reached'}
299+
title={reason === 'chat_plan_required' ? 'Paid plan required' : 'Usage limit reached'}
300300
message={
301301
canManage
302302
? message
@@ -306,7 +306,7 @@ export function LiveUsageNotice({ action, reason, message }: UsageNoticeProps) {
306306
canManage ? (
307307
<ControlRow
308308
render={<Link href={href} />}
309-
label={upgrade ? 'Upgrade Plan' : 'Increase Limit'}
309+
label={upgrade ? 'Upgrade plan' : 'Increase limit'}
310310
trailingIcon='I030'
311311
/>
312312
) : memberLimit ? (

‎apps/sim/app/(product)/_components/chat/cards/tool-approval.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ActivityBody } from '@sim/emcn/activity-row/activity-body'
55
import { Button } from '@sim/emcn/button'
66
import { Icon } from '@sim/emcn/icon'
77
import { ActionMenu } from '@sim/emcn/menu/action-menu'
8+
import { Tooltip } from '@sim/emcn/tooltip'
89
import { generateId } from '@sim/utils/id'
910
import styles from '@/app/(product)/_components/chat/cards/cards.module.css'
1011
import { usePlatformNotices } from '@/app/(product)/_components/notification-tray/notification-tray'
@@ -50,9 +51,11 @@ export function ToolApproval({ tool }: { tool: PlatformTool }) {
5051
return (
5152
<div className={styles.card}>
5253
<ActivityBody leading={<Icon name='I084' />} decorativeLeading>
53-
<span className={styles.title} data-type='T048' title={tool.input}>
54-
{tool.title}
55-
</span>
54+
<Tooltip label={tool.input ?? ''} enabled={Boolean(tool.input)}>
55+
<span className={styles.title} data-type='T048'>
56+
{tool.title}
57+
</span>
58+
</Tooltip>
5659
</ActivityBody>
5760
<div className={styles.actions}>
5861
<Button

‎apps/sim/app/(product)/_components/chat/panel/browser-session/browser-session.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,33 +52,33 @@ export function BrowserSession({ scopeId, visible }: BrowserSessionProps) {
5252
const menuActions = (): MenuAction[] => [
5353
{
5454
id: 'find',
55-
label: 'Find in Page',
55+
label: 'Find in page',
5656
shortcut: '⌘F',
5757
onSelect: menu.afterClose(browser.openFind),
5858
},
5959
...continueSignInActions(signIn, menu.afterClose),
6060
{
6161
id: 'zoom-in',
62-
label: 'Zoom In',
62+
label: 'Zoom in',
6363
shortcut: '⌘+',
6464
separatorBefore: true,
6565
onSelect: menu.afterClose(() => menu.zoom('zoom-in')),
6666
},
6767
{
6868
id: 'zoom-out',
69-
label: 'Zoom Out',
69+
label: 'Zoom out',
7070
shortcut: '⌘−',
7171
onSelect: menu.afterClose(() => menu.zoom('zoom-out')),
7272
},
7373
{
7474
id: 'zoom-reset',
75-
label: 'Actual Size',
75+
label: 'Actual size',
7676
shortcut: '⌘0',
7777
onSelect: menu.afterClose(() => menu.zoom('zoom-reset')),
7878
},
7979
{
8080
id: 'fill-password',
81-
label: 'Fill Saved Password',
81+
label: 'Fill saved password',
8282
separatorBefore: true,
8383
disabled: !menu.fillAvailable,
8484
onSelect: menu.afterClose(() => menu.fillPassword(menuAnchor.current)),
@@ -90,13 +90,13 @@ export function BrowserSession({ scopeId, visible }: BrowserSessionProps) {
9090
},
9191
{
9292
id: 'import-passwords',
93-
label: 'Import Passwords',
93+
label: 'Import passwords',
9494
disabled: !menu.canImport,
9595
onSelect: menu.afterClose(() => menu.settings('?browserImport=1')),
9696
},
9797
{
9898
id: 'browser-settings',
99-
label: 'Browser Settings',
99+
label: 'Browser settings',
100100
separatorBefore: true,
101101
onSelect: menu.afterClose(() => menu.settings('')),
102102
},

‎apps/sim/app/(product)/_components/chat/panel/browser-session/continue-sign-in.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function continueSignInActions(
3737
return [
3838
{
3939
id: 'continue-sign-in',
40-
label: 'Continue in Browser',
40+
label: 'Continue in browser',
4141
separatorBefore: true,
4242
children: [head, ...tail],
4343
},

‎apps/sim/app/(product)/_components/links-page/link-editor.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function LinkEditor({
9292
<FieldFrame label='Access'>
9393
<div className={styles.access}>
9494
<Checkbox
95-
label='Hide from the Links page'
95+
label='Hide from the links page'
9696
checked={draft.unlisted}
9797
disabled={!editor.canManage || pending}
9898
disabledReason={accessReason}

‎apps/sim/app/(product)/_components/links-page/links-page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export function LinksPage({ organizationId }: LinksPageProps) {
259259
) : unsettled ? null : links.rows.length === 0 ? (
260260
links.term ? (
261261
<EmptyState
262-
title={`No results for “${links.term}”`}
262+
title={`No matching links for “${links.term}”`}
263263
description='Searched every link you can see.'
264264
action={<Button onClick={() => links.setSearch('')}>Clear search</Button>}
265265
/>

‎apps/sim/app/(product)/_components/secrets-editor/secrets-editor.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ function SecretRows({
579579
</SettingsSection>
580580
)
581581
})}
582-
{noMatches && <EmptyState title={`No secrets found matching “${searchTerm}”`} />}
582+
{noMatches && <EmptyState title={`No matching secrets for “${searchTerm}”`} />}
583583
<SaveActions
584584
dirty={hasChanges}
585585
saving={isSaving}

‎apps/sim/app/(product)/_components/service-account-modal/slack-bot-modal.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function SlackBotModal({
151151
<>
152152
<ExecutionSteps title='In Slack' steps={TOKEN_STEPS} />
153153
<SecretField
154-
label='Bot Token'
154+
label='Bot token'
155155
value={form.botToken}
156156
onChange={form.setBotToken}
157157
placeholder='xoxb-...'
@@ -166,7 +166,7 @@ export function SlackBotModal({
166166
<>
167167
<ExecutionSteps title='In Slack' steps={SECRET_STEPS} />
168168
<SecretField
169-
label='Signing Secret'
169+
label='Signing secret'
170170
value={form.signingSecret}
171171
onChange={form.setSigningSecret}
172172
placeholder='Paste your signing secret'

0 commit comments

Comments
 (0)