Skip to content

Commit 02fdc17

Browse files
authored
Fix up heading and label casing (#398)
1 parent 5d463ef commit 02fdc17

21 files changed

+37
-37
lines changed

src/App.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('App', () => {
9292
)
9393

9494
const workspaceSelectionButton = screen.getByRole('button', {
95-
name: 'Active workspace default',
95+
name: 'Active workspace: default',
9696
})
9797
await waitFor(() => expect(workspaceSelectionButton).toBeVisible())
9898

src/components/Error.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function ErrorFallbackContent() {
3333
rel="noopener noreferrer"
3434
target="_blank"
3535
>
36-
Github issues
36+
GitHub issues
3737
<LinkExternal02 />
3838
</LinkButton>,
3939
]}

src/constants/empty-state-strings.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ export const emptyStateStrings = {
1515
body: {
1616
loading: 'Checking for the latest messages.',
1717
errorDesc:
18-
'Please try refreshing the page. If this issue persists, please let us know on Discord, or open a a new Github Issue',
18+
'Please try refreshing the page. If this issue persists, please let us know on Discord, or open a a new GitHub issue.',
1919
getStartedDesc: 'Learn how to get started with CodeGate in your IDE.',
2020
tryChangingSearch: 'Try changing your search query or clearing the search.',
2121
messagesWillShowUpWhenWorkspace:
2222
'Messages will show up here when they are detected for this workspace.',
2323
messagesDesc:
2424
'Messages are issues that CodeGate has detected and mitigated in your interactions with the LLM.',
2525
secretsDesc:
26-
'CodeGate helps you protect sensitive information from being accidentally exposed to AI models and third-party AI provider systems by redacting detected secrets from your prompts using encryption.',
26+
'CodeGate helps you protect sensitive information from being accidentally exposed to AI models and third-party AI provider systems by redacting detected secrets from your prompts.',
2727
piiDesc:
28-
'CodeGate helps you protect sensitive personally identifiable information (PII) from being accidentally exposed to AI models and third-party AI provider systems by redacting detected PII from your prompts using encryption.',
28+
'CodeGate helps you protect sensitive personally identifiable information (PII) from being accidentally exposed to AI models and third-party AI provider systems by redacting detected PII from your prompts.',
2929
maliciousDesc:
3030
"CodeGate's dependency risk insight helps protect your codebase from malicious or vulnerable dependencies. It identifies potentially risky packages and suggests fixed versions or alternative packages to consider.",
3131
},

src/features/dashboard-messages/components/__tests__/table-messages.empty-state.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const TEST_CASES: TestCase[] = [
186186
actions: [
187187
{
188188
role: 'link',
189-
name: 'Learn about Workspaces',
189+
name: 'Learn about workspaces',
190190
href: hrefs.external.docs.workspaces,
191191
},
192192
],

src/features/dashboard-messages/components/section-conversation-secrets.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function SectionConversationSecrets({
2727
<p className="mb-2">
2828
CodeGate helps you protect sensitive information from being accidentally
2929
exposed to AI models and third-party AI provider systems by redacting
30-
detected secrets from your prompts using encryption.
30+
detected secrets from your prompts.
3131
</p>
3232
<p className="mb-2">
3333
The following secrets were detected in plain-text in the input provided

src/features/dashboard-messages/components/table-messages-empty-state.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function EmptyStateNoMessagesInWorkspace() {
8686
target="_blank"
8787
rel="noopener noreferrer"
8888
>
89-
Learn about Workspaces
89+
Learn about workspaces
9090
<LinkExternal02 />
9191
</LinkButton>,
9292
]}
@@ -151,7 +151,7 @@ export function EmptyStateError() {
151151
rel="noopener noreferrer"
152152
target="_blank"
153153
>
154-
Github issues
154+
GitHub issues
155155
<LinkExternal02 />
156156
</LinkButton>,
157157
]}

src/features/dashboard-messages/lib/get-provider-string.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function getProviderString(provider: string | null): string {
22
switch (provider) {
33
case 'copilot':
4-
return 'Github Copilot'
4+
return 'GitHub Copilot'
55
case null:
66
return 'Unknown provider'
77
default:

src/features/header/components/header-active-workspace-selector.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function HeaderActiveWorkspaceSelector() {
5656
return (
5757
<DialogTrigger isOpen={isOpen} onOpenChange={(test) => setIsOpen(test)}>
5858
<Button variant="tertiary" className="flex cursor-pointer">
59-
Active workspace{' '}
59+
Active workspace:{' '}
6060
<span className="font-bold">{activeWorkspaceName ?? 'default'}</span>
6161
<ChevronDown />
6262
</Button>
@@ -131,7 +131,7 @@ export function HeaderActiveWorkspaceSelector() {
131131
className="mt-2 flex h-10 justify-start gap-2 pl-2 text-secondary"
132132
>
133133
<Settings01 />
134-
Manage Workspaces
134+
Manage workspaces
135135
</LinkButton>
136136
</div>
137137
</Popover>

src/features/header/constants/help-menu-items.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export const HELP_MENU_ITEMS = [
1010
{
1111
icon: <Continue />,
1212
id: 'continue-setup',
13-
href: 'https://docs.codegate.ai/how-to/use-with-continue',
13+
href: 'https://docs.codegate.ai/integrations/continue',
1414
textValue: 'Use with Continue',
1515
target: '_blank',
1616
},
1717
{
1818
icon: <Copilot />,
1919
id: 'copilot-setup',
20-
href: 'https://docs.codegate.ai/how-to/use-with-copilot',
20+
href: 'https://docs.codegate.ai/integrations/copilot',
2121
textValue: 'Use with Copilot',
2222
target: '_blank',
2323
},

src/features/providers/components/provider-form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function ProviderForm({ provider, setProvider }: Props) {
6969
validationBehavior="aria"
7070
onChange={(description) => setProvider({ ...provider, description })}
7171
>
72-
<Label>Description (Optional)</Label>
72+
<Label>Description (optional)</Label>
7373
<Input
7474
placeholder="Provider description"
7575
value={provider.description}

src/features/providers/lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { match } from 'ts-pattern'
44
export const PROVIDER_AUTH_TYPE_MAP = {
55
[ProviderAuthType.NONE]: 'None',
66
[ProviderAuthType.PASSTHROUGH]: 'Passthrough',
7-
[ProviderAuthType.API_KEY]: 'API Key',
7+
[ProviderAuthType.API_KEY]: 'API key',
88
}
99

1010
export function getAuthTypeOptions() {

src/features/workspace/components/__tests__/workspace-muxing-model.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('renders muxing model', async () => {
1616
expect(screen.getByText(/model muxing/i)).toBeVisible()
1717
expect(
1818
screen.getByText(
19-
/select the model you would like to use in this workspace. This section applies only if you are using the MUX endpoint./i
19+
/Select the model\(s\) to use in this workspace. This section applies only if you are using the mux endpoint./i
2020
)
2121
).toBeVisible()
2222
expect(

src/features/workspace/components/archive-workspace.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function ArchiveWorkspace({
9797
<Card className={twMerge(className, 'shrink-0')}>
9898
<CardBody className="flex items-center justify-between">
9999
<div>
100-
<Text className="text-primary">Archive Workspace</Text>
100+
<Text className="text-primary">Archive workspace</Text>
101101
<Text className="mb-0 flex items-center text-balance text-secondary">
102102
Archiving this workspace removes it from the main workspaces list,
103103
though it can be restored if needed.

src/features/workspace/components/workspace-muxing-model.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function WorkspaceMuxingModel({
198198
return (
199199
<Card className={twMerge(className, 'shrink-0')}>
200200
<CardBody className="flex flex-col gap-2">
201-
<Text className="text-primary">Model Muxing</Text>
201+
<Text className="text-primary">Model muxing</Text>
202202
<MissingProviderBanner />
203203
</CardBody>
204204
</Card>
@@ -214,10 +214,10 @@ export function WorkspaceMuxingModel({
214214
<Card className={twMerge(className, 'shrink-0')}>
215215
<CardBody className="flex flex-col gap-6">
216216
<div className="flex flex-col justify-start">
217-
<Text className="text-primary">Model Muxing</Text>
217+
<Text className="text-primary">Model muxing</Text>
218218
<Text className="mb-0 flex items-center gap-1 text-balance text-secondary">
219-
Select the model you would like to use in this workspace. This
220-
section applies only if you are using the MUX endpoint.
219+
Select the model(s) to use in this workspace. This section applies
220+
only if you are using the mux endpoint.
221221
<Link
222222
variant="primary"
223223
className="flex items-center gap-1 no-underline"
@@ -232,7 +232,7 @@ export function WorkspaceMuxingModel({
232232
<div className="flex w-full flex-col gap-2">
233233
<div className="flex gap-2">
234234
<div className="w-12">&nbsp;</div>
235-
<div className="w-2/5">Request Type</div>
235+
<div className="w-2/5">Request type</div>
236236
<div className="w-full">
237237
<Label id="filter-by-label-id" className="flex items-center">
238238
Filter by
@@ -282,7 +282,7 @@ export function WorkspaceMuxingModel({
282282
onPress={addRule}
283283
isDisabled={isArchived}
284284
>
285-
<Plus /> Add Filter
285+
<Plus /> Add filter
286286
</Button>
287287

288288
<LinkButton className="w-fit" variant="tertiary" href="/providers">

src/routes/route-certificate-security.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ export function RouteCertificateSecurity() {
6565
<PageContainer className="max-w-4xl">
6666
<Breadcrumbs>
6767
<BreadcrumbHome />
68-
<Breadcrumb>Certificate Security</Breadcrumb>
68+
<Breadcrumb>Certificate security</Breadcrumb>
6969
</Breadcrumbs>
7070

71-
<PageHeading title="Certificate Security" level={1} />
71+
<PageHeading title="Certificate security" level={1} />
7272

7373
<Card className="mb-8">
7474
<CardBody>
7575
<div className="mb-4 flex justify-center">
7676
<SecurityShieldIcon />
7777
</div>
7878
<h2 className="mb-4 text-xl font-semibold">
79-
Robust Certificate Security
79+
Robust certificate security
8080
</h2>
8181
<p className="mb-4 text-secondary">
8282
Security is a top priority for us. We have designed CodeGate's local

src/routes/route-provider-create.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function RouteProviderCreate() {
3838
}
3939

4040
return (
41-
<ProviderDialog title="Add Provider">
41+
<ProviderDialog title="Add provider">
4242
<Form
4343
onSubmit={handleSubmit}
4444
validationBehavior="aria"

src/routes/route-provider-update.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function RouteProviderUpdate() {
2323
if (provider === undefined) return
2424

2525
return (
26-
<ProviderDialog title="Manage Provider">
26+
<ProviderDialog title="Manage provider">
2727
<Form
2828
onSubmit={handleSubmit}
2929
validationBehavior="aria"

src/routes/route-providers.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function RouteProvider({ className }: { className?: string }) {
2222
</Breadcrumbs>
2323
<PageHeading level={4} title="Providers">
2424
<LinkButton className="w-fit" href="/providers/new">
25-
<PlusSquare /> Add Provider
25+
<PlusSquare /> Add provider
2626
</LinkButton>
2727
</PageHeading>
2828
<Card className={twMerge(className, 'shrink-0')}>

src/routes/route-workspace-creation.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export function RouteWorkspaceCreation() {
99
<PageContainer>
1010
<Breadcrumbs>
1111
<BreadcrumbHome />
12-
<Breadcrumb href="/workspaces">Manage Workspaces</Breadcrumb>
13-
<Breadcrumb>Create Workspace</Breadcrumb>
12+
<Breadcrumb href="/workspaces">Manage workspaces</Breadcrumb>
13+
<Breadcrumb>Create workspace</Breadcrumb>
1414
</Breadcrumbs>
1515

16-
<PageHeading level={1} title="Create Workspace" />
16+
<PageHeading level={1} title="Create workspace" />
1717
<WorkspaceCreation />
1818
</PageContainer>
1919
)

src/routes/route-workspace.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export function RouteWorkspace() {
4242
<PageContainer>
4343
<Breadcrumbs>
4444
<BreadcrumbHome />
45-
<Breadcrumb href="/workspaces">Manage Workspaces</Breadcrumb>
46-
<Breadcrumb>Workspace Settings</Breadcrumb>
45+
<Breadcrumb href="/workspaces">Manage workspaces</Breadcrumb>
46+
<Breadcrumb>Workspace settings</Breadcrumb>
4747
</Breadcrumbs>
4848

4949
<PageHeading level={1} title={`Workspace settings for ${name}`}>

src/routes/route-workspaces.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export function RouteWorkspaces() {
2525
<PageContainer>
2626
<Breadcrumbs>
2727
<BreadcrumbHome />
28-
<Breadcrumb>Manage Workspaces</Breadcrumb>
28+
<Breadcrumb>Manage workspaces</Breadcrumb>
2929
</Breadcrumbs>
3030

31-
<PageHeading level={1} title="Manage Workspaces">
31+
<PageHeading level={1} title="Manage workspaces">
3232
<div className="flex gap-2">
3333
<WorkspaceUploadButton />
3434
<TooltipTrigger delay={0}>

0 commit comments

Comments
 (0)